• 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.

Neutral Passive cast abilities?

Status
Not open for further replies.
Level 6
Joined
Aug 12, 2007
Messages
38
The neutral passive unit is not taking up a player slot. It's a 12 player game so there is no slot for them. All I am asking is, if I can set a trigger to tell a neutral passive unit to 'perform this ability'. So far, the only abilities they will perform, are passive abilities. I ask here because I want to know if triggers can help.
 
Level 6
Joined
Aug 12, 2007
Messages
38
I just want the neutral passive units to start casting my custom skills (which are not passive skills). Neutral Hostile will, but so far not neutral passive. I just want to either have the AI randomly cast spells towards enemies, or know if there is a trigger I could do something like 'use this ability on this target' or 'cast this ability every 5 seconds'
 
Level 21
Joined
Aug 21, 2005
Messages
3,699
Well then trigger something? The easiest I can think off is:

  • Events
    • Unit - a unit is attacked
  • Conditions
    • Owner of attacked unit = Neutral passive
    • Random Integer between 1 and 10 = 1 (10% chance to cast a spell when he's attacked)
  • Actions
    • Unit - issue (attacked unit) to cast storm bolt on unit (or something like that)
 
Level 6
Joined
Aug 12, 2007
Messages
38
That was somewhat helpful, thank you. But its not actually my real problem, now that I know the situation:

I'm ordering two neutral hostiles to fight two neutral passives. They are duking each other out. I'd like for them to throw spells at each other too. But unfortunately they only attack and not do spells automatically.

In that case I should order them to cast an ability on each other. Unfortunately I do not know how to do this with CUSTOM abilities. I want them to throw custom abilities at each other, not pre-existing wc3 orders. How do I do this? Please excuse me for any stupidity.
 
Level 3
Joined
Dec 15, 2007
Messages
44
I have a similar problem on my map except on my map the cpu units aren't neutral players they are actual colors. I gave my units abilities to just throw at each other, but the only spell I see them casting is Inner Fire. I need them to also cast Banish which I didn't think they would cast, but I thought they would definitely be casting rejuv, but they don't.

I'm gonna try out that % chance thing.
 
Status
Not open for further replies.
Top