- Joined
- May 26, 2014
- Messages
- 41
Can these triggers cause critical error? Started to get critical errors after the last patch, but they don't happen too often.
-
Warrior
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
(Current research level of Warrior for (Owner of (Killing unit))) Equal to 1
-
((Dying unit) is A Hero) Equal to False
-
((Dying unit) is A structure) Equal to False
-
(Owner of (Dying unit)) Not equal to Neutral Hostile
-
-
Actions
-
Set UnitKiller = (Killing unit)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
UnitKiller Not equal to No unit
-
-
Then - Actions
-
Set WarriorKills[(Player number of (Owner of UnitKiller))] = (WarriorKills[(Player number of (Owner of UnitKiller))] + 1)
-
-
Else - Actions
-
-
-
-
Warrior effect
-
Events
-
Time - Every 310.00 seconds of game time
-
-
Conditions
-
Actions
-
Player Group - Pick every player in (All players) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Current research level of Warrior for (Picked player)) Equal to 1
-
((Picked player) slot status) Equal to Is playing
-
-
Then - Actions
-
Player - Add (WarriorKills[(Player number of (Picked player))] x 1) to (Picked player) Current gold
-
Game - Display to (Player group((Picked player))) the text: ((String(WarriorKills[(Player number of (Picked player))])) + gold Recieved for unit kills in the last 5 minutes.|r)
-
Set WarriorKills[(Player number of (Picked player))] = 0
-
-
Else - Actions
-
-
-
-
-
-
Hero killer
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
((Triggering unit) is A Hero) Equal to True
-
(Owner of (Triggering unit)) Not equal to Neutral Hostile
-
(Current research level of Hero Killer for (Owner of (Killing unit))) Equal to 1
-
((Owner of (Killing unit)) slot status) Equal to Is playing
-
-
Actions
-
Set KillingForce = (Player group((Owner of (Killing unit))))
-
Floating Text - Create floating text that reads +30 above (Dying unit) with Z offset 0.00, using font size 10.00, color (100.00%, 80.00%, 7.00%), and 0.00% transparency
-
Floating Text - Hide (Last created floating text) for (All players)
-
Floating Text - Show (Last created floating text) for KillingForce
-
Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
-
Floating Text - Change (Last created floating text): Disable permanence
-
Floating Text - Change the lifespan of (Last created floating text) to 1.50 seconds
-
Floating Text - Change the fading age of (Last created floating text) to 0.75 seconds
-
Player - Add 30 to (Owner of (Killing unit)) Current gold
-
Custom script: call DestroyForce(udg_KillingForce)
-
-