why isn't this working:
world
mob = /mob/creating_character //This sets the default mob path
name = "Dragon Quest Online" //This sets the games name
turf = /turf/grass //This sets the default turf
worldveiw = 8
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()
mob
Logout()
del(src)
proc/CreateCharacter()
var/char_name = input("Please put your character name in here.","Name") as null|text //The player makes their name here
var/mob/new_mob //We are declaring a new variable called "new_mob" which will be used in alittle minute
var/char = input(src,"Pick your character!") in list("Hero","Soldier","Fighter","Wizard","Pilgrim"
if(char == "Hero")
new_mob = new/mob/player/Hero
if(char == "Soldier")
new_mob = new/mob/player/Soldier
if(char == "Fighter")
new_mob = new/mob/player/Fighter
if(char == "Wizard")
new_mob = new/mob/player/Wizard
if(char == "Pilgrim")
new_mob = new/mob/player/Pilgrim
new_mob.name = char_name //This sets the players name to the one he/she made up before
src.client.mob = new_mob //Here we tell the game that there is a new mob/player in the game
usr.loc = locate(4,3,1) //Here me make the new player start off at the location of X:1, Y:1, Z:1.
/*The characters are defined below*/
mob/player
Hero
icon = 'chara.dmi'
icon_state = "Hero"
mob/player
Soldier
icon = 'chara.dmi'
icon_state = "Soldier"
mob/player
Fighter
icon = 'chara.dmi'
icon_state = "Fighter"
mob/player
Wizard
icon = 'chara.dmi'
icon_state = "Wizard"
mob/player
Pilgrim
icon = 'chara.dmi'
icon_state = "Pilgrim"
it works in my other game, why not in this? If u don't know, Plase send me a Different Login Code
ID:178159
Jun 13 2002, 7:54 am
|
|
In response to Super16
|
|
O yeah, the errors are:
Dragon Quest Online.dm:20:error: if: missing comma ',' or right-paren ')' Dragon Quest Online.dm:20:error: if: expected end of statement |
In response to Airjoe
|
|
var/char = input(src,"Pick your character!") in list("Hero","Soldier","Fighter","Wizard","Pilgrim"
That is what you have You are missing the right parentheses, it should look like this var/char = input(src,"Pick your character!") in list("Hero","Soldier","Fighter","Wizard","Pilgrim") |
src.client.mob = newmob
del(src)//deletes old mob