In response to RanEsu
actually when i click rest nothing happens >_>
seems that your proc works better >_>


client/Move()
if(mob.frozen) return
..()

mob/var/frozen = 0


mob
var
resting = 0
verb
rest()
resting = 1
usr<<"<font color=White>You sit down to rest...</font>"
var/mob/M //that should fix it
if(istype(M,/mob/Male))
icon = 'rest.dmi'
icon_state = "rest"
usr.frozen=0
sleep(30)
usr<<"<font color=White>You finished resting</font>"
sleep(10)
usr<<"<font color=White>You stand up again</font>"
usr.HP=maxHP
resting = 0
icon = 'Base.dmi'
usr.frozen=1
if(istype(M,/mob/Female))
icon = 'rest.dmi'
icon_state = "restf"
usr.frozen=0
sleep(30)
usr<<"<font color=White>You finished resting</font>"
sleep(10)
usr<<"<font color=White>You stand up again</font>"
usr.HP=maxHP
resting = 0
icon = 'BaseF.dmi'
usr.frozen=1
if(istype(M,/mob/Neuter))
icon = 'rest.dmi'
icon_state = "restn"
usr.frozen=0
sleep(30)
usr<<"<font color=White>You finished resting</font>"
sleep(10)
usr<<"<font color=White>You stand up again</font>"
usr.HP=maxHP
resting = 0
icon = 'BaseN.dmi'
usr.frozen=1
In response to RanEsu
Then the contents of it went right over your head.
In response to Popisfizzy
Popisfizzy wrote:
Then the contents of it went right over your head.

_> thats working fine >_> lol im trying to find out why this wont work

actually when i click rest nothing happens >_>
seems that your proc works better >_>


<dm>
client/Move()
if(mob.frozen) return
..()

mob/var/frozen = 0


mob
var
resting = 0
verb
rest()
resting = 1
usr<<"<font color=White>You sit down to rest...</font>"
var/mob/M //that should fix it
if(istype(M,/mob/Male))
icon = 'rest.dmi'
icon_state = "rest"
usr.frozen=0
sleep(30)
usr<<"<font color=White>You finished resting</font>"
sleep(10)
usr<<"<font color=White>You stand up again</font>"
usr.HP=maxHP
resting = 0
icon = 'Base.dmi'
usr.frozen=1
if(istype(M,/mob/Female))
icon = 'rest.dmi'
icon_state = "restf"
usr.frozen=0
sleep(30)
usr<<"<font color=White>You finished resting</font>"
sleep(10)
usr<<"<font color=White>You stand up again</font>"
usr.HP=maxHP
resting = 0
icon = 'BaseF.dmi'
usr.frozen=1
if(istype(M,/mob/Neuter))
icon = 'rest.dmi'
icon_state = "restn"
usr.frozen=0
sleep(30)
usr<<"<font color=White>You finished resting</font>"
sleep(10)
usr<<"<font color=White>You stand up again</font>"
usr.HP=maxHP
resting = 0
icon = 'BaseN.dmi'
usr.frozen=1

</dm>
In response to RanEsu
Because you just glanced at the entry for istype() and copied the first thing you saw rather than reading and understanding it.
In response to Garthor
Garthor wrote:
Because you just glanced at the entry for istype() and copied the first thing you saw rather than reading and understanding it.


actually no i diddnt, i looked it up in the reference, it diddnt work the way u put it X)

lol the code dont work for resting anymore...
In response to RanEsu
That's because you're not using istype() properly. If you can't understand the reference entry, then you need to go back to the basic tutorials.
In response to Garthor
Garthor, i think your misunderstanding me.. i hope
is this right then??
var/mob/M
M = usr
if(istype(M,/mob/Male))
usr<<"w/e here.."
if(istype(M,/mob/Female))
usr<<""
if(istype(M,/mob/Neuter))
usr<<""
In response to RanEsu
Why are you using the M variable instead of usr?
In response to Garthor
Apparently since he thinks it will somehow make his code magically work. Or maybe he's doing that to show us he hasn't read the guide?
In response to Kaioken
i agree with you, kaioken
In response to Garthor
Because he took code someone offered here.

Which didn't work, so he took code someone offered from
here.

At this rate, it should take him about 137.5 years to code his game. Or if worst case he invests 1 month into learning all he can from tutorials, guides, and references, he can code the same game this year.
Page: 1 2