ID:195125
 
//Title: \... Continuation Macro Sample
//Credit to: Jtgibson
//Contributed by: Jtgibson


//This is a nifty little trick you can use in your say
// messages, thanks to the "\..." macro.


mob/verb/say(T as text)
world << "[src.name]: [T]"


mob/Admin/say(T as text)
//Increases the size and bolds the text of admins.
world << "<font size=\"+1\"><b>\..."
world << "[..()]\..."
world << "</b></font>"


/*
//Testing code/sample implementation:

world/mob = /mob/Admin

//Comment out the /* and */
, compile, and run, and you'll be an
// admin. Try saying something. Then delete the comments in
// front of the /* and */, recompile and rerun, and say something.
// You'll notice the difference.

*/



[Note: The testing code above appears slightly incorrect on these forums as the syntax highlighter does not allow nested comments. However, it will look correct and compile properly in Dream Maker.]