client
script = "<STYLE>BODY {background: gray; color: green}</STYLE>"
base_num_characters_allowed = 3
#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
view = 5
name = "Gold Digger"
turf = /turf/grass
mob/creating_character
Login()
usr << sound('log.mid',1)
..()
world << "[usr] has just entered '[world.]'!"
src.CreateCharacter()
proc/CreateCharacter()
var/mob/new_mob
var/char_name
while(!char_name)
char_name = input("What Is The Name Of Your Gold Digger.","name") as null|text
var/char = input(src,"Pick race!") in list("White Male","White Female","Black Male","Black Female","None")
switch(Char)
if("White Male")
new_mob = new /mob/player/wm
if("White Femal")
new_mob = new /mob/player/wf
if("Black Male")
new_mob = new /mob/player/bm
if("Black Female")
new_mob = new /mob/player/bf
if("None")
src.Logout()
new_mob.name = char_name
new_mob.loc = locate(1,1,1)
src.client.mob = new_mob
..()
del(src)
mob/player
wm
icon = 'wm.dmi'
icon_state = "wmale<dm>
<b>when i compile i get an erri saying it is undefined var was working fine until I added someting and now wont fix please help:</b>
ID:142033
Sep 5 2008, 1:13 pm (Edited on Sep 5 2008, 1:21 pm)
|
|
In response to Andre-g1
|
|
i know sorry i added some stupid guild system and it made it act all crazy i know there inconsitant i am aware of that can fix that part but the error once i fix it the error is at base_num_characters_allowed = 3
|
In response to Opop1
|
|
I'm guessing you probably deleted the var definition, add this and it should be fine.
client/var/base_num_characters_allowed
|
In response to Andre-g1
|
|
Andre-g1 wrote:
I'm guessing you probably deleted the var definition, add this and it should be fine.
> client/var/base_num_characters_allowed
Ohh man i Love you your the best works fine thanks bro |
In response to Opop1
|
|
ya man i must of done that i paniced so wasnt sure what i did
|
Also, which line has the error and what did you add ?