- Joined
- Apr 13, 2005
- Messages
- 630
I was wondering How do i get an event to work with the activation of immolation and deactivation of it.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Water Form

Events


Unit - A unit Begins casting an ability

Conditions


((Triggering unit) has buff Immolation (Caster)) Equal to True


(Ability being cast) Equal to Water Form

Actions


Hero - Modify Agility of (Triggering unit): Add 23


Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) + 1000.00)


Set waterFormCaster[(Player number of (Triggering player))] = (Casting unit)


Unit Group - Add (Triggering unit) to WaterForm


Trigger - Turn on Water Form Copy <gen>
Water Form Copy

Events


Time - Every 1.00 seconds of game time

Conditions

Actions


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



If - Conditions




(Number of units in WaterForm) Greater than 0




(waterFormCaster[(Player number of (Triggering player))] has buff Immolation (Caster)) Equal to False



Then - Actions




Hero - Modify Agility of (Triggering unit): Subtract 23




Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) - 1000.00)




Unit Group - Remove waterFormCaster[(Player number of (Triggering player))] from WaterForm



Else - Actions


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



If - Conditions




(Number of units in WaterForm) Equal to 0



Then - Actions




Unit Group - Remove all units from WaterForm



Else - Actions
Immolation Orders

Events


Unit - A unit Is issued an order with no target

Conditions

Actions


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



If - Conditions




(Issued order) Equal to (Order(immolation))



Then - Actions




Game - Display to (All players) the text: ACTIVATE IMMOLATION



Else - Actions




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





If - Conditions






(Issued order) Equal to (Order(unimmolation))





Then - Actions






Game - Display to (All players) the text: DEACTIVATE IMMOLATI...





Else - Actions
Unit - Set life of (Ordered unit) to ((Life of (Ordered unit)) + 1000.00)
I hope you can read this trigger and understand it.
If you do not, ask me;
Order Comparison Condition.
Immolation Orders
Events
Unit - A unit Is issued an order with no target
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Issued order) Equal to (Order(immolation))
Then - Actions
Game - Display to (All players) the text: ACTIVATE IMMOLATION
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Issued order) Equal to (Order(unimmolation))
Then - Actions
Game - Display to (All players) the text: DEACTIVATE IMMOLATI...
Else - Actions
Events

Unit - A unit starts the effect of an ability
Conditions

(Ability being cast) Equal to Immolation
Actions

-blah-
Works beautifully but can you help me again.in that trigger i used this. Now it only works for the deactivation when i subtract the hp. It wont add the hp. I changed the trigger around a couple of times. If this wont work I'll just add an upgrade and downgrade it when deactivated
Unit - Set life of (Ordered unit) to ((Life of (Ordered unit)) + 1000.00)
Melee Initialization

Events


Unit - A unit Is issued an order with no target

Conditions

Actions


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



If - Conditions




(Issued order) Equal to (Order(immolation))



Then - Actions




Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) + 100.00)



Else - Actions




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





If - Conditions






(Issued order) Equal to (Order(unimmolation))





Then - Actions






Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) - 100.00)





Else - Actions
Water Form Copy

Events


Unit - A unit Is issued an order with no target

Conditions


(Unit-type of (Ordered unit)) Equal to |c003E4DD7Naga Siren|r

Actions


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



If - Conditions




(Issued order) Equal to (Order(immolation))



Then - Actions




Hero - Modify Agility of (Triggering unit): Add 23




Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) + 1000.00)



Else - Actions


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



If - Conditions




(Issued order) Equal to (Order(unimmolation))



Then - Actions




Hero - Modify Agility of (Triggering unit): Subtract 23




Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) - 1000.00)



Else - Actions
