What do you mean by this? Sorry but I'm not too fluent with scriptese.
Another thing I wanted to do with my last remaining bar was to be able to see whether I was diseased or not. I came across the OBSE function GetSpellType and tried it in the ini file but it didn't work. Any idea how I might go about that one?
Or better yet, how can I get another script running in order to add 7 more HUD bars. I ran into a maximum scipt size error when trying to add an 8th bar to Keurtee's script and tried copying everything to a new one, renaming it and all the elements, but it didn't register in the game. That would really be my ideal solution. That way I could have a Player.GetAV and Player.GetBaseAV for each individual attribute onscreen, rather than trying to lump them all together. The only reason why I'm trying to add them all up is so I can get them all represented in a single HUD element. If I could have individual entries I wouldn't have to bother, but I just don't have enough HUD elements in order to do that.
What I meant by "temporary variables" is, when the compiler would still be choking on the line even with brackets, then you'd for example have to use a seperate variable for every attribute, like:
short TotalCurrentAttributesshort actStrengthshort actIntelligenceshort actWillpower...set actStrength to Player.GetAV Strengthset actIntelligence to Player.GetAV Intelligenceset actWillpower to Player.GetAV Willpowerset TotalCurrentAttributes to (actStrenght + actIntelligence + actWillpower)...
But as your compiler isn't complaining to you when you save your script, you should have a correct syntax already.
Now it's a rather functional issue, in that the script doesn't do what you want, than any syntax errors somewhere.
Note, I don't know for sure about the return types of those GetAV functions, but if the return type and the type of the variable you store into don't match, things "might" go haywire in regards to the actual stored value.
Also there's a difference between "
player" and "
Player" in Oblivion scripting. But again I can't remember the details well enough anymore. It's all somewhere in the wiki though, I'm quite sure.
I'd have to take a look into Kuertee's example scripts to see how it's working, before I could even try and figure out how best to do what you're trying to.