I'm wondering if I'm doing something wrong with detaching triggers? The help file says this:
Code:
Detach removes a trigger to one instance of a mob/obj/room, for testing or
other purposes. The command only removes the trigger temporarily, until the
room/obj/mob is reloaded via reboot, zreset, load.
I have a room where after a condition is met, the trigger on the room detaches itself. That part works fine. But the trigger does not come back when the zone resets, either via the regular reset time or via zreset. The trigger only comes back if I go into redit for the room, hit S for script, and then quit out.
In this example, the trigger is in place:
Code:
[22016] Just Inside the Gate [ NO_MOB ] [ Field ][T 22099]
A sprawling encampment stretches north to northeast from inside the gate that
separates the camp from the forest outside. A barricade surrounds the camp as
far as the eye can see, tall enough that it would give an Ogier pause before
trying to climb it. To the south is a checkpoint in the barricade that has tall
hinged gates that look scarred from years of use.
[ Exits: n s ]
Now, the condition has been met and the trigger is detached:
Code:
[22016] Just Inside the Gate [ NO_MOB ] [ Field ]
A sprawling encampment stretches north to northeast from inside the gate that
separates the camp from the forest outside. A barricade surrounds the camp as
far as the eye can see, tall enough that it would give an Ogier pause before
trying to climb it. To the south is a checkpoint in the barricade that has tall
hinged gates that look scarred from years of use.
[ Exits: n s ]
But then at reset it does not come back:
Code:
510H 110M 92V >
zpurge
Purged zone #220: Zone 220 - Tutorial - Trolloc camp setting.
[ (GC) Vivienne purged zone 220 (Zone 220 - Tutorial - Trolloc camp setting) ]
510H 110M 92V >
The sun rises in the east.
510H 110M 92V >
zreset
Reset zone #220: Zone 220 - Tutorial - Trolloc camp setting.
[ (GC) Vivienne reset zone 220 (Zone 220 - Tutorial - Trolloc camp setting) ]
510H 110M 92V >
l
[22016] Just Inside the Gate [ NO_MOB ] [ Field ]
A sprawling encampment stretches north to northeast from inside the gate that
separates the camp from the forest outside. A barricade surrounds the camp as
far as the eye can see, tall enough that it would give an Ogier pause before
trying to climb it. To the south is a checkpoint in the barricade that has tall
hinged gates that look scarred from years of use.
[ Exits: n s ]
510H 110M 92V >
And if I go into redit it does come back:
Code:
510H 110M 92V >
redit
-- Room number : [22016] Room zone: [220]
1) Name : Just Inside the Gate
2) Description :
A sprawling encampment stretches north to northeast from inside the gate that
separates the camp from the forest outside. A barricade surrounds the camp as
far as the eye can see, tall enough that it would give an Ogier pause before
trying to climb it. To the south is a checkpoint in the barricade that has tall
hinged gates that look scarred from years of use.
3) Room flags : NO_MOB
4) Sector type : Field
5) Exit north : 22008 , B) Exit northwest : -1
6) Exit east : -1 , C) Exit northeast : -1
7) Exit south : 22023 , D) Exit southeast : -1
8) Exit west : -1 , E) Exit southwest : -1
9) Exit up : -1
A) Exit down : -1
F) Extra descriptions menu
S) Script : Set.
W) Copy Room
X) Delete Room
Q) Quit
Enter choice :
s
Triggers Attached:
1) [22099] Boss battle to escape at room 22023
N) Attach trigger
X) Detach trigger
Q) Quit
Enter choice :
q
-- Room number : [22016] Room zone: [220]
1) Name : Just Inside the Gate
2) Description :
A sprawling encampment stretches north to northeast from inside the gate that
separates the camp from the forest outside. A barricade surrounds the camp as
far as the eye can see, tall enough that it would give an Ogier pause before
trying to climb it. To the south is a checkpoint in the barricade that has tall
hinged gates that look scarred from years of use.
3) Room flags : NO_MOB
4) Sector type : Field
5) Exit north : 22008 , B) Exit northwest : -1
6) Exit east : -1 , C) Exit northeast : -1
7) Exit south : 22023 , D) Exit southeast : -1
8) Exit west : -1 , E) Exit southwest : -1
9) Exit up : -1
A) Exit down : -1
F) Extra descriptions menu
S) Script : Set.
W) Copy Room
X) Delete Room
Q) Quit
Enter choice :
q
Do you wish to save your changes? :
y
Room saved to disk.
510H 110M 92V >
l
[22016] Just Inside the Gate [ NO_MOB ] [ Field ][T 22099]
A sprawling encampment stretches north to northeast from inside the gate that
separates the camp from the forest outside. A barricade surrounds the camp as
far as the eye can see, tall enough that it would give an Ogier pause before
trying to climb it. To the south is a checkpoint in the barricade that has tall
hinged gates that look scarred from years of use.
[ Exits: n s ]