| 02-12-2004, 08:51 AM | #1 |
k in my td ive decided to make the last lvl to heroes... the heroes has to use a spell in order of how much hp they have.. i made it this way, but they wont do it :( E: Unit is attacked C: Unit-type of attacked unit equal to "myhero" Life of attacked unit is less than 50000 A: unit -order attacked unit to holy light attacked unit and yes i have set the correct targets... the problem is the trigger wont fire :( does any one out there has a good knowledge about orders they wants to share with me ? plz help me :( |
| 02-12-2004, 11:20 AM | #2 |
You ordered the attacked unit to cast Holy Light on itself. Make sure your Holy Light spell has Self as an allowable target, and does not have Not-Self. Also I believe the order for Holy Light is "holybolt". |
| 02-12-2004, 11:42 AM | #3 |
it has all that ... but it still dont fire... pretty annoying... can it be because the unit has another while the trigger tryes to order the ordered unit to make a new order =)? plz help me... im stuck for good ;( |
| 02-12-2004, 03:38 PM | #4 |
If thats the case, why not create a dummy unit(flying sheep or watever), and make it do the holy light for the creature, Just make sure your have the cast range max, and duration 0 Move(instantly) 'dummy' to position of (attacked unit) order 'dummy' holy bolt attacked unit ******************************************************** if you want a cooldown for each certain unit, i suppose you can add a few lines of actions.Create one variable 'cooldownGroup' Move(instantly) 'dummy' to position of (attacked unit) if attacked unit in cooldownGroup equals to false then order 'dummy' holy bolt attacked unit add attacked unit to cooldownGroup wait 12 sec (---> for the cooldown) remove attacked unit from cooldownGroup else do nothing ********************************************************** I suppose this trigger will work just fine, unless i missed out something. Good luck. |
