Teach101
New Member
- Reaction score
- 4
Why Can't You Use Waits in a mui spell?
For more precise information, tell us how you've learned to code MUI, and we'll tell you whether or not it can support waits and why.
Going through a massive array like that is technically not MUI. With a system like that, waits will be a huge problem because the global you are using to denote the position in the array is always changing... Two words: Learn JASS.
Scenario:
- While your spell is paused, another unit casts your spell.
- Therefore all of the data is overwritten.
- All the actions you had after the wait will now only work for the active instance.
I'm sure you can see how many bugs can spawn from that scenario.
Yeah, I can. But why would it rewrite it? After all wouldn't the mui integer need to be used 8,000 times?
Why would you use Casting unit anways? Use Triggering Unit whenever you can. Most event responses return Triggering Unit.
Locals are the answer to MUI
Arrays are the answer to MPI