HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Trigger conflict of some sort

08-08-2002, 05:31 AM#1
Guest
I'll explain the situation, then give my trigger examples ... it's got me stumped. I have a gate, which opens when a unit gets near and closes when there are no units near it, that works fine. I have also got it so that when the gate gets destroyed it will 'resurrect' in 30 secs, there was a problem there though, when a unit came near the gate it would 'resurrect' early, because it was 'opening' the gate, it had to create one first. A way around that was simple enough, i made it so when the gate died it would turn off the triggers that open and close it, then turn them back on after it has resurrected. But there is a problem there, when a unit goes near the gate, it opens, which is fine, but when it leaves it stays opened, and closes 30 secs later. Essentially, it appears the game considers the gate dead once it is opened and therefore turns off the trigger that closes it, and resurrects the gate 30 secs later, when it isn't dead. here are the triggers.

trigger to open the gate: (Demon Gate 01 Open)
Events: Unit - A unit enters Demon Gate 01
Conditions: (Owner of (Entering unit)) Equal to Player 1 (Red)
Actions: Destructible Doodad - Open Demon Gate (Horizontal) 0010

trigger to close the gate: (Demon Gate 01 Close)
Events: Unit - A unit leaves Demon Gate 01
Conditions: ((Owner of (Leaving unit)) Equal to Player 1 (Red)) and ((Demon Gate 01 contains (Random unit from (Units in Demon Gate 01))) Equal to False
Actions: Destructible Doodad - Close Demon Gate (Horizontal) 0010

trigger to resurrect the gate: (Demon Gate 01 Resurrect)
Events: Destructible Doodad - Demon Gate (Horizontal) 0010 dies
Conditions: NA
Actions:
Trigger - Turn off Demon Gate 01 Open
Trigger - Turn off Demon Gate 01 Close
Wait 30.00 seconds
Destructible Doodad - Resurrect Demon Gate 01 (Horizontal 0010 with (Max life of Demon Gate (Horizontal) 0010) life and Hide birth animation
Trigger - Turn on Demon Gate 01 Open
Trigger - Turn on Demon Gate 01 Close

'Demon Gate 01' is the name of the region the gate is in.
Can someone tell me what's going wrong? I'm new to making maps, and triggers seem to be getting the better of me.
08-08-2002, 06:44 AM#2
Newhydra
Yes, the game sets a gate's health to 0 and plays a certain animation on the gate (the "open" one; as opposed to the "dead" one if the gate was killed) What you need to do is turn off the rez trigger when you open the gate. and turn it back on when you close the gate. (well, thats one way of doing it)