You can make custom AI's for SWGB (and CC) that allow triggers to detect taunts. This is called the
)
(defrule
(taunt-detected
=>
(acknowledge-taunt
(cc-add-resource
)
In this example (used in
"
"
"(cc-add-resource
"
"
In Trigger: ' When player 1 has HealthPacks, he will have at least 1 food and 1 misc counter 1. And when he wants to heal, and uses taunt 1, player 6 will receive 1 nova. And so, we can make a trigger that detects when the player wants to heal, and is entitled to heal: Trigger: ' Okay, and now for the trigger that actually heals your hero: Trigger: ' Well, this is basically how healing with an AI works. This is how it was done in
To be able to heal, you need HealthPacks. This is what a typical trigger for picking up a HealthPack looks like:
Condition0: Bring object (hero) to area (area around PowerPack)
Effect0: Remove object (PowerPack)
Effect1: Tribute: 100 nova from player 6 to GAIA (in case the player used the taunt before picking up the HealthPack... you don't want him to automatically heal as soon as he picks up the HealthPack)
Effect2: Tribute: 1 food from GAIA to player 1 (This food is mostly for the player to see how many HealthPacks he has)
Effect3: Tribute: 1 misc counter 1 from GAIA to player 1 (This is a hidden counter, to prevent the 'FORCEFOOD' cheat from having an influence on the health points)
Effect4: Send Chat to player 1 : <
Condition0: Accumulate Attribute: Player 1 accumulates 1 food stockpile
Condition1: Accumulate Attribute: Player 1 accumulates 1 misc counter 1
Condition2: Accumulate Attribute: Player 6 accumulates 1 nova stockpile
Effect0: Tribute: 1 food from player 1 to GAIA (substract 1 HealthPack from the counter)
Effect1: Tribute: 1 misc counter 1 from player 1 to GAIA
Effect2: Tribute: 100 nova from player 6 to GAIA (to make sure the player doesn't get healed twice in a row)
Effect3: Activate trigger: '
Effect0: Damage object (hero) : 400 (max hitpoints; to reset the current health to '0')
Effect1: Damage object (hero) : -400 (minus max hitpoints; to set the current hitpoints to full health. You can copy/paste in a minus sign. Don't touch this effect again, or you risk reseting the damage to '0')
Effect2: Send Chat to Player 1 : <
Many thanks to
Have fun implementing it in your scenario,
JamesMartigo - Proud Member of SCN PUNK
Death Star Escape | Death star Assault | Pandemonium
B-Wing / Landed Millennium Falcon Mod
Falcon's First Flight
[This message has been edited by JamesMartigo (edited 06-18-2002 @ 09:43 PM).]