HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

More help for a noob

08-03-2009, 04:05 AM#1
T3RMINUS
I am using one of Daminon's spells (great spells btw) and i want to start it with triggers, as in not being casted by a unit. So I spawned a dummy and told it to use the spell, but its not doing it. I used some debug messages to figure out whats wrong and i figured out the dummy is being created, but the spell is not being cast.
Here is my trigger:
Trigger:
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Searflesh 0013 <gen> is dead) Equal to True
Collapse Then - Actions
Unit Group - Add all units of (Units owned by Player 12 (Brown) of type Firey Disciple) to tmpGroup
Unit Group - Pick every unit in tmpGroup and do (Unit - Kill (Picked unit))
Custom script: call DestroyGroup( udg_tmpGroup)
Set tmpPoint = (Position of Searflesh 0013 <gen>)
Unit - Create 1 Dummy for Player 12 (Brown) at tmpPoint facing Default building facing degrees
Set tmpUnit = (Last created unit)
If ((Unit-type of tmpUnit) Equal to Dummy) then do (Game - Display to (All players) the text: Dummy Created.) else do (Do nothing)
Unit - Order tmpUnit to Undead Death Knight - Animate Dead
If ((Ability being cast) Equal to Animate Dead) then do (Game - Display to (All players) the text: Animate Dead cast.) else do (Do nothing)
Trigger - Turn off (This trigger)
Else - Actions
08-03-2009, 07:07 AM#2
Tot
Trigger:
Unit - Order tmpUnit to Undead Death Knight - Animate Dead

have you changed the Animate Dead ability or have made your own?

think
Trigger:
Order Unit to cast a spell
only works for abilities made by blizzard
if I'm right you can either use a JASS-script or change the base spell into original Animate Dead
08-03-2009, 07:35 AM#3
Sophismata
Quote:
Originally Posted by T3RMINUS
Trigger:
Set tmpUnit = (Last created unit)
If ((Unit-type of tmpUnit) Equal to Dummy) then do (Game - Display to (All players) the text: Dummy Created.) else do (Do nothing)

That if statement is unnecessary. ((Unit-type of tmpUnit) Equal to Dummy) will always be true.

Quote:
Originally Posted by T3RMINUS
Trigger:
Unit - Order tmpUnit to Undead Death Knight - Animate Dead
If ((Ability being cast) Equal to Animate Dead) then do (Game - Display to (All players) the text: Animate Dead cast.) else do (Do nothing)

Contrarily, ((Ability being cast) Equal to Animate Dead) will always be false in this context.
08-03-2009, 09:12 AM#4
T3RMINUS
Quote:
Originally Posted by Sophismata
That if statement is unnecessary. ((Unit-type of tmpUnit) Equal to Dummy) will always be true.
Contrarily, ((Ability being cast) Equal to Animate Dead) will always be false in this context.
Both of these were debug messages. Regardless, has anyone figured out why it is not casting?

Edit:
Quote:
Originally Posted by Tot
Trigger:
Unit - Order tmpUnit to Undead Death Knight - Animate Dead

have you changed the Animate Dead ability or have made your own?

think
Trigger:
Order Unit to cast a spell
only works for abilities made by blizzard
if I'm right you can either use a JASS-script or change the base spell into original Animate Dead
I do believe that it uses the orderstrings. The orderstring should be correct on my spell.
08-03-2009, 09:53 AM#5
Pyrogasm
You are correct about the orderstrings, T3RMINUS.

Your second debug message will never show, as you're not running that on an on-spell-cast event, to which the "Ability being cast" pertains.

Does your dummy unit have (enough) mana? Is it silenced somehow? Does it have the appropriate ability?
08-03-2009, 08:29 PM#6
T3RMINUS
Quote:
Originally Posted by Pyrogasm
You are correct about the orderstrings, T3RMINUS.

Your second debug message will never show, as you're not running that on an on-spell-cast event, to which the "Ability being cast" pertains.

Does your dummy unit have (enough) mana? Is it silenced somehow? Does it have the appropriate ability?
It's not silenced, the spell costs 0 mana, and it has the ability.
08-03-2009, 08:41 PM#7
Tot
T3RMINUS: try this: change the base spell into original Animate Dead

i'm sure that it'll help
08-03-2009, 09:24 PM#8
T3RMINUS
Quote:
Originally Posted by Tot
T3RMINUS: try this: change the base spell into original Animate Dead

i'm sure that it'll help
what?
08-03-2009, 09:54 PM#9
Tot
change the base spell of Daminon's spell to blizzards Animate Dead

open Daminon's spell and change it's cast condition to blizzards Animate Dead ID
08-03-2009, 10:18 PM#10
T3RMINUS
It already is. It has the order string of animate dead already, it should work.
Edit: I think i figured out the problem. I think that the spell is not channeled but point targeted.
Edit2: Changed orderstring to shockwave, still not working.
08-04-2009, 12:09 AM#11
Anitarf
The orderstring has to match the spell you are using (or in the case of custom spells, the spell they are based on), you can't just try orderstrings at random.
08-04-2009, 05:27 AM#12
T3RMINUS
It matches... I changed both of the orderstrings, because i thought the spell was coded as a point target spell.
08-04-2009, 12:35 PM#13
Anitarf
Quote:
Originally Posted by T3RMINUS
It matches... I changed both of the orderstrings, because i thought the spell was coded as a point target spell.
Both? You mean in the object editor as well? That doesn't do anything, spells always use their default orderstring.
08-04-2009, 12:39 PM#14
Sophismata
If the base spell is animate dead, it's an instant cast ability with the animate dead order string.

If the base spell is shockwave, it's a point or unit cast ability with the shockwave order string.
08-06-2009, 09:14 PM#15
T3RMINUS
Quote:
Originally Posted by Anitarf
Both? You mean in the object editor as well? That doesn't do anything, spells always use their default orderstring.
Well, I mean i thought the spell needed to be a point target spell, so i changed the orderstring in the base spell and the trigger to shockwave, thinking that would make it point target. However, that didn't work and I changed it back to animate dead.

Edit: Oops, i think i misread your post. You mean if i go to the object editor and change "Text - Order String" it wont work?