I have this trigger:
The trigger works up until the if then else function, I am not sure if its getting the conditions mixed up or where its getting hung up any insight would be greatly appreciated. Thank you!
-
Player death lvl1
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
(Unit-type of (Triggering unit)) Equal to Prisoner
-
-
Actions
-
Player - Set (Owner of (Triggering unit)).Current gold to (((Owner of (Triggering unit)) Current gold) - 1)
-
Floating Text - Create floating text that reads |cffff0000Ohh... Th... above (Triggering unit) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
-
Game - Display to (All players) the text: ((Name of (Owner of (Triggering unit))) + has been caught!)
-
Wait 1.00 seconds
-
Floating Text - Destroy (Last created floating text)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Owner of (Triggering unit)) Current gold) Greater than 0
-
-
Then - Actions
-
Unit - Create 1.Prisoner for (Owner of (Triggering unit)) at (Random point in Level1revive <gen>) facing (Random real number between 0.00 and 360.00) degrees
-
Camera - Pan camera for (Owner of (Triggering unit)) to (Position of (Last created unit)) over 1.00 seconds
-
Floating Text - Create floating text that reads (Try again! Your remaining lives are: + (String(((Owner of (Triggering unit)) Current gold)))) above (Last created unit) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
-
Wait 2.00 seconds
-
Floating Text - Destroy (Last created floating text)
-
-
Else - Actions
-
Do nothing
-
-
-
-
The trigger works up until the if then else function, I am not sure if its getting the conditions mixed up or where its getting hung up any insight would be greatly appreciated. Thank you!
Last edited: