Help me plx in Developer Help
|
|
how do i do an opening screen like this (http://developer.byond.com/hub/Wolf01/OpeningScreen)
with this code:
#include <deadron/characterhandling>
client/base_num_characters_allowed = 3
world/mob = /mob/creating_character
mob/creating_character base_save_allowed = 0
Login() spawn() src.CreateCharacter()
proc/CreateCharacter()
var/prompt_title = "New Character" var/help_text = "What do you want to name the character?" var/default_value = key var/char_name = input(src, help_text, prompt_title, default_value) as null|text
if (!char_name) client.base_ChooseCharacter() return
var/ckey_name = ckey(char_name) var/list/characters = client.base_CharacterNames() if (characters.Find(ckey_name)) alert("You already have a character named that! Please choose another name.") src.CreateCharacter() return
var/list/classes = list("Boy", "Girl") help_text = "Which class would you like to be?" default_value = "Boy" var/char_class = input(src, help_text, prompt_title, default_value) in classes
var/mob/new_mob switch(char_class) if ("Boy") new_mob = new /mob/Boy() if ("Girl") new_mob = new /mob/Girl()
new_mob.name = char_name
src.client.mob = new_mob var/turf/first_location = locate(6, 5, 1) new_mob.Move(first_location) del(src)
mob Login() ..() world<<"[src] has joined" sample_report()
verb Add_Save_Verb() src.verbs += /mob/proc/save_me
proc sample_report() src << "<BR><BR>" src << "\blue Your Name is [name]." src << "\blue You are a [type]."
save_me() src.client.base_SaveMob() src << "\red You have been saved."
mob/Boy icon = 'Boy.dmi'
mob/Girl icon = 'Girl.dmi'
|
how do i put a bmp "New"
then if you click "New" you'll creat a new char ( proc/CreateCharacter())
like the that one above?
and put a bmp "Load"
then if you click "Load" you'll load ur character
and put a bmp "Delete"
then when u click "Delete" it'll delete your saved character
|
well theres you create but your code doesnt have anything concerning loading and deleting, and i dont wanna waste my time making you one sry.