Hey community,
I can't figure it out. Please have a glimpse at this trigger:
Every message you see in the trigger above got displayed in the right order just when the trigger is supposed to be fired.
I checked with a trigger if P3_CheckThese[P3_WhoseTurn] is the correct variable and it is perfectly correct.
There is no other action in the map that touches the mana of this unit or even in any other array of the variable.
It is also only triggered once, but even if it would be triggered twice it shouldn't be a problem.
I just don't get it. I always end up with a unit without mana (because this trigger is supposed to refill its mana), but also with all the messages. (except the one in the If/Then/else part)
Does somebody have a theory on this?
Thanks in advance for your thoughts!
old_edge
I can't figure it out. Please have a glimpse at this trigger:
-
Whose turn is it
-
Events
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
P3_Category Equal to 2
-
-
Then - Actions
-
Set P3_WhoseTurn = 1
-
-
Else - Actions
-
-
Game - Display to (All players) for 190.00 seconds the text: blablabla
-
Special Effect - Destroy P3_Arrow
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(P3_CheckThese[1] is alive) Equal to False
-
P3_Category Equal to 2
-
-
Then - Actions
-
Game - Display to (All players) for 190.00 seconds the text: blablabla
-
Trigger - Run FightEnd <gen> (checking conditions)
-
Skip remaining actions
-
-
Else - Actions
-
-
Special Effect - Create a special effect at (Position of P3_CheckThese[P3_WhoseTurn]) using Abilities\Spells\Other\Aneu\AneuTarget.mdl
-
Set P3_Arrow = (Last created special effect)
-
Special Effect - Set Position - Z of P3_Arrow to (400.00 + TEST_GetLocationZ_2)
-
Special Effect - Set Color of P3_Arrow to color of (Owner of P3_CheckThese[P3_WhoseTurn])
-
Special Effect - Set Scale of P3_Arrow to 4.00
-
Set P3_ArrowUnit = P3_CheckThese[P3_WhoseTurn]
-
Game - Display to (All players) for 190.00 seconds the text: NOW blabalbalba
-
Trigger - Turn on Move Arrow <gen>
-
Unit - Set Max Mana of P3_CheckThese[P3_WhoseTurn] to 1
-
Unit - Set mana of P3_CheckThese[P3_WhoseTurn] to 100.00%
-
Game - Display to (All players) the text: (Player + ((String((Player number of (Owner of P3_CheckThese[P3_WhoseTurn])))) + to move!))
-
-
-
Unit - Set Max Mana of P3_CheckThese[P3_WhoseTurn] to 1
-
Unit - Set mana of P3_CheckThese[P3_WhoseTurn] to 100.00%
Every message you see in the trigger above got displayed in the right order just when the trigger is supposed to be fired.
I checked with a trigger if P3_CheckThese[P3_WhoseTurn] is the correct variable and it is perfectly correct.
There is no other action in the map that touches the mana of this unit or even in any other array of the variable.
It is also only triggered once, but even if it would be triggered twice it shouldn't be a problem.
I just don't get it. I always end up with a unit without mana (because this trigger is supposed to refill its mana), but also with all the messages. (except the one in the If/Then/else part)
Does somebody have a theory on this?
Thanks in advance for your thoughts!
old_edge
Last edited: