- Joined
- Aug 14, 2006
- Messages
- 7,602
Hey.
I have a spell in the campaign in campaign called Glacial Ball. It's a hero spell with five levels. When the spell is cast the game start to lag like hell. Even after the spell is cast the game still lags. I really wonder why and how this can be solved. Otherwise I have to remove this spell sooner or later.
Here is the trigger of the spell.
Spell uses this model as missile:
Frozen Orb - The Hive Workshop - A Warcraft III Modding Site
I have a spell in the campaign in campaign called Glacial Ball. It's a hero spell with five levels. When the spell is cast the game start to lag like hell. Even after the spell is cast the game still lags. I really wonder why and how this can be solved. Otherwise I have to remove this spell sooner or later.
Here is the trigger of the spell.
-
Glacial Ball AS
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Glacial Ball (G, B, 2, U)
-
Actions
- Set TempLoc = (Position of AAAGaleoth)
- Set TempLoc2 = (TempLoc offset by 100.00 towards (Facing of (Casting unit)) degrees)
- Set TempLoc3 = ((Target point of ability being cast) offset by 1500.00 towards (Facing of (Casting unit)) degrees)
- Unit - Create 1 Glacial Orb Dummy 1 for (Owner of (Casting unit)) at TempLoc2 facing Default building facing degrees
- Set Glacial_Orb_Unit = (Last created unit)
- Unit - Order (Last created unit) to Move To TempLoc3
- Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
- Custom script: call RemoveLocation(udg_TempLoc)
- Custom script: call RemoveLocation(udg_TempLoc2)
- Custom script: call RemoveLocation(udg_TempLoc3)
-
For each (Integer Glacial_Orb_Integer_1) from 1 to 5, do (Actions)
-
Loop - Actions
- Set TempLoc4 = (Position of Glacial_Orb_Unit)
- Set TempGroup2 = (Units owned by Neutral Hostile)
- Set TempGroup = (Units within 250.00 of TempLoc4 matching ((((Matching unit) is alive) Equal to True) and ((((Matching unit) is in TempGroup2) Equal to True) and (((Matching unit) has buff Invulnerable) Equal to False))))
- Set Damage_AAA_Spell = (((Real((Level of Glacial Ball (G, B, 2, U) for (Casting unit)))) x 30.00) + (((Real((Intelligence of (Casting unit) (Include bonuses)))) x 3.00) + (((Real((Charges remaining in (Item carried by (Casting unit) of type Low Magic Ball)))) x 10.00) + (((Real((Ch
-
Unit Group - Pick every unit in TempGroup and do (Actions)
-
Loop - Actions
- Unit - Cause (Casting unit) to damage (Picked unit), dealing Damage_AAA_Spell damage of attack type Spells and damage type Normal
- Special Effect - Create a special effect attached to the origin of (Picked unit) using war3campImported\Shiva'sWrath.mdx
- Set Glacial_Orb_SE[Glacial_Orb_Integer] = (Last created special effect)
-
Loop - Actions
- Custom script: call RemoveLocation(udg_TempLoc3)
- Custom script: call DestroyGroup(udg_TempGroup2)
- Custom script: call DestroyGroup(udg_TempGroup)
- Wait 1.00 seconds
- Special Effect - Destroy Glacial_Orb_SE[Glacial_Orb_Integer]
-
Loop - Actions
-
Events
Frozen Orb - The Hive Workshop - A Warcraft III Modding Site