ID:164377
 
I want to start working with coding and stuff...really new to BYOND and I could use a Demo on how to make them...
I tried to search the Demo library but I couldnt find.

MSN:
[email protected]
Zilal's tutorial on making text-based games should help.

http://zilal.byondhome.com/tutorials/zbt3.html
In response to Tweelik
Thank you very much...
now I encountred another problem...

emote(msg as text) usr << "Everyone sees:"
view() << "[usr] [msg]"

I input this code as said on Zlia's Tutorial and it says when I compile it says:
error:emote :undefined proc

so I add the proc as said on the tutorial:
proc
Msg23(second,third) usr << second oview() << third

and it still says that emote is a undefined process...
can any1 help me?
In response to Arochimaro
did you notice anything above emote()? Your getting that error because it doesn't know what emotes parent type is, and emote() isn't a parent_type so it gave an error.

mob
verb
emote(msg as text)
usr<<"Everyone sees:"
view()<<"[usr] [msg]"


Also, put your code in <dm> and </dm> tags, and dont space, but tab( the tab key ) to space the code.
In response to Tweelik
oh I see....thank you...got that the wrong way
In response to Arochimaro
That's pretty basic, here is something a little better.

mob //This thing
verb //An action
say(msg as text) //Say
if(msg) //If there's a message
world<<"[src]: [html_encode(msg)]" //Send the message to the world, without processing the html.

// Nobody likes html, because idiots use it to spam your game. It can also be written on one line.

mob/verb/say(msg as text) if(msg) world<<"[src]: [html_encode(msg)]"


It doesn't take into consideration if the person is muted or anything however. You would have to do that yourself.