Warcraft III resources & community, 2003–2006 · archived

Spell tutorials?

26 posts
#1

Spell tutorials?

Hey, i was wondering if there are any spell tutorials out there. I can only find 1 on wc3c, and its not even completed!
#2
Spells are VERY various, all spells are different. If you want help with something you should post here.
#3
Well, my problem is i cant get my dummy spell working. I have it like


Events
    Unit - A unit Starts the effect of an ability
Conditions
    (Ability being cast) Equal to some name
Actions
    Unit - Create 1 Dummy for (Owner of (Triggering unit)) at (Center of Region 000 <gen>) facing Default building facing degrees
    Unit - Order (Last created unit) to Human Sorceress - Invisibility (Triggering unit)
    Unit - Order (Triggering unit) to Stop
    Unit - Remove (Last created unit) from the game
    If ((Current order of (Triggering unit)) Not equal to (Order(stop))) then do (Unit - Remove All buffs from (Triggering unit)) else do (Do nothing)

But that dont work. The triggering unit does not become invisible or anything! Nothing happens
#4
Change (Triggering Unit) to (casting unit)... that should make it work.
#5
Saxe
Unit - Order (Last created unit) to Human Sorceress - Invisibility (Triggering unit)
Unit - Order (Triggering unit) to Stop
Unit - Remove (Last created unit) from the game


@whitenights

Hm, could this stop and remove action be to fast?
#6
It still dont work. Well the unit playes the animation from warstomp (that i based my spell on), and it seems that the dummy gets created, but still, nothing happens. Any idea why?
#7
Hm, I'll see if I get it to work, I'll answer in ca. 20 hours (if anyone else isn't faster)
#8
Ok, thanks a lot!
#9
Yeah... that wait is too quick... wait 1 second and that should do it.
EDIT: also make the dummy at position of unit not center of region
#10
Where should i place the wait action? I've tried some different places, but that still dont make him invisible.
And also, i have changed that thing with the region now. Thanks :wink:
#11
Unit - Order (Last created unit) to Human Sorceress - Invisibility (Triggering unit)
Wait 1 seconds
Unit - Order (Triggering unit) to Stop

But I see another problem, perhaps the "triggering unit"-definitions mess up a bit, I'll test that (in exactly 4 hours, then I'm back home)
#12
whitenightsChange (Triggering Unit) to (casting unit)... that should make it work.


I hate to double post but....
#13
Store the casting unit into a variable, i've had troubles with that too, i think that the dummy unit becomes the casting unit (for any reason), so that should solve the problem (at least for me, it did)

And is your invisibility spell custom? You should use the default one, cous using custom ones always gives troubles...

And don't forget the wait action between -Issue to cast and -issue to stop.
#14
whitenights
whitenightsChange (Triggering Unit) to (casting unit)... that should make it work.


I hate to double post but....


I've already done that, with no result
#15
create an unit variable, like TheWickerMan already said.

your first action should be: set "yourunitvariable" = tirggering (or casting :wink: ) unit.

then replace all "triggering unit" with the variable