Weyrling
New Member
- Reaction score
- 25
The following trigger causes WC3 to close with no fatal error screen or any from of error message, I would greatly appreciate assistance.
This is the Initialization Code:
This is the trigger that actually crashes it:
This is the Initialization Code:
Code:
Generic Unit Takes Damage Init
Events
Unit - A unit enters (Playable map area)
Conditions
Actions
Trigger - Add to Unit Takes Damage Event <gen> the event (Unit - (Entering unit) Takes damage)
Code:
Unit Takes Damage Event
Events
Conditions
((Damage source) is A Hero) Equal to True
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
AgiCritDmgBool[(Player number of (Owner of (Damage source)))] Equal to True
Then - Actions
Set AgiCritDmgBool[(Player number of (Owner of (Damage source)))] = False
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 10000) Less than or equal to (Agility of (Damage source) (Include bonuses))
Then - Actions
Set AgiCritDmgBool[(Player number of (Owner of (Damage source)))] = True
Unit - Cause (Damage source) to damage (Triggering unit), dealing ((Damage taken) x 5.00) damage of attack type Chaos and damage type Universal
Floating Text - Create floating text that reads (String(((Damage taken) x 5.00))) at TempPt[1] with Z offset 50.00, using font size 18.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
Custom script: call DestroyGroup (udg_TempGroup[1])
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 2500) Less than or equal to (Agility of (Triggering unit) (Include bonuses))
Then - Actions
Set AgiCritDmgBool[(Player number of (Owner of (Damage source)))] = True
Unit - Cause (Damage source) to damage (Triggering unit), dealing ((Damage taken) x 2.00) damage of attack type Chaos and damage type Universal
Floating Text - Create floating text that reads (String(((Damage taken) x 2.00))) at TempPt[1] with Z offset 50.00, using font size 14.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
Else - Actions