- Joined
- Aug 24, 2014
- Messages
- 22
-
invulnerable
-
Events
- Unit - Building 1 0010 <gen> Dies
- Unit - Building 2 0011 <gen> Dies
- Conditions
-
Actions
- Unit - Make Building 3 0038 <gen> Vulnerable
-
Events
Thanks! The second trigger worked. In the first trigger, I dont know how to do the Set Vulnerability_Integer = (Vulnerability_Integer + 1). How do I do it?
Why you make 2 triggers for this? It can be done in 1 trigger, simply by puting both events in one trigger, then both conditions in the ITE...method 2 : Using conditions to detect whether the other building is alive or not, via 2 triggers instead of one.
- is it alive
- events
- unit - farm 0000 <gen> dies
- conditions
- actions
- if (all conditions are true) then do (then actions) else do (else actions)
- if - conditions
- (farm 0001 <gen> is dead) equal to true
- then - actions
- unit - make altar of kings 0002 <gen> vulnerable
- else - actions
- is it alive 2
- events
- unit - farm 0001 <gen> dies
- conditions
- actions
- if (all conditions are true) then do (then actions) else do (else actions)
- if - conditions
- (farm 0000 <gen> is dead) equal to true
- then - actions
- unit - make altar of kings 0002 <gen> vulnerable
- else - actions
Why you make 2 triggers for this? It can be done in 1 trigger, simply by puting both events in one trigger, then both conditions in the ITE...