Tawnttoo
New Member
- Reaction score
- 36
I recently started to try my hand at making MUI spells. Could you tell me if this is MUI?
Also, any suggestions to improve the code?
Trigger:
- DoT Cast
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to DoT (Neutral Hostile)
- Actions
- Set DoT_Integer = (DoT_Integer + 1)
- Set DoT_Caster[DoT_Integer] = (Triggering unit)
- Set DoT_Target[DoT_Integer] = (Target unit of ability being cast)
- Set DoT_Duration[DoT_Integer] = 15.00
- Set DoT_Damage[DoT_Integer] = (Life of DoT_Caster[DoT_Integer])
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- DoT_Integer Equal to 5000
- Then - Actions
- Set DoT_Integer = 1
- Else - Actions
- If - Conditions
- Events
Trigger:
- DoT Damage
- Events
- Time - Every 1.00 seconds of game time
- Conditions
- Actions
- For each (Integer DoT_Number) from 1 to DoT_Integer, do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- DoT_Duration[DoT_Number] Greater than 0.00
- Then - Actions
- Unit - Cause DoT_Caster[DoT_Number] to damage DoT_Target[DoT_Number], dealing (DoT_Damage[DoT_Number] / 15.00) damage of attack type Spells and damage type Normal
- Set DoT_Duration[DoT_Number] = (DoT_Duration[DoT_Number] - 1.00)
- Else - Actions
- Set DoT_Integer = (DoT_Integer - 1)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - Actions
- For each (Integer DoT_Number) from 1 to DoT_Integer, do (Actions)
- Events
Also, any suggestions to improve the code?