IMM_MEDIT
Keywords: IMM_MEDIT, WIZ_MEDIT
=== STAFF MANUAL ===
Usage: medit <vid>
Description:
Interactive editor for mobile prototypes. Opens the target
VID in a menu-driven session where every field on a mob --
aliases, descriptions, combat stats, flags, equipment,
scripts, opinions, and dialogue -- can be edited from a single
screen. Edits are held in a scratch copy until you quit the
editor; only then are they written back to the prototype and
propagated to any live instances.
If the VID does not exist yet, medit creates a new
placeholder mob at that number with default attributes of 100
across the board, a base HP of 1, and the starter strings
"mob unfinished" / "the unfinished mob" / "An unfinished mob
stands here.", ready for you to fill in.
Main Menu:
1 Sex 2 Alias (keywords)
3 S-Desc 4 L-Desc
5 D-Desc 6 Level
7 Race 8 HP (base + vary)
9 MP 0 Armor (10 damage types)
A Attributes B Difficulty
C Clan D Position
E Default Position F Attack
G NPC Flags H Affect Flags
I Equipment J SP
L Dialogue N A.I. Submenu
O Opinions Submenu S Scripts
T Team Q Quit
Difficulty-driven stats (HP, armor, attack DPS, attribute
spread) are displayed greyed out unless the mob is on
Custom difficulty -- the other difficulty tiers compute
these fields from level + race at runtime, so editing them
directly has no effect.
Scripts and Behaviors:
The S entry lists the mob's attached script VIDs. The
editor also tracks the behavior sets and initial globals
alongside the trigger list; all three are copied out of the
prototype on entry and swapped back in atomically when you
save. (Has Variables) after the script list indicates that
one or more initial globals are set on this mob.
Saving:
On Q, if anything was modified you are prompted to save.
Saving copies the scratch CharData into the live mob_index
entry, replacing the prototype, and swaps the trigger list,
behavior sets, and initial globals into place. Every live
instance of the mob has its keywords, short/long/detail
strings, and dialogue VID updated in-place so that already-
loaded mobs in the world pick up your text edits immediately;
other field changes only apply to new spawns.
The destination zone is marked dirty after a save, so the
.mob file on disk is rewritten on the next OLC save pass.
Restrictions:
- Requires the OLC staff permission and build access
to the target zone.
- Creating a new mob at a VID requires permission on
the destination zone, same as any other OLC add.
- Two staff cannot have the same mob open at once;
dig, mcopy, and similar commands that touch a
locked prototype refuse with a "currently being
edited by <name>" message.
Related Helpfiles: WIZ_OEDIT, WIZ_REDIT, WIZ_ZEDIT
=== END MANUAL ===