ID:174466
 
Yeah i keep comming up with a ton of errors can anyone help

client
script = "" //This changes the chat room box and text colour
base_num_characters_allowed = 3 //This limits a players save files


#define BASE_MENU_CREATE_CHARACTER "Create New Character"
#define BASE_MENU_DELETE_CHARACTER "Delete Character"
#define BASE_MENU_CANCEL "Cancel"
#define BASE_MENU_QUIT "Quit"

world
mob = /mob/creating_character //This sets the default mob path
view = 6 //This sets the default view of the mob/player
name = "Your games name goes here" //This sets the games name
turf = /turf/grass //This sets the default turf displayed in the map file

mob/creating_character

Login()
..()
world << "[usr] has just entered '[world.name]'!"//We tell the world that someone has just joined the game now
src.CreateCharacter() //This tells the src to lookup "CreateCharacter"

proc/CreateCharacter()
var/mob/new_mob //We are declaring a new variable called "new_mob" which will be used in a little minute
var/char_name // We set a var for the characters name here and make it "null"
while(!char_name) // Here we check to see whether the characters name is null or text, if null we don't allow them in, if text, they are allowed in
char_name = input("Please put your character name in here.","Name") as null|text //The player makes their name here
var/char = input(src,"Pick your character!") in list("Human","Monkey","None") //The player chooses his/her character here
switch(char)
if("Mage")
new_mob = new /mob/player/mage //Looking up the path "/mob/player/human"
if("Monkey")
new_mob = new /mob/player/monkey/monks //Looking up the path "/mob/player/monkey"
if("Male , Female") //This checks whether or not there is a gender chosen, if no gender is chosen the character gets logged out of the game.
src.Logout() //This is what logs out the player from the game is no gender is chosen.
new_mob.name = char_name //Here is where we assign the player chosen name to the mob.
new_mob.loc = locate(1,1,1) //Here me make the new player start off at the location of X:1, Y:1, Z:1.
src.client.mob = new_mob //Here we tell the game that there is a new mob/player in the game
..()
del(src)


/*The characters are defined below*/

mob/player //Here we make a special mob classed as a "player"
mage //Here we make a human species
Male //Lets name the first human "guy"
icon = 'mobs.dmi' //This is the humans icon file that will have the humans icon in.
icon_state = "mmage" //This is what the humans icon is named in the icon file that was stated above. If there is only one icon in the icon file you don't really need to use the "icon_state" fuction.

female mage //Here we make a monkey species
mage //We name this monkey "Monks"
icon = 'mobs.dmi' //Monkeys icon file
icon_state = "fmage" //Monkeys icon


client/Del() //When a player logs out this is called
world << "[src] has logged out" //This message is sent to the world when the player leaves the game
..() //This deletes the players icon when he/she leaves the game

mob/Logout() //This is called because another mob is created (made from the players Key)
del(src) //This deletes the players "Key made mob"
Looks like it is my tutorial, thing is though, what are the errors you are getting?

I cannot help you out unless you show or tell me what errors your get before hand, as I know full well my tutorial is fine.

--Lee
In response to Mellifluous
i think #DEFINE's have to be at the veeeeeery top, before anything else.
In response to The mothball
The mothball wrote:
i think #DEFINE's have to be at the veeeeeery top, before anything else.

It is fine where it currently is, so I see no problem with that.

I don't see how it could be that either though...

--Lee