| 05-12-2007, 07:33 PM | #2 |
The formatting goes all wonky-jod like that when you don't use [trigger] tags. I've fixed them for you. 80 loops is ~20 seconds... are you sure you want it to loop that long? It's possible that the wait is fucking it up too. |
| 05-12-2007, 07:45 PM | #3 |
There needs to be a wait, How would that ruin it exactly? the loops are changed by another trigger based on spell level, and i will change that based on balance. This is just to see if i could make it go. it should be going for 20s with the current number but its only going about 5-6 and about 20 loops (its hard to accurately count something so fast. Perhaps its going too fast? I bet its the play attack animation part, it cant play it that fast so its slowing itself down? I had another triggered spell with loops waits and attack anim and it went waaaaaaay to slow. Now this ones too fast...lol. I dont quite understand the inner workings of "play unit animation" triggers. Does everything stop for it to finish anim? |
| 05-12-2007, 07:50 PM | #4 |
As the the first line of the loop, add this line: Trigger: Game - Display to (All players) the text (String((IntegerA)))Additonally, make the Wait command the last action in the loop. |
| 05-12-2007, 08:11 PM | #5 |
Ok, so this is supposed to be cast by multiple units. Every unit has its own global variables. the text message counts by 4s and ends at 81 (there are 4 units casting spell) the trigger isnt subtracting variable a every loop it just say do it loopvariable times. So is the action for every variable A from 1 to # not multi instanceable? Edit: 2nd test counted to 83... Edit again: I cant imagine the patience it must take to help so many people with simple stuff. ^_^ |
| 05-12-2007, 08:24 PM | #6 |
Dont use wait, try to work around it. I bet it works without wait. |
| 05-12-2007, 08:30 PM | #7 |
Lol, it seems from integer a isnt multi instanceable after all, ill try to work around it for now as for the wait... if theres no wait then the spell wont take any time your supposed to tp around and attack people visibly. But ill try that next. Edit: worked around that action it goes the correct # of times now, but it doesnt use exactly 20s like it should (.25*80 loops) each loop takes longer than .25s, maybe i should put the wait somewhere else? Edit again: Ok moving the wait doesnt work, it seems like its waiting longer than .25s, I dont even know where to start on this one. The counter goes every .25s but the rest stops working at 54... |
| 05-12-2007, 09:04 PM | #8 |
The shortest you can possibly wait is ~0.27 seconds. Waits can be set for any amount, but anything under that amount simply won't wait that long. To get it to go sooner, you'll need a repeating trigger that occurs "Every 0.25 seconds of game-tme". |
| 05-12-2007, 09:28 PM | #9 |
I changed wait to at the end of the loop, made it .33, and made loops=60 it should still last 20s (.33x60=19.8s close enough) It is now doing the correct # of loops but its lasting longer than 20s its going ~25. How do i post a map in a thread? (incase i ever have to, which may be today lol) Edit: I put a timer to say a message 20s after casting, and it counts to 60 while doing the loop the counter says 20s after 47 loops (47x.33 is NOT 20) |
| 05-12-2007, 09:31 PM | #10 |
You can post the map here by simply uploading it as an attachment. In the reply window, go to the "Additional Options" area and click the "Manage Attachments" button; everything else should be self-explainatory. You can also host the map in the PasteBin the same way and link to it instead of uploading it every post. Or (if you really need help now) you could PM/IM me; my IM is "luvs2playdasax18". |
| 05-12-2007, 09:55 PM | #11 |
It seems to be working properly just slower than intended, even with a wait of .33. Well here it is if you would like to look at it. |
| 05-13-2007, 09:41 AM | #12 |
Well, the spells ingame looks nice, but there are several things you should change. 1. You leak in several triggers locations, e.g. Fire Rocket, because you use polar offset which creates a new location. 2.Most of the Spells aren't really MUI, only Dark Pulse is MUI without the need to translate it into JASS or using a huge array due it doesn't use any wait, but the other Spells aren't MUI. (e.g. i had several permanent clones of me after i used the celerity spell again while it was active and i didn't change the triggers. 3. Often you're copying actions and just change 1 value. e.g. Fire Rocket, use a Loop instead of in this case 8 times the same actions. It would look for Fire Rocket like this Uhm, that's all i have to say, they need some more trigger work, but afterwards they could be nice though. |
| 05-13-2007, 05:55 PM | #13 |
I would suggest activating the trigger (setting variables, etc) with one trigger, and using a timer to move him. Timers are accurate to .02. |
