After adding these triggers to my map, it gets often fatal crashes.
Please examine them and tell me if you find any error.
Please examine them and tell me if you find any error.
Code:
Events
Time - Every 20.00 seconds of game time
Conditions
Actions
Set Group_Claw = (Units in (Playable map area) matching ((((Owner of (Matching unit)) is in AlienGroup) Equal to True) and (((Matching unit) has an item of type Tiger Claw) Equal to True)))
Unit Group - Pick every unit in Group_Claw and do (Actions)
Loop - Actions
Hero - Modify Strength of (Picked unit): Add 100
Hero - Modify Agility of (Picked unit): Add 100
Hero - Modify Intelligence of (Picked unit): Add 100
Custom script: call DestroyGroup (udg_Group_Claw)
Code:
Events
Unit - A unit Dies
Conditions
((Killing unit) is A Hero) Equal to True
((Owner of (Killing unit)) is in AlienGroup) Equal to True
((Owner of (Dying unit)) is in HumanGroup) Equal to True
((Killing unit) has an item of type Pearl) Equal to True
Actions
Floating Text - Create floating text that reads +20 Bonus Gold above (Killing unit) with Z offset 0.00, using font size 7.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 1.00 seconds
Player - Add 20 to (Owner of (Killing unit)) Current gold
Code:
Events
Unit - A unit Dies
Conditions
((Killing unit) is A Hero) Equal to True
((Owner of (Killing unit)) is in AlienGroup) Equal to True
((Owner of (Dying unit)) is in HumanGroup) Equal to True
((Killing unit) has an item of type Giant Pearl) Equal to True
Actions
Floating Text - Create floating text that reads +80 Bonus Gold above (Killing unit) with Z offset 0.00, using font size 7.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 1.00 seconds
Player - Add 80 to (Owner of (Killing unit)) Current gold