Warcraft III resources & community, 2003–2006 · archived

Slow "FOR"

21 posts
#1

Slow "FOR"

Hi everybody! sorry for this newbish question..

When I use "For each integer..." with no Waits in it, everything happens instantanely, right? But since three days ago, when I put a 0.01 Wait in its end or beggining, the actions repeat slowly, like if there was a 0.5 Wait.

I think it's not normal because it didn't use to happen...

Thanks everybody
Hossomi
#2
Wait cant wait for 0.01 secs, the least is ~0.2 iirc. Use event "Every 0.01 seconds" instead of Wait
#3
TriggerSleepAction ( aka Wait ) is highly innaccurate.

first, any number less than about .27 will become a .27 wait. Second, if you want to wait X time, 75% of that time is how long the wait should be.
#4
Uh.. I didn't know that..
sorry for this question :P

thanks both!
#5
The most exact way lies in using timers. Every times the timer expires, perform an action. Timers are most exact of three ways.
#6
...but can only be used effectively using JASS.
#7
can be used without jass by using timer event
#8
I've been using timers, but this way I'll have a lot of triggers for each spell I do, won't I?
#9
Normally not. What are you truing to do?
#10
Effectively

anyways, you either need to hack wc3, or know enuff JASS to use them anyways.
#11
Pretty much effectively using few "Action - Custom Script" directives.
#12
well, you need a little bit of JASS knowledge for that

and there is no such thing as a local timer in GUI...
#13
Almost all of my triggered spells use timers, now (I like them), so I'll need at least two triggers for each one. Some of them I can squeeze in one, but only some..

Anyway it's working perfectly, and that's enough for me ^^

I still don't know why JASS could be so much better (sorry, newbie in the area), the only thing I can see to do with it is to make functions in instead of triggers, and local variables...
#14
What will happen if two units will cast your spell at the same time?
#15
BANG, thats what :?