Can anyone see why this isn't working?
I have a command set for 'use torch; switch on torch; etc etc etc'
Then I run this script, which should be checking to see if the torch is on, so that a double command of 'switch on torch' should get "It's already on."
Instead, it just throws up the room description again.
if (game.pov.parent = bunker) {
msg ("The moist walls glisten in the light from the torch. On the floor, scattered bones are caught in the beam.<br/><br/>The tunnel continues west. Way out is east.")
SetObjectFlagOn (player, "torchon")
}
else {
if (game.pov.parent = bunker) {
ShowRoomDescription
SetObjectFlagOn (player, "torchon")
}
if (game.pov.parent = bunker tunnel) {
ShowRoomDescription
SetObjectFlagOn (player, "torchon")
}
if (game.pov.parent = bunker room) {
ShowRoomDescription
SetObjectFlagOn (player, "torchon")
}
if (GetBoolean(player, "torchon")) {
msg ("It's already on.")
}
else {
msg ("No need for a torch here.")
}
}