ID:178451
 
I have a character selecter, and so does my freind Pmac, now on mine, whatever gender you got ur key with, u use that icon, but on his, there is a pop up window, in other words, I need a class selecter that works, my current one is:

orld
mob = /mob/create_character //set the default mob to create_character, as to make the selection stuff happen
view = 7 //I prefer 7...
turf = /turf/grass
mob/monkey //we are playing God here! let's create a monkey
icon = 'monkey.dmi' //the monkey will look like this!
verb //the monkey is quite primitive, so the things it can do are limited
//the things it can do are...
yell() //yell for no reason!
world << "[usr] yells like a monkey!"
run_about() //run around, monkily!
world << "[usr] runs around mindlessly!"
philosophize() //very primitive philopholizations!
world << "[usr] philosophizes! \He thinks, 'Munkee go woo hoo!'"

mob/human
icon = 'human.dmi' //this is what it will look like. quite ugly, no?
verb //the humans are more intelligent than the primitive monkies
speak(msg as text)
world << "[usr] says, in a sophisticated voice, '[msg]!'" //very sophisticated!
walk_around() //they can walk erect!
world << "[usr] strolls around leisurely."
philosophize() //they have much more developed brain power - they can philosophize meaningful things!
world << "[usr] wants to debate philosophical matters!"

this is not Pmac's. This is mine, from a demo, he got his from a tutorial, I jsut need a selector that works
Airjoe wrote:
I have a character selecter, and so does my freind Pmac, now on mine, whatever gender you got ur key with, u use that icon, but on his, there is a pop up window, in other words, I need a class selecter that works, my current one is:

orld
mob = /mob/create_character //set the default mob to create_character, as to make the selection stuff happen
view = 7 //I prefer 7...
turf = /turf/grass
mob/monkey //we are playing God here! let's create a monkey
icon = 'monkey.dmi' //the monkey will look like this!
verb //the monkey is quite primitive, so the things it can do are limited
//the things it can do are...
yell() //yell for no reason!
world << "[usr] yells like a monkey!"
run_about() //run around, monkily!
world << "[usr] runs around mindlessly!"
philosophize() //very primitive philopholizations!
world << "[usr] philosophizes! \He thinks, 'Munkee go woo hoo!'"

mob/human
icon = 'human.dmi' //this is what it will look like. quite ugly, no?
verb //the humans are more intelligent than the primitive monkies
speak(msg as text)
world << "[usr] says, in a sophisticated voice, '[msg]!'" //very sophisticated!
walk_around() //they can walk erect!
world << "[usr] strolls around leisurely."
philosophize() //they have much more developed brain power - they can philosophize meaningful things!
world << "[usr] wants to debate philosophical matters!"

this is not Pmac's. This is mine, from a demo, he got his from a tutorial, I jsut need a selector that works

Try this:

mob/creating_character

Login()
..()
world << "[usr] has just entered '[world.name]'!"
src.CreateCharacter()

proc/CreateCharacter()
var/char_name = input("Please put your character name in here.","Name") as null|text
var/mob/new_mob
var/char = input(src,"Pick your character!") in list("Human","Monkey","None")
if(char_name == "")
src.Logout()
if(char == "Human")
new_mob = new/mob/human
if(gender == "Female")
new_mob = new/mob/monkey
if(gender == "None")
src.Logout()
new_mob.name = char_name
src.client.mob = new_mob
usr.loc = locate(1,1,1)


Hope that helps.

--Lee
In response to Mellifluous
mob/creating_character

Login()
..()
world << "[usr] has just entered '[world.name]'!"
src.CreateCharacter()

proc/CreateCharacter()
var/char_name = input("Please put your character name in here.","Name") as null|text
var/mob/new_mob
var/char = input(src,"Pick your character!") in list("Human","Monkey","None")
if(char_name == "")
src.Logout()
if(char == "Human")
new_mob = new/mob/human
if(gender == "Female")
new_mob = new/mob/monkey
if(gender == "None")
src.Logout()
new_mob.name = char_name
src.client.mob = new_mob
usr.loc = locate(1,1,1)

Tiny Chao Chatroom.dm:30:error:/mob/human:undefined type path
Tiny Chao Chatroom.dm:32:error:/mob/monkey:undefined type path

now what???

In response to Mellifluous
mob/creating_character

Login()
..()
world << "[usr] has just entered '[world.name]'!"
src.CreateCharacter()

proc/CreateCharacter()
var/char_name = input("Please put your character name in here.","Name") as null|text
var/mob/new_mob
var/char = input(src,"Pick your character!") in list("Human","Monkey","None")
if(char_name == "")
src.Logout()
if(char == "Human")
new_mob = new/mob/human
if(gender == "Female")
new_mob = new/mob/monkey
if(gender == "None")
src.Logout()
new_mob.name = char_name
src.client.mob = new_mob
usr.loc = locate(1,1,1)

Tiny Chao Chatroom.dm:30:error:/mob/human:undefined type path
Tiny Chao Chatroom.dm:32:error:/mob/monkey:undefined type path

now what???

In response to Airjoe
I really need this, please help:


mob/creating_character

Login()
..()
world << "[usr] has just entered '[world.name]'!"
src.CreateCharacter()

proc/CreateCharacter()
var/char_name = input("Please put your character name in here.","Name") as null|text
var/mob/new_mob
var/char = input(src,"Pick your character!") in list("Human","Monkey","None")
if(char_name == "")
src.Logout()
if(char == "Human")
new_mob = new/mob/human
if(gender == "Female")
new_mob = new/mob/monkey
if(gender == "None")
src.Logout()
new_mob.name = char_name
src.client.mob = new_mob
usr.loc = locate(1,1,1)



Tiny Chao Chatroom.dm:30:error:/mob/human:undefined type path
Tiny Chao Chatroom.dm:32:error:/mob/monkey:undefined type path
In response to Airjoe
Airjoe wrote:
I really need this, please help:


mob/creating_character

Login()
..()
world << "[usr] has just entered '[world.name]'!"
src.CreateCharacter()

proc/CreateCharacter()
var/char_name = input("Please put your character name in here.","Name") as null|text
var/mob/new_mob
var/char = input(src,"Pick your character!") in list("Human","Monkey","None")
if(char_name == "")
src.Logout()
if(char == "Human")
new_mob = new/mob/human
if(gender == "Female")
new_mob = new/mob/monkey
if(gender == "None")
src.Logout()
new_mob.name = char_name
src.client.mob = new_mob
usr.loc = locate(1,1,1)



Tiny Chao Chatroom.dm:30:error:/mob/human:undefined type path
Tiny Chao Chatroom.dm:32:error:/mob/monkey:undefined type path

Stop posting all of this we only need it once.

To fix this change it to how you have defined your mobs.

IE;
mob/player
lee
//stuff goes here

jo
//stuff goes here

jim
//stuff goes here

These get put as:
/mob/player/lee

/mob/player/jo

/mob/player/jim


Get what I mean by this?

Well, the point is to change the
/mob/human
to the actual defined mob you are using ok?

--Lee
In response to Mellifluous
I see, so I have to out the name, then the icon, and the icon_state? is that it? then it will work right
In response to Airjoe
Airjoe wrote:
I see, so I have to out the name, then the icon, and the icon_state? is that it? then it will work right

I will make a little snippet for you to work from ok...
In response to Mellifluous
ok, the game is a chao chatroom,basically, I just want so you can pick what color chao you want in the begining
In response to Airjoe
Airjoe wrote:
ok, the game is a chao chatroom,basically, I just want so you can pick what color chao you want in the begining

Here you go, hope this gets you into how things work:

world
mob = /mob/creating_character //This sets the default mob path
view = 7 //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

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()

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("Human","Monkey","None") //The player chooses his/her character here
if(char_name == "") //Here we tell the game to logout the player if he/she has a null name
src.Logout() //This calls up the logout()
if(char == "Human")
new_mob = new/mob/player/human //Looking up the path "/mob/player/human"
if(gender == "Monkey")
new_mob = new/mob/player/monkey //Looking up the path "/mob/player/monkey"
if(gender == "None")
src.Logout()
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(1,1,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
human
icon = 'human.dmi'
icon_state = "3"
verb
speak(msg as text)
world << "[usr] says, in a sophisticated voice, '[msg]!'"
walk_around()
world << "[usr] strolls around leisurely."
philosophize()
world << "[usr] wants to debate philosophical matters!"

monkey
icon = 'monkey.dmi'
icon_state = "5"
verb
yell()
world << "[usr] yells like a monkey!"
run_about()
world << "[usr] runs around mindlessly!"
philosophize()
world << "[usr] philosophizes! \He thinks, 'Munkee go woo hoo!'"


--Lee
In response to Mellifluous
Thank you sooooo Much, and do you have AIM? what is ur sn?
In response to Airjoe
Airjoe wrote:
Thank you sooooo Much, and do you have AIM? what is ur sn?

Lebaria