• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Triggered Casting - Base Abilities

Status
Not open for further replies.
Level 2
Joined
Apr 15, 2012
Messages
18
Hey Guys

I have some trouble making a creep red dragon cast a firebolt.

The problem started a few days ago during testing when I saw a salamander lord only casts his "rain of fire" ability on firelords's lava spawn, but not firelord itself (that made me look into the "targeted as" (for firelord) and "targets allowed" (for rain of fire [creep version]) for a possible solution, but everything checks out)

After nothing seemed to work I read a few stuff on triggered casting, made the attached trigger and still nothing. I tested it with a minimap ping and the code executes all the way until I order the attacked unit to use the ability on the attacking unit. I even tested it with a "do damage" command in the place of the "use ability" command(which works fine)

(firebolt is in the abilities list of the red dragon... I'm not sure if it even needs to be there)

Why doesn't salamander lord cast "rain of fire" on heroes(or make it seem that way)?

Thanks

  • Events
    • Unit - A unit Is attacked
  • Actions
    • -------- Red Dragon --------
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Unit-type of (Attacked unit)) Equal to Red Dragon
      • Then - Actions
        • Unit - Order (Attacked unit) to Neutral - Firebolt (Attacking unit)
      • Else - Actions
 

Attachments

  • Trigger Editor_2012-10-06_16-13-52.png
    Trigger Editor_2012-10-06_16-13-52.png
    11.6 KB · Views: 74

Kusanagi Kuro

Hosted Project: SC
Level 10
Joined
Mar 11, 2012
Messages
708
Not quite sure what u are trying to do. But let me check it: U want ur red dragon to cast a spell that base on fire bolt to the unit that attack it right?
 
Level 2
Joined
Apr 15, 2012
Messages
18
I want it to use firebolt(the standard spell).

Edit: Or any other base spell (which I can edit). I do not want creeps to cast custom spells (at this stage).
 
Level 2
Joined
Apr 15, 2012
Messages
18
I dont control red dragon(creep). I play with a standard hero(firelord).

I would like creeps to cast any ability I assign to them...
 
Level 2
Joined
Apr 15, 2012
Messages
18
Still, you shall test if you can cast the spell manually. Other abilities require other orders. Check vision of the creep player because you cannot target units you do not see.

I think the red dragon can see the hero because it attacks it back?...

By manually you mean assign it to a hero and cast it?

Edit: Just tested the spell Manually(By assigning it to a hero and casting it)... it works
 

Kusanagi Kuro

Hosted Project: SC
Level 10
Joined
Mar 11, 2012
Messages
708
  • Events
  • Unit - A unit Is attacked
  • Conditions - (Unit-type of (Attacked unit)) Equal to Red Dragon
  • Actions
  • Unit - Order (Attacked unit) to Neutral - Firebolt (Attacking unit)
I think ur trigger is correct and it is similar to my trigger (the above). And it's work well. Can u send me ur testmap? I'll check it for u. (Dont worry, I wont do anything to ur map, just fix the trigger)
 
Level 2
Joined
Apr 15, 2012
Messages
18
I don't think something is wrong with the trigger...

What else could cause this problem?
 
Level 26
Joined
Aug 18, 2009
Messages
4,097
The ability could also be disabled for the player.

When I say to manually test it, I mean to only change the owner of the unit. If you try giving it to your hero, there might be other environment factors.

You may also test to change the controller of the unit, if maybe the AI interrupts it or try another event.
 
Level 2
Joined
Apr 15, 2012
Messages
18
I've Given control of Red Dragon to a hostile Controller... Nothing changes(Red Dragon Only attacks back with it's normal attack. No Spells casted ect)

How do I enable the ability should it be disabled for some reason?



Another Question: How do I make sure the AI doesn't interrupt? By checking triggers?
 
Level 26
Joined
Aug 18, 2009
Messages
4,097
The ability is only disabled if you have done so yourself via Player - Enable/Disable ability. I do not even think that the AI is to blame, but you would change that player slot to unused.

Just upload the map/a test map containing the problem. Else we can only make wild guesses and you see we cannot be sure that you do exactly what we instruct you to/there can be misunderstandings.
 
Level 2
Joined
Apr 15, 2012
Messages
18
Here is the test map.

Thanks for all the trouble so far...
 

Attachments

  • asd.w3x
    16.8 KB · Views: 59
Status
Not open for further replies.
Top