So I'm trying to get any value to return from GetAttribute(), but it seems to not be working. I'm basically just trying to test it out, so I made a textcmd with this.
use uo;
use attributes;
//c:\pol097\scripts\textcmd\player\oosh.src
program textcmd_oosh( character )
PrintTextAbove(character, "TEST");
PrintTextAbove(character, GetAttribute(character, "stealing"));
PrintTextAbove(character, GetAttribute(character, "skill 33"));
PrintTextAbove(character, GetAttribute(character, "skill 27"));
PrintTextAbove(character, GetAttribute(character, "Tactics"));
PrintTextAbove(character, GetAttribute(character, "tactics"));
endprogram
I was basically trying anything I could find that would identify the skill, but the only thing that will pop up is TEST over my character. I'm not sure what I'm doing wrong...I read that there is supposed to be an attributes.cfg or UOskills.cfg in the updates .txt, but I do not have either. All I have in my config folder is skills.cfg. I appreciate any help.
097 Newbie Question
Not quite sure why it's not printing anything but the literal string "TEST" but I will tell you that what you need in the GetAttribute for an attribute parameter is the string value (name) of the attribute i.e. "alchemy", "anatomy", etc. not a skill number.
FYI I didn't get anything but TEST either so it isn't just you. It should be returning the effective skill as an integer.
Very strange...
FYI I didn't get anything but TEST either so it isn't just you. It should be returning the effective skill as an integer.
Very strange...
-
mr bubbles
- Grandmaster Poster
- Posts: 120
- Joined: Thu Jan 18, 2007 2:34 am