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, 4:36 pm
|
|
Wow! I had no idea you could use "to" like that...I learned something that will be really helpful. Thanks, Spuzzum.
|
Nope that code is:
proc/Constellation() Thats the code I saw.Weird. -Kappa the Imp |
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: