- Joined
- Dec 17, 2009
- Messages
- 1,114
Some people say that triggers without waits are MUI
Some people say that Waits + Indexing will make spells MUI
So if i don't use both will it be MUI?
Like this
EDIT: Found another problem it leaks
Help me someone
Some people say that Waits + Indexing will make spells MUI
So if i don't use both will it be MUI?
Like this
-
Fireball
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Fireball
-
Actions
- Set FB_Caster = (Triggering unit)
- Set FB_PointA = (Position of FB_Caster)
- Set FB_AnglePoint = (Target point of ability being cast)
- Set FB_PointB = (FB_PointA offset by (600.00 + (50.00 x (Real((Level of Fireball for FB_Caster))))) towards (Angle from FB_PointA to FB_AnglePoint) degrees)
- Unit - Create 1 Fireball dummy for (Owner of FB_Caster) at FB_PointA facing (Angle from FB_PointA to FB_AnglePoint) degrees
- Unit - Order (Last created unit) to Move To FB_PointB
- Unit - Add a ((Distance between FB_PointA and FB_PointB) / 522.00) second Generic expiration timer to (Last created unit)
- Custom script: call RemoveLocation(udg_FB_PointA)
- Custom script: call RemoveLocation(udg_FB_PointB)
- Custom script: call RemoveLocation(udg_FB_AnglePoint)
-
Events
-
Fireball Explosion
-
Events
- Time - Every 0.02 seconds of game time
- Conditions
-
Actions
- Set FB_UG = (Units of type Fireball dummy)
-
Unit Group - Pick every unit in FB_UG and do (Actions)
-
Loop - Actions
- Set FB_TempUnit = (Picked unit)
- Set FB_Curpos = (Position of (Picked unit))
- Set FB_UGDetector = (Units within 150.00 of FB_Curpos matching ((((Matching unit) belongs to an enemy of (Owner of (Picked unit))) Equal to True) and (((Matching unit) is Magic Immune) Equal to False)))
-
Unit Group - Pick every unit in FB_UGDetector and do (Actions)
-
Loop - Actions
- Unit - Cause FB_TempUnit to damage (Picked unit), dealing (10.00 x (Real((Level of Fireball for WizardHero[(Player number of (Owner of FB_TempUnit))])))) damage of attack type Spells and damage type Normal
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Number of units in FB_UGDetector) Greater than 0
-
Then - Actions
- Special Effect - Create a special effect at FB_Curpos using Abilities\Weapons\RedDragonBreath\RedDragonMissile.mdl
- Special Effect - Destroy (Last created special effect)
- Unit - Remove (Picked unit) from the game
- Else - Actions
-
If - Conditions
- Custom script: call DestroyGroup(udg_FB_UGDetector)
- Custom script: call RemoveLocation(udg_FB_Curpos)
-
Loop - Actions
- Custom script: call DestroyGroup(udg_FB_UG)
-
Events
Help me someone