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