In response to Metroid
Okay, I'll just make them a fast icon. =/
[Edit]: Hmm... still not working, thanks for helping me so far.
In response to Hell Ramen
Open your Map files

Look for the Power thingys, and see if they have icons.
In response to Metroid
Yep... =/
A very dark black.
In response to Hell Ramen
Rounding doesn't seem to work either...
round(Str,1)
doesn't round it...
BTW, I was able to test it by putting the stats on the map.(I don't want to do that. =/)
In response to Hell Ramen
try var/obj/statthing/statthing = new

this is the line above the stat panel metroid showed.
In response to DeathAwaitsU
They appear now, but they're all named "stat", and clicking on them does nothing. X_X
Thanks for helping.
In response to Hell Ramen
First, you need to name them, you forgot that, I think. Second, make sure you dont get runtimes when u click.
In response to Metroid
Name what, the objects?
In response to Hell Ramen
Yes.
In response to Metroid
=/
Still named "stat"...
Thanks for helping, so far.
In response to Hell Ramen
Would this be easier making a simple menu system...?
In response to Hell Ramen
A sad bump. =/
In response to Hell Ramen
I couldn't be bothered to read what Metroid said, i only read the first post so dont flame me if i do something wrong.

mob/var/hp = 1

obj
hpstat // this is the stat panel health meter
name = ""
Click()
usr.hp += 1
proc/Update()
src.name = "[usr.hp]"//this updates the thing and is constantly called from the stat panel

mob
var
obj/hpstat/hp_stat // variable for the health obj
New()
..()
src.hp_stat = new // create a new stat thing
Stat()
statpanel("Character")
stat("Health = ",src.hp_stat)
stat(src.hp_stat.Update())//constantly calls the obj's update proc.


I dont think you want an icon next to it so dont bother adding one to this. This is all plug and play, so just edit the update proc to however you want. You wouldn't really want the player to be able to gain inf stats by clicking now would you :) ?
In response to DeathAwaitsU
Yay ^___^
That's just what I wanted Death!
I'm so Happy!
Thank you!
[Edit]: Noo, right when I thought I was finished. ;_;
Your code worked, it just doesn't work with mine...
It thinks "Update" is undefined, I checked your code, and mine, and they look nearly the same....
obj
stats
Power
name = ""
Click()
if(usr.BP <= 0)
usr << "You don't have enough Battle Points!"
else
usr.Power()
proc/Update()
src.name = "Power: [usr.Pwr]"

The stat(noticable Update process from you)
        stat("",src.Power)
stat(src.Power.Update())

The section from the Stat Panel...
mob
var
obj/stats/Power/ = new
obj/stats/Intelligence = new
obj/stats/Vitality = new
obj/stats/Dexterity = new
New()
..()
src.Power = new
src.Intelligence = new
src.Vitality = new
src.Dexterity = new

The new process.
What am I doing wrong...?
X_X
Thank you, I would be finished if I was half-way decent at coding...
In response to Hell Ramen
The only errors i can see without testing would be, mob/var/obj/stats/Power/ = new is wrong. You dont need to put an = there and you've defined what the variable holds just not the actual variable.

to do it right, try this:

mob
var
obj/stats/Power/P //P will now be the variable for whenever you're refering to power in the stat panel
obj/stats/Intelligence/I
obj/stats/Vitality/V
obj/stats/Dexterity/D
New()
..()
src.P = new //we add the new there
src.I = new
src.V = new
src.D = new


the TOTAL(except your update proc) code will look something close to this:

obj
stats
Power
name = ""
Click()
if(usr.BP <= 0)
usr << "You don't have enough Battle Points!"
else
usr.Power()
proc/Update()
src.name = "[usr.Pwr]"

mob
var
obj/stats/Power/P //P will now be the variable for whenever you're refering to power in the stat panel
obj/stats/Intelligence/I //make sure all these obj's are defined by the way
obj/stats/Vitality/V
obj/stats/Dexterity/D
New()
..()
src.P = new //we add the new there
src.I = new
src.V = new
src.D = new

Stat()
stat("Power = ",src.P)
stat(src.P.Update())
stat("Intelligence = ",src.I)
stat(src.I.Update())
stat("Vitality = ",src.V)
stat(src.V.Update())
stat("Dexterity = ",src.D)
stat(src.D.Update())


Sorry if there are any errors, i'm doing this without much thought.

*EDIT*

Just read your other post and noticed you figured out the mistake, oh well lol.
Page: 1 2