- Joined
- Jan 27, 2007
- Messages
- 948
Well, I made some goblin mines that damage 4x to 6x the casting unit agi, but when i explode about 3-6 mines with more than 5 or 6 units the game crashes! why is this happening?
here the trigger:
here the trigger:
-
Explosive Trap
-
Events
- Unit - A unit Spawns a summoned unit
-
Conditions
- (Unit-type of (Summoned unit)) Equal to Explosive Trap
-
Actions
- Custom script: set udg_ID = GetHandleId(GetSummonedUnit())
- Hashtable - Save Handle Of(Summoning unit) as 0 of ID in Hashtable
-
Events
-
Explosive Trap Trigger
-
Events
- Unit - A unit Dies
-
Conditions
- (Unit-type of (Dying unit)) Equal to Explosive Trap
-
Actions
- Custom script: set udg_ID = GetHandleId(GetDyingUnit())
- Set HashUnit = (Load 0 of ID in Hashtable)
- Set TempPoint = (Position of (Dying unit))
- Unit - Cause HashUnit to damage circular area after 0.00 seconds of radius 200.00 at TempPoint, dealing ((Real((Agility of HashUnit (Include bonuses)))) x (Random real number between 4.00 and 6.00)) damage of attack type Spells and damage type Normal
- Hashtable - Clear all child hashtables of child ID in Hashtable
- Custom script: call RemoveLocation( udg_TempPoint )
-
Events