ID:2195611
 
(See the best response by Mask of Illusion.)
Hello Byond community!

I am not a coder. I have always been an iconer. I have dug up a old alpha stage game i was developing years ago and when i try to add new icons to the map i can't because i get this compile error:

New stuff.dm:1:error: base_num_character_allowed: undefined var

Here is the code, hope i added this correctly:

Code:
client/base_num_characters_allowed = 1    // Replace this with however many chars you want people to be able to play as. If it's 1, then the game auto-logs the player in and they cannot create anymore characters.

world
mob = /mob/create_character

client
command_text = "Shout " // macro mode

mob/create_character
var/mob/character
Login()

var/charactername = input("Welcome to Yu Yu Hakusho Essence of Chaos,Whats your name? and please don't use names of the series.","Name?") // Ask the character what name they wanna use

switch(input("Oh Right so from what kind of race are you","Race ?") in list("Human","Demon"))

if ("Demon")
switch(input("So what kind of Demon are you","Type ?") in list("Wind Manipulator","Fire Manipulator","Ice Manipulator","Plant Manipulator","Quest Class"))
if("Wind Manipulator")
character = new /mob/characters/Wind()
if("Ice Manipulator")
character = new /mob/characters/Ice()
if("Fire Manipulator")
character = new /mob/characters/Fire()
if("Plant Manipulator")
character = new /mob/characters/Plant()
if("Wind Manipulator")
character = new /mob/characters/Wind()
if("Quest Class")
character = new /mob/characters/Quest()
if ("Human")
switch(input("So what kind of Human are you","Type ?") in list("Spirit Psychic","Spirit Detective","Spiritually Aware"))
if("Spirit Psychic")
character = new /mob/characters/Spirit_Psychic()
if("Spirit Detective")
character = new /mob/characters/Spirit_Detective()
if("Spiritually Aware")
character = new /mob/characters/Spiritually_Aware()
character.name = charactername
src.client.mob = character
del(src)
..()





mob/Login()
world<<"<font color = blue>[src] Logs in to the world at [ReportDate(world.realtime)]"
usr<<"Welcome to Yu Yu Hakusho Essence of Chaos"
usr.UpdateInventory()
usr.Gowner=usr.name
usr.loc=locate(49,245,1)

mob/characters/Wind
icon='base.dmi'
Type="Wind Manipulator"
race="Demon"

mob/characters/Fire
icon='base.dmi'
Type="Fire Manipulator"
race="Demon"
mob/characters/Ice
icon='base.dmi'
Type="Ice Manipulator"
race="Demon"
mob/characters/Plant
icon='base.dmi'
Type="Plant Manipulator"
race="Demon"
mob/characters/Spirit_Psychic
icon='base.dmi'
Type="Spirit Psychic"
race="Human"
mob/characters/Spirit_Detective
icon='base.dmi'
Type="Spirit Detective"
race="Human"
mob/characters/Spiritually_Aware
icon='base.dmi'
Type="Spiritually Aware"
race="Human"
mob/characters/Quest
icon='base.dmi'
Type="Quest Class"
race="Demon"


Problem description:

client/base_num_characters_allowed = 1


Should be:

client/var/base_num_characters_allowed = 1


Happy mapping.
In response to Ter13
Thank you so much for the reply. I added the change you suggested but now instead of 1 error i get 100.
Looks like you are missing a library or ten.
In response to Ter13
Probably, i haven't touched the game in a little over 7 years. Since i haven't been on Byond for the same amount of years, is it still as hard to find a coder who's willing to work on your game these days?
Best response
Try here.

Looks like Deadron's character handling library based on the supplied code, including that should hopefully correct the missing library. Unless you included more. (:
In response to Mask of Illusion
Thank you very much for your help!
You're welcome, best of luck! (: