- Joined
- Aug 6, 2009
- Messages
- 697
Be very descriptive on how to make this MUI please,I attempted to make a chidori MUI spell but it failed and im not sure what to do,I attempted making this using the dynamic indexing system.
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Chidori
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Index Equal to 0
-
Then - Actions
- Trigger - Turn on SpellLoop <gen>
- Else - Actions
-
If - Conditions
- Set Index = (Index + 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Index Greater than IndexMax
-
Then - Actions
- Set IndexReg[Index] = Index
- Set IndexMax = Index
- Else - Actions
-
If - Conditions
- Set IndexTemp = Index
- Set Caster[IndexTemp] = (Triggering unit)
- Set Victim[IndexTemp] = (Target unit of ability being cast)
- Set ChidoriPoint = (Position of (Triggering unit))
- Set ChidoriPoint2 = (Position of (Target unit of ability being cast))
- Set ChidoriAngle[IndexTemp] = (Angle from ChidoriPoint to ChidoriPoint2)
- Set ChidoriCharge[IndexTemp] = 30.00
- Unit - Turn collision for Caster[IndexTemp] Off
- Custom script: call RemoveLocation(udg_ChidoriPoint)
- Custom script: call RemoveLocation(udg_ChidoriPoint2)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
- Time - Every 0.03 seconds of game time
-
Actions
-
For each (Integer ALoop) from 1 to Index, do (Actions)
-
Loop - Actions
- Set IndexTemp = IndexReg[ALoop]
- Set ChidoriPoint = (Position of Caster[IndexTemp])
- Set ChidoriPoint2 = (Position of Victim[IndexTemp])
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Distance between ChidoriPoint and ChidoriPoint2) Greater than or equal to 195.00
-
Then - Actions
- Unit - Move Caster[IndexTemp] instantly to (ChidoriPoint offset by ChidoriCharge[IndexTemp] towards ChidoriAngle[IndexTemp] degrees)
- Special Effect - Create a special effect attached to the right hand of Caster[IndexTemp] using Abilities\Spells\Human\StormBolt\StormBoltMissile.mdl
- Special Effect - Destroy (Last created special effect)
- Special Effect - Create a special effect attached to the right hand of Caster[IndexTemp] using Abilities\Spells\Orc\LightningBolt\LightningBoltMissile.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_ChidoriPoint)
- Custom script: call RemoveLocation(udg_ChidoriPoint2)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Distance between ChidoriPoint and ChidoriPoint2) Less than or equal to 195.00
-
Then - Actions
- Animation - Play Caster[IndexTemp]'s attack animation
- -------- Edit Damage Here --------
- Unit - Cause Caster[IndexTemp] to damage Victim[IndexTemp], dealing (5.00 x (Real((Agility of Caster[IndexTemp] (Include bonuses))))) damage of attack type Spells and damage type Normal
- Special Effect - Create a special effect attached to the origin of Victim[IndexTemp] using Abilities\Spells\Human\StormBolt\StormBoltMissile.mdl
- Special Effect - Destroy (Last created special effect)
- Special Effect - Create a special effect attached to the right hand of Victim[IndexTemp] using Abilities\Spells\Orc\LightningBolt\LightningBoltMissile.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_ChidoriPoint)
- Custom script: call RemoveLocation(udg_ChidoriPoint2)
- Else - Actions
-
If - Conditions
- Set IndexReg[ALoop] = IndexReg[Index]
- Set IndexReg[Index] = IndexTemp
- Set Index = (Index - 1)
- Set ALoop = (ALoop - 1)
- Unit - Turn collision for Caster[IndexTemp] On
- Set Caster[IndexTemp] = No unit
- Set Victim[IndexTemp] = No unit
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Index Equal to 0
-
Then - Actions
- Trigger - Turn off (This trigger)
- Else - Actions
-
If - Conditions
-
For each (Integer ALoop) from 1 to Index, do (Actions)