| 11-12-2003, 02:11 PM | #1 |
I created a spell based on Stampede for a mini-campaign I'm working on, using the Possesion animation rather than the standard TL ani. The computer controlled enemy hero that has it, however, won't cast it unless there is a large group of enemies nearby,since it is based on Stampede. (He is supposed to cast it on the players' heroes.) Do you guys have any ideas on what I could do to make him cast it more? |
| 11-12-2003, 02:24 PM | #2 |
Order him to do it. Basically, have a Unit takes damage event trigger, and a random number generator (I'm working on something similar right now). Code:
Actions
Set RandomInteger = (Random integer number between 1 and 6)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
RandomInteger Equal to 1
Then - Actions
Unit - Order Cyberbiotics Airship 1 0339 <gen> to Orc Shaman - Lightning Shield Cyberbiotics Airship 1 0339 <gen>
Else - Actions |
| 11-12-2003, 02:30 PM | #3 |
Events: A unit is attacked Conditions: (Unit type of Triggering unit) equal to (the guy that has that strange spell)) ((Attacking unit is a hero) equal to true) (Percentage life of (triggering unit) less than 50.00) Actions Unit Issued order ( Order (triggering unit) to Beast Master Stampede)) to position of (triggering unit) |
