Simple question: How can I turn off a trigger after it runs once PER PLAYER? The trigger I have in mind is a unit enters a region, it displays text and then turns off the trigger, but not for the other players in the game, so they can activate it as well.
I am trying to create an ability that sets the CASTER's mana to zero, and does an equal amount of damage to the target. Basically, I am trying to create a feedback that is based on the caster's mana and not the target's.
I cannot figure out how to do this in the data editor, but more importantly I tried to do this through triggers and it fails to recognize the unit I target with the ability I created. I've spent all day trying things out and I'm just ready to let an expert tell me what I'm doing wrong.
Here is the trigger I created:
Discharge
Events
Unit - Any Unit uses Mage - Discharge at Generic6 - Complete stage (Ignore shared abilities) * Have tried ANY STAGE as well
Local Variables
Mana Spent = 0.0 <Real>
Conditions
Actions
Variable - Set Mana Spent = ((Triggering unit) Energy (Current))
UI - Display (Text(Mana Spent) with Any Precision decimal places) for (All players) to Subtitle area - Displays mana correctly in game
Unit - Set (Target unit for (Triggering order)) Life to (((Target unit for (Triggering order)) Life (Current)) - Mana Spent)
UI - Display (Name of (Unit type of (Target unit for (Triggering order)))) for (All players) to Subtitle area - Gives an error
Unit - Set (Triggering unit) Energy to 0.0
----
Trying this through the data editor I could not figure out how to switch the amount of life lost from the target's mana to the caster's mana. ALSO: I excluded Ground as an allowable target but when I test it I can still cast on the ground :/
0
I just figured there would be a Turn Off Trigger for Player x :P
0
Found an at least temporary solution, but it seems like there should be an easier way:
Events
Local Variables
Player Has Run Trigger = false <Boolean[10]>
Conditions
Player Has Run Trigger[(Triggering player)] == false
Actions
Variable - Set Player Has Run Trigger[(Triggering player)] = true
0
Simple question: How can I turn off a trigger after it runs once PER PLAYER? The trigger I have in mind is a unit enters a region, it displays text and then turns off the trigger, but not for the other players in the game, so they can activate it as well.
0
This worked, thank you :)
(had to change it for 2nd half of trigger as well though)
0
I am trying to create an ability that sets the CASTER's mana to zero, and does an equal amount of damage to the target. Basically, I am trying to create a feedback that is based on the caster's mana and not the target's.
I cannot figure out how to do this in the data editor, but more importantly I tried to do this through triggers and it fails to recognize the unit I target with the ability I created. I've spent all day trying things out and I'm just ready to let an expert tell me what I'm doing wrong.
Here is the trigger I created:
Discharge
Events
Unit - Any Unit uses Mage - Discharge at Generic6 - Complete stage (Ignore shared abilities) * Have tried ANY STAGE as well
Local Variables
Mana Spent = 0.0 <Real>
Conditions
Actions
Variable - Set Mana Spent = ((Triggering unit) Energy (Current))
UI - Display (Text(Mana Spent) with Any Precision decimal places) for (All players) to Subtitle area - Displays mana correctly in game
Unit - Set (Target unit for (Triggering order)) Life to (((Target unit for (Triggering order)) Life (Current)) - Mana Spent)
UI - Display (Name of (Unit type of (Target unit for (Triggering order)))) for (All players) to Subtitle area - Gives an error
Unit - Set (Triggering unit) Energy to 0.0
----Trying this through the data editor I could not figure out how to switch the amount of life lost from the target's mana to the caster's mana. ALSO: I excluded Ground as an allowable target but when I test it I can still cast on the ground :/
The ability is of type: Effect - Target