I'll teach you step by step
For now, just create an integer variable (not array)
In the cast trigger, set the integer to 50
In the loop, create an if/then/else action.
If the integer is less than or equal to 0, then the loop is turned off
Else, you order the unit to do wtvr
After the if/then/else action, set the integer to itself + 1
-
Set integer = (integer + 1)
The counter is equal to 50 because apparently, you want the duration to
be 5 seconds, and the loop runs every 0.10 seconds.
5 seconds / 0.10 seconds = 50
When you wanna change the duration and the periodic event in
the loop, then dont forget to change the duration.
Your spell is one step closer to being MUI
Remove the wait:
-
Wait 0.02 seconds
Now, to remove this one:
-
Wait 3.00 seconds
We have to go back to the first step.
Your spell duration is a total of 8 seconds.
The loop actions arent supposed to run when the spell begins, instead,
you want them to run 3.00 seconds after.
This is why we have to move the Set the integer to 80 (The total spell time)
Also, we have to change the condition for the if/then/else thing to
If Integer is equal to 50 or less than, the action will be executed
We will have to create a new if/then/else action to manage turning off the loop
If The integer is equal to 0 or less, then the trigger will turn off
For what happens after 3 seconds,
we create an action in the loop that checks if integer is only equal to 50.
It will execute the actions, then it will continue to execute every 0.10
seconds and decreasing integer by 1 (At the end of the trigger) until it
reaches 50 after 3 seconds. Then it will continuously order the unit to
do wtvr until it reaches 0, which will cause the loop to turn off, and then
the locations will be removed (not in the cast trigger)
Also, you leak here:
-
Unit - Order Invisible_caster to Human Blood Mage - Flame Strike (Position of Blazing_dummy_phoenix)
Position of Blazing_dummy_phoenix
After you do this, upload your spell, then it'll be easier to show you how to make it MUI
This way, your spell will work fine.
----------------------------------------
how to make it MUI:
Create a new integer variable and call it "index"
Create a new integer variable and call it "max_index"
Create a new integer (array) variable and call it "boolean"
Array all your variables except index and max_index
(NOTE: This will reset most of your actions, but recovery is simple)
All the variable should be arrayed with "index" like this:
-
Set Blazing_hero[index] = (Triggering Unit)
Set Max_index to 20 or 30 at Map initialization
Create an if then else action in the cast trigger that checks if index is
greater than or equal to max_index
If it is, then Set Index to 0
After the if then else thing, create an action that increases index by 1
-
Set index = (index + 1)
Then, set The boolean to true
In the loop trigger, create a For each integer variable action:
For each "index" from 1 to Max_index
Then create an if/then/else action in the For each integer variable thing that checks if
boolean equals true. If yes, then it will execute each action
But, in the part that says if integer = 0, remove the "turn off trigger" thing and add this:
-
Set Boolean = False
Create another trigger that waits until the variable "integer" (the one that decreases by 1
with each instance of the loop)
It checks if the variable "integer[index]" equals 0 (This works since index is refering to the
last instance and thus it corresponds to the data of the last cast. Thus ... wtvr This works
)
Then it will turn off the loop trigger. (This trigger that you just created should be initially off.
It will turned on in the cast trigger AFTER you set "integer" to 80)
Btw, if i didnt mention this before, at the end of the cast trigger, we turn on
the loop trigger.
Congratulations
Your spell is MUI
Give yourself a pat on the back
----------------------------------------------------------------------------------------------
Instead of pausing the hero, make the spell channeling by basing it off of "Channel"
Set the "Follow Through Time" to 3 seconds and specify the animation you want the hero to play
in the top.
Also, set the Options to: Visible
And make the spell "instant"
Set "Disable Other Abilities" to false
And make sure "Art duration" is equal to about 1.3 seconds (Average Attack animation time)
Animation speed is set in the triggers btw.
With all these settings, the spell is channeling and it will cancel when the caster moves
before the dummy pheonix is created
----------------------------------------------------------------------------------------------
I hope this long post helped you and didnt just crash internet explorer
Good luck and welcome to the living hell that:
MUI Coding