// New Environment file for filename.bat
// All manual changes should be made outside the BEGIN_ and END_ blocks.
// New source code should be placed in notepad files: just make a new notepad and add your coding and if it includes a picture don't forget to add it
#define FILE_DIR .
#define FILE_DIR "backup"
(add the files here that you need to include)
Next you must make a main character with the picture and make sure it works. Ill let you thigger out how to make a character but heres the hard bit. and also add the grass and dont forget to save them or redo the name thats in the parts below so it actually finds the right file.
//This is a test world created by (name) on (date).
icon = 'character.jpg' //make it so all mobs will be created with the person icon
wealth = 0 //define a new variable called wealth, with a value of G
..() //call the parent
world << "[src.name] logs in!"
world << "[src.name] logs out..."
icon_state = gender //when a player logs in, get them the right icon state for
..() //the gender of their key. Then call the parent!
Say(msg as text) //what the usr says is passed into "msg" as text
world << "[usr]: [msg]" //the world sees chatroom-like output
grass //define a "grass" prototype, which is a kind of turf...
icon = 'grass.jpg' //that has an icon named 'grass.dmi'. In single quotes!
This is the beginning of the game, see if you can learn to do stuff. if not i will be posting extras to it and will be answering your questions.
thanks, ryan (dandy kid)