Ok, I made it so Icons take control of the statpanel,
Like a round sphere stands for Love, and when your love goes up, more gets colored in, so at 100 it is full, problem is, one pet, (+5 love) and it goes full! Here is my code!
obj/Love
icon = 'Love.dmi'
icon_state = "1"
//Icon state 1, already have 10 love out of 100.
mob/proc/All()
if(usr.Love <= 9)
usr.Hart:icon_state = "0"
else
if(usr.Love >= 10 && usr.Love <= 19)
usr.Hart:icon_state = "1"
else
if(usr.Love >= 20 && usr.Love <= 29)
usr.Hart:icon_state = "2"
else
if(usr.Love >= 30 && usr.Love <= 39)
usr.Hart:icon_state = "3"
else
if(usr.Love >= 40 && usr.Love <= 49)
usr.Hart:icon_state = "4"
else
if(usr.Love >= 50 && usr.Love <= 59)
usr.Hart:icon_state = "5"
else
if(usr.Love >= 60 && usr.Love <= 69)
usr.Hart:icon_state = "6"
else
if(usr.Love >= 70 && usr.Love <= 79)
usr.Hart:icon_state = "7"
else
if(usr.Love >= 80 && usr.Love <= 89)
usr.Hart:icon_state = "8"
else
if(usr.Love >= 90 && usr.Love <= 99)
usr.Hart:icon_state = "8"
else
if(usr.Love == 100)
usr.Hart:icon_state = "9"
Ok Please help
ID:149568
Apr 3 2002, 3:36 pm
|
|
In response to Spuzzum
|
|
Wow! I had no idea you could use "to" like that...I learned something that will be really helpful. Thanks, Spuzzum.
|
In response to Nadrew
|
|
Same thing with me!Wait....I saw that in the Blue Book.Im gonna go double check.
-Kappa the Imp |
In response to Kappa the Imp
|
|
I need to buy the Blue Book..
|
In response to Spuzzum
|
|
Ok
|
In response to Kappa the Imp
|
|
Nope that code is:
proc/Constellation() Thats the code I saw.Weird. -Kappa the Imp |
In response to FireEmblem
|
|
It worked fine in my test. That was an example you have to edit it to fit your needs.
|
In response to Nadrew
|
|
You've must off messed it up,because it works fine.
-Kappa the Imp |
In response to Kappa the Imp
|
|
^_^;; end of topic,
=D You are the weakest link, Goodbye! |
In response to Nadrew
|
|
Nadrew wrote:
Wow! I had no idea you could use "to" like that...I learned something that will be really helpful. Thanks, Spuzzum. Yes, that will help me a lot with something *has evil grin on face* *realizes he has an evil grin and makes it go away* *forgets why he had an evil grin* *remembers why he had an evil grin* *evil grin returns* |
I can simplify this: