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

Casting spells

Status
Not open for further replies.
Level 3
Joined
Oct 30, 2005
Messages
51
Hi all. I created this spell called charge. This spell works such that a captain would cast shockwave and then slide along with the shockwave. I created the trigger and it works perfectly fine. He slides through everything cos his collision is turned off and he is in a defend position. Now here's my problem.

The trigger goes such that the captain will slide along with the shockwave when he casts the shockwave.
I thought of creating a trigger such that there is a percentage chance to cast the shockwave by itself. Without anyone clicking the ability button. The problem is. I dont know how! I've settled the percentage and all that. But i don't know how to order the captain to cast the shockwave! I look for "Units - give an order to a unit targeting a unit" there is a list of spells but i cant find shockwave. Anyone got any alternatives?

Here's my Passive Charge trigger for reference.

Passive Charge
Event:
A unit is attacked
Conditions:
Attacking unit equals to captain
Actions:
If: Math - Random number between 1-100 less than or equal to 50
Then: Order attacking unit to <blank>
Else: Do nothing

I cant figure out what to do after this! Please help! THx
 
Level 3
Joined
Mar 2, 2006
Messages
40
Shockwave is in Issue an order targeting a point. If you want it in the direction of the attacker, the location should be Agnle between Posiotion of (Attacked Unit) and Position of (Attacking Unit). For sliding i suggest using WEU. It has Advanced - Make Unit Slide action.
 
Status
Not open for further replies.
Top