ID:1554725
 
Code:
/*
These are simple defaults for your project.
*/


world
fps = 25 // 25 frames per second
icon_size = 32 // 32x32 icon size by default

view = 6 // show up to 6 tiles outward from center (13x13 view)


// Make objects move 8 pixels per tick when walking

mob
step_size = 6

obj
step_size = 1


mob
Player
icon = 'playernude.dmi'
density = 1
Login()
src.loc=locate(368,369,1)
verb
say(txt as text)
world << "[usr] says [text]"


Stat()
if(src == usr) statpanel("Inventory",src.contents)

mob/Player
var
Thirst = 0
var/max_value = 100
var/min_value = 0
var/current_value = 0
current_value = min(max(current_value,min_value),max_value)
Health = 100
MaxHealth = 100

proc
Thirst_Check()
while(src && src.Thirst<100)
sleep(300)
src.Thirst+=10
src<<"Your Thirsty."
src.Health-=round(src.MaxHealth/10,1)
src<<"\red Health: [src.Health]%"
src.DeathCheck()
src.DeathCheck2()

DeathCheck()
if(src.Thirst>=100)
src<<"\red You've died!"
src.loc=locate(369,368,1)
src.Health=src.MaxHealth
src.Thirst-=100
usr.contents = null
sleep(10)
Thirst_Check()
DeathCheck2()
if(src.Health<=0)
src<<" red/ You have died!"
src.loc=locate(369,368,1)
src.Health=src.MaxHealth
src.Thirst-=100
usr.contents = null
sleep(10)
Thirst_Check()

Login()
..()
Thirst_Check()






I died. Literally. My main core file was wiped during an experiment to see if I could publish my game. I don't quite understand how it happened but it was a LOT of work on there. My obj code file, my thirst ticker code file, my turf code file, and my enemy mob code files are still ok, although none of them work without what I put in the main code file. First of all, how can I get my file back? Second, I have to define my Player somehow, can't remember what I had to do. Thirdly, I have already put all the normal stuff like player icon and vars and login commands, but when i run the game it doesn't show the players skin. Please ask me fo more info if this isn't enough. P.S. the main code file was abotu 3 paragraphs long, so... shouldn't be hard to help me remember. :( PLEASE HELP ME!

Never mind guys i figured out how to fix it. Lol the code f ile got put into this random collection of random other files. Weird. I copy pasted it and it works fine now, thanks guys.