| 04-03-2004, 01:21 PM | #1 |
I got the answer, nevermind. I need to dynamically stop units from regaining life (meaning i cant set it in the beginning). I looked around, and there are no GUI triggers to stop a unit from regaining life. Ok, there is one (in WEU only). But it can only decrease or increase it by a certain value, not set it to 0 like im trying to do. Is there a specific trigger I missed? Or is there another way? Any help appreciated. |
| 04-03-2004, 05:49 PM | #2 |
Three ideas, all messy. 1. make 2 unit types for each unit: 1 with regeneration, 1 without. make modified chaos abilities to switch between them. 2. If you only need to do it once, and you're doing it for all units or all units of a specific type, or all units belonging to a player, or any combination of those: Create upgrades based on Troll Regeneration that have a negative hit point regen to cancel each unit's positive one. Then when you need to turn regeneration off, research the upgrades for the unit types you want for the players you want. 3. Have invisible units with a modified Life Regeneration Aura (neutral) with very low AOE, and have them stuck with triggers to units you want to have regeneration. This will probably involve a bunch of Unit Arrays and index tags in the units' custom values. Anyway good luck man. Sorry I couldn't give you a silver bullet... |
| 04-04-2004, 03:28 AM | #3 |
I hate to just say that the code posted isnt needed after you put work into it :\... What i did, since i had a hero unit, was set the strength->regeration speed gameplay constant to 0, then in the overworld i can set the regeneration dynamically, then unset it in a battle. Thanks anyway ... |
