097 Newbie Question
Posted: Wed May 30, 2007 11:22 pm
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.
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.