Click()
winshow(usr,"Passive")
usr << output("\icon[src]", "Passive.Icon")
winset(usr,"Description","text=\"[Info]\"")
winset(usr,"Name","text=\"[Name]\"")
winset(usr,"Mastery","text=\"[Mastery]/[MaxMastery]\"")
Passive
icon_state="Passive"
Name="Passive"
Info="Passive Description"
Mastery=0
MaxMastery=20
What I'm trying to do is change the 'Mastery' variable for the passive into one of the players variable, for example, running speed. This way it'll show up as
"[usr. running speed]/20"
I know I could this did by having an individual Click() procedure for every passive, but I'm wondering if there's a way to do it without having to do so. I'm trying to bring this project in the right direction and saving as much resources as possible is my main goal.
So anyways, click on the skill tree and a window comes up. All the passive objs are loaded in the window's grid on one side, then on the other side it'd show a specific passive's detailed information after clicking on it.
It wasn't exactly efficient, but we had a bunch of tmp variables set up for certain passives (like running speed) that would update every time you opened the skill tree, and others that were a bit more unique we just used the Find() proc to see if we could locate a specific passive in the user's passive list because it would have been a binary variable anyways. I'm not exactly sure if this is what you're going for or not but I hope I at least gave you an idea or helped shed some light.