ID:266421
Mar 6 2002, 7:48 pm
|
|
Can someone please help me get started on a code that puts an icon in the stat menu. Like say next to your gold stat you wanted an icon. How would you do that? Thank you
|
obj/gold Something like that? |
In response to Nadrew
|
|
Yes, but now that I have it showing the icon it won't let me set it so it shows the number anymore.
Code...... Stat() |
In response to Foomer
|
|
Can't find it, I am signed up with byondscape ;P
|
In response to Little Sally
|
|
Click the "2002 Archive" link at the top of the page, then look for Z-Tips: Buttons in Statpanels.
(Or just click the link!) |
In response to Little Sally
|
|
Little Sally wrote:
Yes, but now that I have it showing the icon it won't let me set it so it shows the number anymore. If you have a goldicon set as an obj or atom of some kind, you can set goldicon.suffix="[gold] piece\s". Do this before the stat() call that shows goldicon. This should do exactly what you want. Lummox JR |
In response to Lummox JR
|
|
Like this? Im getting an error.
Stat() Mob.dm:104:error:goldicon.suffix:undefined var |
In response to Little Sally
|
|
Little Sally wrote:
Mob.dm:104:error:goldicon.suffix:undefined var If goldicon isn't an atom like an obj, suffix isn't a valid var. If it's just an icon, you can't set a suffix for it. Lummox JR |
I think Zilal wrote a BYONDscape article, and I think it's non-subscription, on this, if you'd care to look it up.