ID:162641
 
Hey how do i code in an ooc?
http://developer.byond.com/docs/guide/

or search through one of the demos out there
In response to Monkeykid0049
Uhhh im not exactly the best coder i just got into it i dont understand...
In response to Ckliger
Here's an example:
mob
verb
Say() // a basic say verb
var text=input("What would you like to say: ")as text // have them input what they want to say
world << "[src] says:[text]" // send the world a message with what they typed
In response to Monkeykid0049
Thank you so much.
In response to Ckliger
im having a problem i used the code you gave him it makes them like theyre saying but its like ooc so how do i make a say verb and along with a normal say verb...think of me as and idiot but can you give me some codes for that?
In response to Seanleonartes
It'd be the same as the OCC verb except you'd need to change the verb name as well as change world to view()
In response to Seanleonartes
These are the codes i give to nub coders so they get the basics going(No offense)


OOC

mob
verb
OOC(msg as text)
world<<"[usr]:[text]

and say is like

mob
verb
Say(msg as text)
view(usr,8)<<"[usr]:[text]


view(usr,8) is so anyone with a range of 8 blocks of turf away will hear

"<<" is to send the msg there used for talking like
src<<"HI!"(says to a single player)
usr<<"HI!"(says to a single player)
world<<"HI!"(says to everyone)
view(usr,[some number])<<"HI!"(says to people withing a range of the number inputed


and im too lazy to say anymore so search up some demos
In response to Monkeykid0049
Thank you MarcMacMan, you helped ME out a bunch.
In response to Nitty07
no problem its what I do... :D