Move()
if(move_lock == 0)
..()
else return 0
usr.movecount -= 1
if(usr.movecount == 8)
usr.hunger += rand(1,2)
if(usr.movecount == 4)
usr.thirst += rand(1,2)
if(usr.movecount == 0)
usr.energy -= rand(1,3)
usr.movecount = 22
usr.warmth -= rand(1,5)
usr.speed = (100 - usr.hunger - usr.thirst) / 10
if(usr.hunger >= 50)
usr.hunger = 50
if(usr.thirst >= 50)
usr.thirst = 50
if(usr.energy <= 0)
usr.energy = 0
if(usr.warmth <= 0)
usr.warmth = 0
if(usr.warmth <= 40) //starts here
var/W = rand(1,16)
if(W == 1)
return 0
usr << "You're cold, and stop to warm up for a second. You should either sit by the lodge fire or buy a Hot 'N Spicy bar to warm up."
else
..()
else if(usr.warmth <=30)
var/A = rand(1,12)
if(A == 1)
return 0
usr << "You're cold, and stop to warm up for a second. You should either sit by the lodge fire or buy a Hot 'N Spicy bar to warm up."
else
..()
else if(usr.warmth <= 20)
var/R = rand(1,8)
if(R == 1)
return 0
usr << "You're cold, and stop to warm up for a second. You should either sit by the lodge fire or buy a Hot 'N Spicy bar to warm up."
else
..()
else if(usr.warmth <= 10)
var/T = rand(1,4)
if(T == 1)
return 0
usr << "You're cold, and stop to warm up for a second. You should either sit by the lodge fire or buy a Hot 'N Spicy bar to warm up."
else
..()
else if(usr.energy <= 40)
sleep(1)
else if(usr.energy <= 30)
sleep(2)
else if(usr.energy <= 20)
sleep(3)
else if(usr.energy <= 10)
sleep(4)
else if(usr.energy == 0)
sleep(5)
*waits*
the problem is that wot ur saying is if ur warmth is less than 40 do this, else if ur warmth is 30 do this etc etc. Then at the end ur usage of else would only work IF ur warmth is over 50.
By using just if it means after all the else commands, it check through energy.
Post again if you have more problems or didn't understand what i said but the code worked.