HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Setting Variable to Agility

03-30-2003, 07:37 AM#1
ShadowElf2002
I need to set a variable to the current agility of a unit, so that I can restore their agility to this later. How would I go about doing this? I didn't know where else to put this thread, and it might require JASS, so here it is!
04-02-2003, 03:08 PM#2
DaKaN
if you are using UMSE or some other enhanced editor that has the SetHeroAgil() function built into the GUI triggers, you dont need jass. But you would need to keep track of the agility for the entire course of the map.

Set a variable = to the heroes starting agility, make a real variable that keeps track of thier agility per level. Make a trigger to keep track of any tomes used that increase agility. Then you can use a integer in the function SetHeroAgil() to restore the units original agility.

In my sig, if you download the Hero Save Function map, i keep track of agility strn and intel the way i explained it here, you can look at that as an example, you need UMSE to open the map
04-02-2003, 09:39 PM#3
ShadowElf2002
Is there anyway to set an integer to the CURRENT Strength, that way I dont have to make one for every hero I can just set integer to current strength of the target?
04-02-2003, 11:06 PM#4
DaKaN
not in normal WE, i belive a function like that is being added in TFT though