ID:168542
 
Ok Im taking my first attempt at making a game...I have a very basic map and my communication verbs (everything will be made better once I have the basics set up), however I cant get the text I type to appear in the text box to the right. Can anyone help.
Have you got a say verb. If not here it is:

mob
verb
say(msg as message)
world << "<font color=red>[usr.key] says</font> [msg]"

Hope this helps you.

<font color=red><font size=5>ADT_CLONE</font></font>
In response to ADT_CLONE
Thanks...I got the say going now, what do I put for ooc tho?
In response to Dranzer2020
same as say just change the color and stuff

mob
verb
OOC(T as text)
world << "<font color = aqua>[src]:[html_encode(T)]</font>"

if you use this fix the indentation
In response to National Guardsmen
Thanks..thats the OOC going now...but I have yet another question (sigh, should have asked these all at once)anyway, how do I change the backround color of the text box to black, I find white too hard to read etc. etc.

I will prob be posting here more now that Im getting problems, but once I get a fully functional game, I will start to make it more origional. Thanks again
In response to Dranzer2020
Umm im not sure how to do this. Mabey go to DM help and type in client var and see if you can find it in there.
In response to Dranzer2020
This is how you can change the background and the default text(I'm believe this is CSS) :

client
script = "<style> body {background : black; color : white}</style>"
In response to ADT_CLONE
Dranzer, I should just tell you right off the bat that even though these code snippets that were shown to you in the previous posts do work fine, but in DM you can do it a million different ways. So just that you were shown those few ways, you should try to expand by experimenting around with others. For example you can make a say verb where you just simply have to type in the pink bar by adding:

client
command_text = "> "

mob
verb
Say(T as text)
set name=">"
set hidden=1
world<<"<b>[usr]</b>: [msg]"


P.S. Yes Mecha Destroyer JD, That is infact CSS.
In response to Gamedestroyer
Thanks guys I got it going now...I am experimenting with the code, however Im using ripped codes and codes from libraries just till I know for sure what Im doing.

Just letting you know I Will NOT be making a ripped game when it comes to it. thanks again
In response to National Guardsmen
National Guardsmen wrote:
same as say just change the color and stuff

> mob
> verb
> OOC(T as text)
> world << "<font color = aqua>[src]:[html_encode(T)]</font>"
>

if you use this fix the indentation

You have done very bad here. There's a problem with your HTML.
You need to remove the spaces between the attribute, the equal sign, and the color name. Ex.

<font color=aqua>


Is the proper way to do that.

Lummox has written several posts about people doing crap like you had it, and he has a good point.