ID:2803693
 
Code:
    proc
CreateCharacter()
var
prompt_title = "New Character"
help_text = "What do you want to name the character?"
default_value = ""
char_name = input(src, help_text, prompt_title, default_value) as null|text
list/classes
while (char_name == "")
char_name = input(src, "Invalid name, please enter a name","Enter a name",default_value) as null|text
char_name = html_encode:(char_name)


Problem description:

Hey guys, I'm trying to update some old code to work with the new version of BYOND. Wondering if there's some pages about required code updates I could look for or if someone can give me an idea of how variables are suppose to be setup that would be cool. I'm getting an error on the last line here that says char_name is not a valid variable inside the html_encode proc.

createcharacter.dm:17:error: html_encode:: undefined var
Actually I just found the documentation finally and it just says you do html_encode(var) now so gonna try that
For some reason it is playing the song from every map all at the same time now lmao and I have no idea why

edit: figured out I needed to add channels to all my sound functions..got one stray sound I haven't found yet but hey got my old game back up