- Joined
- Jun 2, 2009
- Messages
- 1,233
Hello everyone. Yesterday i was trying to detect unit getting hit by ability and created this trigger.
Then i have created this one
For example i have added Storm Bolt in there (with different buff) with different projectile speed.
When it hits target, trigger will set the Caster and Target. Is it causes any MUI issues? MUI and MPI is my nightmare. I never understand how it works. This is why i am creating systems and abilities for eachh 22 player slots (10 for old version) sadly...
-
Test1
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
Actions
-
Wait until (((Target unit of ability being cast) has buff Stunned) Equal to True), checking every 0.10 seconds
-
-------- actions --------
-
-
Then i have created this one
-
Test2
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Ability being cast) Equal to Firebolt (Neutral Hostile)
-
-
Then - Actions
-
Set TempCaster = (Casting unit)
-
Set TempTarget = (Target unit of ability being cast)
-
Wait until ((TempTarget has buff Stunned) Equal to True), checking every 0.10 seconds
-
Unit - Cause TempCaster to damage TempTarget, dealing 100.00 damage of attack type Spells and damage type Magic
-
Game - Display to (All players) the text: 31
-
Set TempCaster = No unit
-
Set TempTarget = No unit
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Ability being cast) Equal to Storm Bolt
-
-
Then - Actions
-
-------- Other abilities will use the same TempCaster and TempTarget --------
-
-
Else - Actions
-
-
-
For example i have added Storm Bolt in there (with different buff) with different projectile speed.
When it hits target, trigger will set the Caster and Target. Is it causes any MUI issues? MUI and MPI is my nightmare. I never understand how it works. This is why i am creating systems and abilities for eachh 22 player slots (10 for old version) sadly...
Last edited: