Echo

Main.Echo History

Hide minor edits - Show changes to markup

May 31, 2009, at 01:02 PM EST by Lumina
Changed line 7 from:

Echo does not capitalize by default - if you begin the sentence with a variable (mob name, etc) and would like it capitalized, add the option LP_CAPS.

to:

Echo does not capitalize by default - if you begin the sentence with a variable that is not a proper noun and would like it capitalized, add the option LP_CAPS.

Changed lines 11-13 from:
   echo("As you enter, $n greets you!",)
   echo("$n greets $N as $E enters the room.",ch,LP_CAPS);
to:
   echoat(ch,"As you enter, $n greets you!")
   echo("$n greets $N as $E enters the room.",ch,LP_CAPS)

Example: if the mob's name is 'a helpful shopkeeper' and LP_CAPS is not used, the greet would appear as:

To player: As you enter, a helpful shopkeeper greets you!

To others in room: a helpful shopkeeper greets ....

December 31, 2008, at 01:48 AM EST by admin
Added lines 1-14:
   echo - syntax: echo("message",aboutch,options) 

Message will be sent to all characters in the same room as the mob. If 'aboutch' is set it must be a CH type variable and the message will not be sent to that character.

The variable $n is always 'self' - the mob the prog is running on. If aboutch is provided, this is the equivalent of the old 'echoaround'. In this case, the variable $N is the 'aboutch'. The variable $n is always the mob running the prog.

Echo does not capitalize by default - if you begin the sentence with a variable (mob name, etc) and would like it capitalized, add the option LP_CAPS.

   --- Send one message to char, another to others
   --- in the room about the char.
   echo("As you enter, $n greets you!",)
   echo("$n greets $N as $E enters the room.",ch,LP_CAPS);