ID:165545
 
how would i go about making or accessing such a thing if i am making a code to select a team at the start of the game or whatever..

character = new /mob/characters/Blah()


and i don't know how to define an icon or even get to the file, any help will be appreciated
bump
In response to Animay3
nobody likes me
In response to Animay3
Maybe it's more like your question is VERY vauge.. like: what file?

For the icon thing, define the icon -_-
mob/characters
Blah
icon='...'


- GhostAnime
Races, perhaps?

var/list/byond_moderators=list("dan","tom","deadron","gughunter","lummoxjr","mikeh","nadrew","shadowdarke")

mob/player
orc //orcs have been created to watch over trolls
verb
bash()
eat()
...
//see "torture.dm" -- code block is WAY too large for this section
human //normal players
verb/help()
... //see "help.dm" -- code block too large for this section
byond_moderator //yes, they're a race. In the magical land of BYOND, the BYOND Moderators reign over The Atom: the building blocks of the universe.
verb
ban(mob/M in world)
if(!istype(M,/mob/byond_moderator) && M.client)
M.client.mob=new/mob/player/troll(M.loc)
del M
unban(mob/M in world)
if(istype(M,/mob/troll) && M.client)
if(prob(90)) M.client.mob=new/mob/player/human(M.loc)
else M.client.mob=new/mob/player/android(M.loc)
del M
android //androids are previously known trolls whom are being watched by orcs
verb/try_to_help()
... //see "help.dm" -- code block too large for this section
troll //a baaaad person. only one said to have escaped the power of The Atom was a certain "Phoenix Man"
verb
cause_trouble()
... //see "trouble.dm" -- code block is too large for this section
suck_up()
for(var/mob/player/byond_moderator/M in world) if(prob(5)) M<<"[src.name] asks to be unbanned. Will you unban [src.name]? If so, hit the \"unban\" verb!"

client/New()
for(var/mob/M in world) if(M.key==key) mob=M
if(!mob)
if(ckey in byond_moderators) mob=new/mob/player/byond_moderator
else if(ckey=="androiddata") mob=new/mob/player/android
else
choose_race:
switch(alert(src,"What race would you like to become?","Character Creation :: Select Race", "Human","Orc","Logout"))
if("Human")
if(alert(src,"You chose: Human.\n\nIf you don't know what a human is, maybe you should look in the mirror? Failing that, contact me; I really want to know what you are.","Character Creation :: Select Race","No","Yes")=="No") goto choose_race
mob=new/mob/player/human
if("Orc")
if(alert(src,"You chose: Orc.\n\nOrcs are fearless predators from the afterlife. They've been created by BYOND Moderators using the power of The Atom to beat trolls to pulp.","Character Creation :: Select Race","No","Yes")=="No") goto choose_race
mob=/new/mob/player/orc

if(mob) world<<"<b>[key] has logged in!</b>"

client/Del()
if(mob) world<<"<b>[key] has logged out!</b>"
return ..()


This snippet would allow normal players to select if they want to become a human or an orc when they login. The key "Android Data" becomes an android, and the BYOND Moderators (listed in the byond_moderators list) become BYOND Moderators.

<small>No atoms were harmed in the making of this snippet.</small>
In response to Android Data
Android Data wrote:
Races, perhaps?

> var/list/byond_moderators=list("dan","tom","deadron","gughunter","lummoxjr","mikeh","nadrew","shadowdarke")
>
> mob/player
> orc //orcs have been created to watch over trolls
> verb
> bash()
> eat()
> ...
> //see "torture.dm" -- code block is WAY too large for this section
> human //normal players
> verb/help()
> ... //see "help.dm" -- code block too large for this section
> byond_moderator //yes, they're a race. In the magical land of BYOND, the BYOND Moderators reign over The Atom: the building blocks of the universe.
> verb
> ban(mob/M in world)
> if(!istype(M,/mob/byond_moderator) && M.client)
> M.client.mob=new/mob/player/troll(M.loc)
> del M
> unban(mob/M in world)
> if(istype(M,/mob/troll) && M.client)
> if(prob(90)) M.client.mob=new/mob/player/human(M.loc)
> else M.client.mob=new/mob/player/android(M.loc)
> del M
> android //androids are previously known trolls whom are being watched by orcs
> verb/try_to_help()
> ... //see "help.dm" -- code block too large for this section
> troll //a baaaad person. only one said to have escaped the power of The Atom was a certain "Phoenix Man"
> verb
> cause_trouble()
> ... //see "trouble.dm" -- code block is too large for this section
> suck_up()
> for(var/mob/player/byond_moderator/M in world) if(prob(5)) M<<"[src.name] asks to be unbanned. Will you unban [src.name]? If so, hit the \"unban\" verb!"
>
> client/New()
> for(var/mob/M in world) if(M.key==key) mob=M
> if(!mob)
> if(ckey in byond_moderators) mob=new/mob/player/byond_moderator
> else if(ckey=="androiddata") mob=new/mob/player/android
> else
> choose_race:
> switch(alert(src,"What race would you like to become?","Character Creation :: Select Race", "Human","Orc","Logout"))
> if("Human")
> if(alert(src,"You chose: Human.\n\nIf you don't know what a human is, maybe you should look in the mirror? Failing that, contact me; I really want to know what you are.","Character Creation :: Select Race","No","Yes")=="No") goto choose_race
> mob=new/mob/player/human
> if("Orc")
> if(alert(src,"You chose: Orc.\n\nOrcs are fearless predators from the afterlife. They've been created by BYOND Moderators using the power of The Atom to beat trolls to pulp.","Character Creation :: Select Race","No","Yes")=="No") goto choose_race
> mob=/new/mob/player/orc
>
> if(mob) world<<"<b>[key] has logged in!</b>"
>
> client/Del()
> if(mob) world<<"<b>[key] has logged out!</b>"
> return ..()
>

This snippet would allow normal players to select if they want to become a human or an orc when they login. The key "Android Data" becomes an android, and the BYOND Moderators (listed in the byond_moderators list) become BYOND Moderators.

<small>No atoms were harmed in the making of this snippet.</small>


Thanks alot, that helped. One more question, when they are being created how would i set their key to a list. AND another question, is there any built-in variable for making their character names? or would i need a library?
In response to Animay3
bumpity dumpity

BADGER-BADGER-BADGER-BADGER-BADGER-BADGER-BADGER-BADGER-BADG ER-BADGER MUSHROOM MUSHROOM!!!!!!!!!!!!!!!!!!!!
In response to Animay3
var/list/listname = list("key","otherkey")
In response to Xx Dark Wizard xX
Xx Dark Wizard xX wrote:
var/list/listname = list("key","otherkey")


Explain that?
In response to Animay3
Nevermind, I am not going to help you.