PlayerDataVariables-------StatsFlags<flags>Avatar=NoUnit<Unit>ShieldModels=NoActor<Actor[1]>
Class = 0 <Integer[3]>
Race = 0 <Integer[1]>
Level = 1 <Integer>
Level Cap = 1000 <Integer>
Placement Points = 0 <Integer>
Stat Points = 0 <Integer[4][6]>
Armor Proficiency = 4 <Integer>
Dual Wield Skill = 0 <Integer>
Shields Skill = 0 <Integer>
Weapon Skills = 0 <Integer[12]>
------- Gear
Gear - Slot Stats = 0 <Integer[18][6]>
------- HP
HP - Max = 0 <Integer>
HP - Current = 0 <Integer>
HP - Fraction = 0 <Integer>
HP - Regen = 0.0 <Real>
HP - Bonus % = 0.0 <Real>
HP - Bonus = 0 <Integer>
------- MP
MP - Max = 0 <Integer>
MP - Current = 0 <Integer>
MP - Fraction = 0 <Integer>
MP - Regen = 0.0 <Real>
MP - Bonus % = 0 <Integer>
MP - Bonus = 0 <Integer>
------- Energy
Energy - Max = 100 <Integer>
Energy - Current = 0 <Integer>
------- Focus
Focus - Max = 10 <Integer>
Focus - Current = 0 <Integer>
------- combat stats
Combat - Haste = 0 <Integer>
Combat - Speed = 0 <Integer>
Combat - Hit = 0.0 <Real[1]>
Combat - Crit = 0.0 <Real[1]>
------- Attack Power
Combat - Attack Power = 0 <Integer>
Combat - Attack Power Bonus % = 0 <Integer>
Combat - Attack Power Bonus = 0 <Integer>
------- Elemental Power
Combat - Ele Power = 0 <Integer>
Combat - Ele Power Bonus % = 0 <Integer>
Combat - Ele Power Bonus = 0 <Integer>
------- Light Power
Combat - Light Power = 0 <Integer>
Combat - Light Power Bonus % = 0 <Integer>
Combat - Light Power Bonus = 0 <Integer>
------- Weapon
Combat - Weapon Min Dmg = 0 <Integer[2]>
Combat - Weapon Max Dmg = 0 <Integer[2]>
------- Armor
Combat - Armor Reduction = 0.0 <Real>
Combat - Vital Defense = 0 <Integer>
Combat - Armor = 0 <Integer>
Combat - Armor Bonus % = 0 <Integer>
And I was wondering if I could set it so instead of having 6 variables for HP - if i could use one array and have the index be a preset when I go to set those values. i.e. Player Data[1].HP[Max] but have that be the default. Right now everything I try doesn't work and I have to manually set the preset which is just not worth it because there's such a gigantic list of presets to navigate through. I want the default INDEX for the variable to be a preset.
Indexes ONLY and solely accept integers, and presets aren't integers for GUI.
In your case there would also be the problem that values of the same category are of different kind (HP Max is integer, HP regen is real), but as I said I think don't GUI has such a feature to begin with.
PS: If that is a satifactory solution you can create a bunch of global variables for it. E.g. you call a variable HP (integer variable of value 1) and use this as your index.
But that wouldn't help reducing the gigantic list of presets, as it'd just turn them into a gigantic list of variables.
Alrighty, I guess I just have to deal with my record having a relatively large list. Thanks, and yeah I hadn't even thought of the fact that I had reals mixed in ><
I've basically been rebuilding large portions of my maps "engine" to be more fluid to improve my work flow. Also I didn't even know about records(structs) once I found out about those I had to change all my player variables from 10 index arrays each to this 10 index array record which is like WAY easier to use.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
So I have this record
And I was wondering if I could set it so instead of having 6 variables for HP - if i could use one array and have the index be a preset when I go to set those values. i.e. Player Data[1].HP[Max] but have that be the default. Right now everything I try doesn't work and I have to manually set the preset which is just not worth it because there's such a gigantic list of presets to navigate through. I want the default INDEX for the variable to be a preset.
Can this be done?
No, this shouldn't be possible.
Indexes ONLY and solely accept integers, and presets aren't integers for GUI.
In your case there would also be the problem that values of the same category are of different kind (HP Max is integer, HP regen is real), but as I said I think don't GUI has such a feature to begin with.
PS: If that is a satifactory solution you can create a bunch of global variables for it. E.g. you call a variable HP (integer variable of value 1) and use this as your index.
But that wouldn't help reducing the gigantic list of presets, as it'd just turn them into a gigantic list of variables.
Alrighty, I guess I just have to deal with my record having a relatively large list. Thanks, and yeah I hadn't even thought of the fact that I had reals mixed in ><
I've basically been rebuilding large portions of my maps "engine" to be more fluid to improve my work flow. Also I didn't even know about records(structs) once I found out about those I had to change all my player variables from 10 index arrays each to this 10 index array record which is like WAY easier to use.