Actions

Editing Maps

From MM6 Wiki

Revision as of 19:21, 16 March 2019 by AlpacaNox (talk | contribs)



This page will explain the basics of map editing of the unpatched games (no MMExtension), because:

You can't because the game will crash. Pray for GrayFace to fix it. t. Anerag

The only tool you will need is MM8LevelEditor.

Most of the things here are assumptions and the ways to do stuff are made up by just trying things due to almost non-existing documentation.

Events

Map reference

For VI all events can be found in icons.lod, to ease finding the map you need there is a map reference to the right.

The events from GLOBAL.EVT are used by NPCs and Houses. The events from the map files are used locally to enter the houses and talk to the NPCs above.

The list of events MM8LevelEditor provides you doesn't have any comments and it's hard to navigate. To ease that there are decompiled scripts from VI, VII and VIII which have comments. Look through them to get an idea how things work internally, the events themselves are relatively simple.

Currently it is unknown whether it is possible or not to bind events to facets through the MM8LevelEditor (binding events to doors, walls and such). It is very trivial with sprites though. So as for now we're editing the events that are already bound to the actors and geometry in the game.


Map-only Events

Prior to trying anything navigate to the map you want to edit, on this page we'll start changing New Sorpigal (OutE3). So you'll need OUTE3.EVT from icons.lod to access the events of the map.

Switching houses

Most of the entrances in VI are counted as houses, even map transition is a house entrance event.

Let's change "A Lonely Knight" inn to something else. First we need to find map event id(s) that correspond to the entrance. The easy way is to download decompiled scripts from VI, open the text file with the map you need, in our case it's OUTE3 and look through it, it has comments and stuff. There it is:

event 11
      Hint = str[92]
  0:  EnterHouse  {Id = 92}         -- "A Lonely Knight"
end

event 12
      Hint = str[92]
  0:  Exit  {}

  1:  EnterHouse  {Id = 92}         -- "A Lonely Knight"
end

As you can see the events 11 and 12 are tied to the inn's entrance. Now we know which event we need to change. Now open icons.lod with MM8LevelEditor and navigate to OUTE3.EVT (again because that's the map we're editing). Now search for the events 11 and 12:

caption


Global Events