ID:165801
![]() Oct 29 2006, 9:04 pm
|
|
I want to represent ranks in a skill through icons on a statpanel. As the character's skill increases the icon on the statpanel will change. Can anyone help me out?
|
![]() Oct 30 2006, 3:04 am
|
|
make an object, and show it in the stat panel, and change its icon with their rank
|
Yes... that's what I want to do. I'm pretty sure I can handle the other stuff but how would I make the icon correspond with a mob/var?
|
ExoDimensional wrote:
Yes... that's what I want to do. I'm pretty sure I can handle the other stuff but how would I make the icon correspond with a mob/var? Really good tutorial: http://www.byondscape.com/ascape.dmb/Shadowdarke.2003-0322/ A clickable icon in a statpanel: http://www.byondscape.com/ascape.dmb/Zilal.2002-0110/ |
var/obj/LEADER = new // the icon Don't copy and paste it won't work and it should work but i rushed it not at home.. |
I think I'm getting close. So this is what I did:
var I get an "expected a constant expression" errors on the two if() lines. Hmm? |
A.T.H.K wrote:
Don't copy and paste it won't work and it should work but i rushed it not at home.. I can tell you rushed. You kinda contradicted yourself there, heh. I think you meant that it won't work in it's present state due to indentation, icons, among other things, but if he created something similar of his own and had those things, it'd work. -Exophus |
var Try that. Also with a switch inplace switch(src.blah) you don't need if(src.blah == 1) you only need if("1") and etc. And for ==1 thats a no no use if(src.blah) for ==1 and if(!src.blah) for ==0. |
Hey it works now. Thanks alot.
Edit: Wait, one more problem. The word "one" is written on the right of the icon, how do I eliminate this? |