Please select by the first letter of the name or type in your search below:

- A - B - C - D - E - F - G - H - I - J - K - L - M - N - O - P - Q - R - S - T - U - V - W - X - Y - Z -
Other


.:. MPEDIT


The MPEDIT command allows you to edit code associated with mob programs.  This code can then be attached to mobs to allow them to interact with players or their environment.

Syntax :
mpedit [vnum|name]    - Edit the mob program with that vnum or name
                      - This command will put you into the mpedit editor,
                      - Where all commands are interpreted by mpedit.
                      - See the listing below for valid commands.
mpedit create [vnum]  - Create a new mob program with vnum [vnum], named program-[vnum]
                      - This command will put you into the mpedit editor.
mpedit list           - List all mobprogs in the game.
mpedit list [zone]    - Lists all mobprogs in the zone.
mpedit save           - Outside mpedit: saves every mobprog that has unsaved
                      - changes.  Inside mpedit: saves the mobprog you're
                      - editing.  Mobprogs are saved for the whole game, so
                      - there is no port to give.  Then, as after an OLC save,
                      - you are asked for a git commit message for the files
                      - written (see 'help olc save').

Commands available inside MPEDIT:

commands         - Display the available commands.
create [vnum]    - Create a new mob prog with vnum [vnum]
code             - Enter the code editor where you write the actual code.
title [title]    - Give the mobprog a title to make it easier to identify.
name [name]      - Give the mobprog a short unique name (see Names below).
show             - Show the current stats.  (Same as just hitting enter).
list             - List all mobprogs in the game.
list [zone]      - List all mobprogs in the zone.
save             - Saves the program you're editing, for the whole game.
functions        - List all available functions for use in 'if' statements.
funcs            - Shorthand for 'functions' command above.

Names:  every mobprog has a short unique name, such as laundress-gives-pants:
1-32 characters, lower-case letters, digits and '-', starting with a letter.
A new mobprog is named program-[vnum] until you give it another name.
Wherever a command asks for a mobprog vnum (mpedit, mpdump, mprogadd, mob call)
the name works too.  The vnum stays the permanent ID, so renaming a mobprog
never breaks the mobs that use it.

A mobprog's code and title cannot contain the character ~.  Saving a mobprog
that has one is refused, with a message saying where.

See also: MOBPROGRAMS, MOB FUNCTIONS, MOB COMMANDS, MOB TRIGGERS, MOB ACT CODES, MOB LOGIC
CURRENT MPEDIT / WEB PROGRAM EDITING
mpedit <vnum|name> edits a program; create/code/title/name/save retain
their native behavior. Successful creation and saves now record history.
mpedit delete <vnum> / mpedit undelete <vnum> require the edit lock.
Deletion is a memory-only mark; save omits marked programs from their
hundred-group .prg file. Attachments and running programs stay live until
reboot; delete warns about every referencing mobile prototype. Marked
vnums/names stay taken and remain readable/editable. Undelete and save
before reboot to restore file inclusion. MM32 rooms have no MProg attachments.
The website holds a renewable 30-minute tab lease from Edit through Apply.
Apply saves the group but does not unlock; Done/unlock is separate.
History restore is a locked Apply and immediately saves the program.
Names retain native lower-case letter/digit/hyphen rules (1-32 chars,
starting with a letter); name/title cannot contain line breaks or ~, and
code cannot contain ~. No new content restrictions or history schema.


:: Beginning

 
 Copyright © 2003 A Moment in Tyme
 Web Design by: Tannil and Guy
.:. Top of Page