- Joined
- Sep 24, 2007
- Messages
- 303
Hello guys. I am facing a serious problem with gate open/close system, and I'd need some serious help.
I am using a unit with open/close abilities to open/close a specific gate.
If you destroy the gate and then use open/closeabilities, the gates are RENEWED, meaning they get full HP back. To counter this, I created a trigger that removes the lever when gate is destroyed.
How to bypass this? Any ideas are welcome.
PS: I am not going to use units as gates. Period.
Regards
I am using a unit with open/close abilities to open/close a specific gate.
-
open and close
-

Events
-


Unit - A unit Finishes casting an ability
-
-

Conditions
-


(Unit-type of (Triggering unit)) Equal to Gate Lever
-
-

Actions
-


-------- OPEN --------
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Ability being cast) Equal to Open Gate
-
-



Then - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






(Triggering unit) Equal to Gate Lever 0020 <gen>
-
-





Then - Actions
-






Destructible - Open Iron Gate (Vertical) 0076 <gen>
-
-





Else - Actions
-






...
-
-
-
-



Else - Actions
-
-


-------- CLOSE --------
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Ability being cast) Equal to Close Gate
-
-



Then - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






(Triggering unit) Equal to Gate Lever 0020 <gen>
-
-





Then - Actions
-






Destructible - Close Iron Gate (Vertical) 0076 <gen>
-
-





Else - Actions
-






...
-
-
-
-
-
-
If you destroy the gate and then use open/closeabilities, the gates are RENEWED, meaning they get full HP back. To counter this, I created a trigger that removes the lever when gate is destroyed.
-
gate MT south off
-

Events
-


Destructible - Iron Gate (Vertical) 0076 <gen> dies
-
-

Conditions
-

Actions
-


Unit - Remove Gate Lever 0020 <gen> from the game
-
-
How to bypass this? Any ideas are welcome.
PS: I am not going to use units as gates. Period.
Regards




