HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

What's wrong?...

08-31-2007, 04:50 PM#1
Hydrolisk
Trigger:
Netherweave
Collapse Events
Unit - A unit Starts the effect of an ability
Collapse Conditions
(Ability being cast) Equal to Netherweave: Arcane Bolt
Collapse Actions
Wait 2.40 game-time seconds
Collapse For each (Integer A) from 1 to 5, do (Actions)
Collapse Loop - Actions
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

Arcane Bolt: Based off Firebolt, deals 50 damage, stuns for 1/2 a second.
Netherweave: (Should) make 5 dummies consecutively, each one casting an Arcane Bolt. (Based off of Channel.)

Something I can't see is stopping this from working. Could you help me?

It's either shooting 1 Arcane Bolt or none at all.
08-31-2007, 04:57 PM#2
vesuvan doppleganger
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
Hydrolisk
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
Freakazoid
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
Hydrolisk
It still won't work.

Hell.
08-31-2007, 06:52 PM#6
teddybear
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
Hydrolisk
Already did that, and it didn't work.
08-31-2007, 07:02 PM#8
Anopob
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
Anitarf
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
TaintedReality
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
teddybear
Quote:
Originally Posted by TaintedReality
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.

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
Dark.Revenant
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
Hydrolisk
Wow, that sucks so bad.

...

And I thought I could make do without those tools and crap.
09-01-2007, 03:53 AM#14
Anopob
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
Pyrogasm
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 TargetUnit

That works just fine, but can only be done once per trigger.