| 08-31-2007, 04:57 PM | #2 |
Its been a while since I've used GUI, but I'm almost certain you can not use waits in GUI loops. |
| 08-31-2007, 05:10 PM | #3 |
I swear, for one ability I've made once, I made a Wait in a loop and it worked (it waited before going to the next loop). I also tried separating this (not in a loop) but I don't think it worked at all. |
| 08-31-2007, 05:17 PM | #4 |
Try not to use game-time second wait. Try using Storm Blot (frost bolt if there is one) |
| 08-31-2007, 05:33 PM | #5 |
It still won't work. Hell. |
| 08-31-2007, 06:52 PM | #6 |
You can try to do that in the hard/longer way, dont do For Each Inter A 1 to 5... and just do Set nwp1 = (Position of (Triggering unit)) Unit - Create 1 -Dummy- for (Owner of (Triggering unit)) at nwp1 facing Default building facing degrees Unit - Add a 2.00 second Generic expiration timer to (Last created unit) Unit - Add Arcane Bolt (Dummy) to (Last created unit) Unit - Order (Last created unit) to Neutral - Firebolt (Target unit of ability being cast) Custom script: call RemoveLocation( udg_nwp1 ) Wait 0.40 game-time seconds Five times. mayby it's can work? |
| 08-31-2007, 06:56 PM | #7 |
Already did that, and it didn't work. |
| 08-31-2007, 07:02 PM | #8 |
I believe in GUI you cannot use pre-set "variables" after waits. In this case your problem is "Last Created Unit to Firebolt". EDIT: And maybe the "target unit of ability cast". Try setting variable to those and using it instead. |
| 08-31-2007, 07:11 PM | #9 |
Just don't use waits, they bug with GUI loops and bugged cast event responses. Try it without the waits and see how it works. |
| 08-31-2007, 07:19 PM | #10 |
You can't use "Target unit of ability being cast" after waits, and the other ones can be used but will get mixed up with other triggers because of the waits. |
| 08-31-2007, 07:55 PM | #11 | |
Quote:
lol i wanted to ask in new thread why my spell dont works,and you just answered my question xD ![]() As Toadcop told me,the wait action is crule ^^ |
| 08-31-2007, 10:11 PM | #12 |
You pretty much have to use the GUI Locals trick to do this sort of thing with any degree of control beyond the first wait. |
| 09-01-2007, 12:48 AM | #13 |
Wow, that sucks so bad. ... And I thought I could make do without those tools and crap. |
| 09-01-2007, 03:53 AM | #14 |
You don't need tools, just learn enough JASS for locals or, better, as much JASS as you can. |
| 09-01-2007, 05:44 AM | #15 |
You only need the one GUI-local trick: Trigger: Actions![]() Custom script: local unit udg_TargetUnit = GetSpellTargetUnit()![]() ----- TargetUnit is now a local -----![]() Wait 2.00 game-time seconds![]() Unit - Kill TargetUnitThat works just fine, but can only be done once per trigger. |
