| 12-13-2002, 03:34 AM | #1 |
Guest | Egads I have another question! Thanks in advance for the help. You guys pwn. I want to temporarily raise the stats of a hero as part of a trigger. I have the UMSWE so I have the trigger action to set stats but how do I add to stat? For example, if the hero has 25 agility, I'd like to give +10 agility for a minute. First, I don't see a way to record what his agility presently is so I have no idea how to add to that number, I can only set it to a predetermined numbered. Second, the Hero - Set Agility action has a permenant or temporary flag. Any idea how that works? If I set it to temporary, how long does it last? I don't see where I can set that. Thanks. |
| 12-13-2002, 08:05 AM | #2 |
Currently there is no way to get the current unit AGI, STR and INT. The best we can do is do a "workaround" on it. I'll use the blade master as an example here, but you can use any hero. Blademaster initial AGI is 23 and he gets 1.75 extra AGI per level. (You can grab this info from Marn's or from Units\Unitbalance.slk). All we have to do for him is: CurrentBladeAGI = 23 + ( (GetHeroLevel - 1) * 1.75 ) Keep in mind that if your map is using "Tomes" , you should create a variable and store the "+ AGI extra bonus" of that tome to that variable each time the blademaster reads a tome. Then; CurrentBladeAGI = tomeAGIvariable + 23 + ( (GetHeroLevel - 1) * 1.75 ) |
| 12-13-2002, 09:51 AM | #3 |
Guest | Thanks...this must be the standard work around because somebody from another board suggested it as well and it was something I considered on my own. It would work, but it makes my teeth ache just thinking about it. I'll save that for last. Thanks for the reply. |
