im to lazy to install a brain and it literally took me two years to find the dm guide how was i supposed to know it was in create games also i think all newbies names should be scanned for DBZ and if its found to be rejected then they should be threatened with burning at the stake if they make any DBZ games and i believe we are all noobs at life (unless your 100 in that case your an oldbie at life) and also the dm guide isnt a great help if you already know programming i mean yea you could come in here from java and start programming but if you knew java or related languages you would only really need to know the format and any built in procs (like html_encode) to program i think that answers everything
In response to KirbyRules
KirbyRules wrote:
I think that when people first install Byond and make their key, it should direct them to the DM guide. That would reduce the newbs here about 50%.

Anyway, Macobo, you would do this:

> mob/verb/ServerTalk(msg as text)
> if(!T)return
> world << "<b>[usr]:</b> [worldfilter(html_ecode(msg))]" //see?
>


!T won't work, 'cuase the text is defined as 'msg'.

_>
<_<

Allow me to upgrade:
mob/verb/servertalk(msg as text)
while(!msg)msg=input("Please write your message.")
world<<"[src]: [msg]"


^-^
In response to DivineO'peanut
There is no tag called 'msg'. It's 'message'. 'msg' is the variable, 'text' is the tag in this code.

Either way, even if you don't input anything into a message tag, !T would still work because the text would be null.
In response to Mega fart cannon
No it wouldn't because the guy had (msg as text) not (T as text) make sure you know what your reading first before you repost. Divine was right.

-Doh
In response to XxDohxX
Ho ho! I read it wrong... x.x
Well, that while() loop isn't needed there, because if 'msg' is null, then that will create an infinite loop. =)

<font size=1>(Desperate attempt to redeem myself.)</font>
In response to Mega fart cannon
Mega fart cannon wrote:
Ho ho! I read it wrong... x.x
Well, that while() loop isn't needed there, because if 'msg' is null, then that will create an infinite loop. =)

<font size=1>(Desperate attempt to redeem myself.)</font>

Last time I checked, an infinite loop is somthing that repeats itself countless of times with no way of stopping itself X-x.

In my case, the verb has a way of stopping itself, therefore it is no infinite loop, nu?
In response to DivineO'peanut
What he means is that someone would be trapped in a loop if they did not want to say anything.
In response to Scoobert
Well that's there problem, not mine o.o;

K. New record in fast reply habbit.
Page: 1 2