Ok my game is based on kunark's stuff and the saving and loading I want to change but they way I want it is like the Character Handling Library but i dont want to change my whole game because i want to keep the class selection but be able to have more than one character and save on the server's comp so I can do Pwipes for updates. So putting it short how do I convert it without changing the whole game and stuff?
Thanks in advance!
ID:174377
Aug 22 2003, 8:56 am
|
|
Aug 22 2003, 10:52 am
|
|
Your doing it again, your question is way way to general. No one in the world of Byond will ever be able to answer your question. We NEED details about your code and your probleme.
|
In response to FranquiBoy
|
|
Ok DETAIL TIME! This is the saving and loading of my game i just wanna convert it
mob/Player/Login() alert("Warning by pressing Ok you are accepting to follow rules to play this game.Do not steal custom made icons!or you shall be hunted down and killed and please no heavy cursing (Thank you!)","Title","Ok") alert("Welcome to Daikanu Online.","Title","Ok") var/I = input("What would you like to do?","Logging in:","Continue") in list("Continue","Create New Character") if(I == "Continue") var/savefile/F = new(client.Import()) if(F) Read(F) var/last_x var/last_y var/last_z F["last_x"] >> last_x F["last_y"] >> last_y F["last_z"] >> last_z loc = locate(last_x, last_y, last_z) hers the saving mob/proc/Save_Character() var/savefile/F = new(client.Import()) Write(F) F["last_verbs"] << usr.verbs F["last_x"] << x F["last_y"] << y F["last_z"] << z client.Export(F) src << "[src.name] has been saved." mob/Player/verb/Save() set category = "Communication" src.Save_Character() I wanna just throw that all out and you character handling so i can do Pwipes for updates and Etc. |
In response to Darkfirewolf5
|
|
Thats pretty universal... theres no adapting to do if you ask me
|
In response to FranquiBoy
|
|
Its kinda hard becuz my game is still using Kunarks Rpg tutorial 2 still heres the code
client/base_num_characters_allowed = 3 world/mob = /mob/create_character mob/create_character var/mob/character Login() alert("When naming a character please choose a appropriate name.Do not make Dbz names and or number addons Roman Numerals are ok so no Goku or James4545 but JamesVII is ok.","Message","Ok") Name_Character() var/characterlastname = input("Please input your character's lastname now (You do not have to have a last name).", "Character's Last Name?") // What last name does the character want? alert("Warning by pressing Ok you are accepting to follow rules to play this game.Do not steal custom made icons!or you shall be hunted down and killed and please no heavy cursing (Thank you!)","Title","Ok") alert("Welcome to Daikanu Online.","Title","Ok") var/G = input("What is your gender?","Gender:") in list("Male","Female") var/C = input("What would you like your class to be?","Class:") in list("Explorer","Knight","Kanu","Thief","Bard/ Dancer","Blackmage","Whitemage") //Ditto but with class. loc = locate(377,86,1) world << "[usr] has logged in!" switch(G) if("Male") gender = MALE else gender = FEMALE icon_state = "[lowertext(G)] [lowertext(C)]" character.name = name character.lastname = characterlastname src.client.mob = character del(src) ..() and thats the character creation thing and the problems are Btw the implemtation and characterhandling are in there problem 1 when you go to delete it just sits there and doesnt delete 2 when you make a character it sometimes shows you invisble and or with out most of the verbs 3 when you continue it has the character creation menu so you make a another one on the saved one those are the problem with converting it please can someone help? |
In response to Darkfirewolf5
|
|
Darkfirewolf5 wrote:
Its kinda hard becuz my game is still using Kunarks Rpg tutorial 2 still heres the code 1A thats a bug with the character handling libary, i think deadron knows about it and will fix it soon 2 when you make a character it sometimes shows you invisble and or with out most of the verbs make a var called login, be zero (for the mobs) when theyve created their mob make login one, if its one dont do the character creation stuff |