|
|
| Line 1: |
Line 1: |
| − | '''TEXT_EDITOR TEXTEDITOR WORDWRAP WORD_WRAP FORMATTING WRITE''' | + | '''TRIGEDIT-ROOM-CAST''' |
| | [[Category:Help Files]] | | [[Category:Help Files]] |
| | + | [[Category:Building]] |
| | | | |
| − | The text editor is what you use to write room/mob/obj/extra descriptions,
| + | Activated if a spell is cast in the room. |
| | | | |
| − | mudmails, and even boards. It allows you more commands than the typical entry.
| |
| | | | |
| − | To learn the commands while using the text editor, type /h. It will tell you
| |
| | | | |
| − | what all the / commands do. Always use /fi to format, indent, and word wrap.
| + | Numeric Arg : percent chance this trigger will be activated. |
| | | | |
| − | It looks much better to see writing that is formatted than one that runs all
| + | Argument : not used. |
| | | | |
| − | over the place wrapping around etc. Just simply type /fi on a new line and hit
| |
| | | | |
| − | enter. Before you save type /l to list the buffer and see for yourself how it
| |
| | | | |
| − | looks. Fix as needed.
| + | Used with return 0 will cause the spell not to be cast. |
| | | | |
| − | When entering the text editor for the first time make sure to use /c to clear
| |
| | | | |
| − | the current contents. Indent and format all descriptions by typing /fi (format
| |
| | | | |
| − | with indent) in the text editor. This includes all forms of OLC, mudmails,
| + | Variables: |
| | | | |
| − | boards, and anywhere else you use the text editor. This will indent the line
| + | %actor% - the caster of the spell |
| | | | |
| − | by 3 spaces and wrap your text at less than 80 characters so telnet users can
| + | %spell% - the number of the spell |
| | | | |
| − | read it.
| + | %spellname% - the name of the spell |
| | | | |
| | + | %vict% - the target (mob/player) of the spell, if any. |
| | | | |
| − | Editor command formats: /<letter>
| + | %obj% - the target (object) of the spell, if any. |
| | | | |
| | | | |
| − | {c0/a - aborts editor
| |
| | | | |
| − | {c0/c - clears buffer | + | Example: {cRTSTAT 57{c0 |
| − | | |
| − | {c0/d# - deletes a line #
| |
| − | | |
| − | {c0/e# <text> - changes the line at # with <text>
| |
| − | | |
| − | {c0/f - formats text.
| |
| − | | |
| − | {c0/fi - indented formatting of text (highly recommended for all desc's)
| |
| − | | |
| − | {c0/h - list text editor commands
| |
| − | | |
| − | {c0/i# <text> - inserts <text> before line #
| |
| − | | |
| − | {c0/l - lists buffer
| |
| − | | |
| − | {c0/n - lists buffer with line numbers
| |
| − | | |
| − | {c0/r 'a' 'b' - replace 1st occurance of text <a> in buffer with text
| |
| − | | |
| − | {c0/ra 'a' 'b'- replace all occurances of text <a> within buffer with text
| |
| − | | |
| − | usage: /ra 'pattern' 'replacement'
| |
| − | | |
| − | {c0/s - saves text | |
| − | | |
| − | | |
| − | | |
| − | NOTE: /f and /fi in trigedit will autoindent your trigger.
| |
| − | | |
| − | Commands such as /r, /n, /e#, /i#, /d# are invaluable and will make your job
| |
| − | | |
| − | much easier. For example lets say you mistype "the" with "teh" in a 10 line
| |
| − | | |
| − | description. Instead of /c (clearing) the text you can /r 'teh' 'the' or if it
| |
| − | | |
| − | was on line 5 you can type /e5 <line with teh spelled correctly> or /d5. Learn
| |
| − | | |
| − | all these options.
| |
Activated if a spell is cast in the room.
Numeric Arg : percent chance this trigger will be activated.
Argument : not used.
Used with return 0 will cause the spell not to be cast.
%vict% - the target (mob/player) of the spell, if any.
%obj% - the target (object) of the spell, if any.