Legend of Grimrock 2
0 of 0

File information

Last updated

Original upload

Created by

AdrTru

Uploaded by

AdrTru

Virus scan

Safe to use

Documentation

Readme

View as plain text

MultiAlcoveManager v.2 by AdrTru
----------------------------------

This mod add some surfaced objects with defined specific positions for inserted items.

weaponrack - object with defined positions for many weapons
swordrack - object for some swords
armorrack - object for armors
ledgerack - object for example of conditions for inserting/removing items
wallhookrack - object with definitions for hooking shields on wall


INSTALL
----------

1/ put mam folder to mod_assets directory
2/ add line below in mod_assets/scripts/init.lua
import "mod_assets/mam/scripts/mam_init.lua"
3/ now is possible to add racks to dungeon


UPDATE OLD INSTALATIONS
---------------------------

1/ if you made some onw definition in old mam.lua file copy this definitions to new mam.lua file
2/ delete mam folder and add there the new mam folder
3/ delete mam script entity from dungeon


new FEATURES
-------------

This version isnt use any hooks and fw for working! ( only connectors - this is created automaticaly )
Racks are redefined like pedestal for manipulating items from both sides
Fix for bug on moving thru rack in different elevations ( as pedestal )


Every object have defined:
1/ posibility to party/monster can move thru rack
object.mamdata.setCanMoveThru(val) / object.mamdata.getCanMoveThru()
2/ definition if is this object only decoration (not possibe to put/take items from it)
object.mamdata.setDecoration(val) / object.mamdata.getDecoration()
3/ possibility to insert item without suitible position to surface
object.mamdata.setUseSurface(val) / object.mamdata.getUseSurface()
This definitions is possible set in dung editor in embedet scipt in function Seting.

Definitions of item positions for object.name are in mam.lua file in table MAM_socket
DEFINITIONS:
MAM_socket[object.name][socketName] -> some name of position
.items -> name of kind of items defined in MAM_Items table
.pos -> position offset from object.position
.rot -> rotation offset from object.rotaton
.fill -> some internal name for fill place in rack
.inBlock -> table of fill names (if is present in rack item with one of list fill parameter isnt possible to insert new item to this position)
.inNeed -> table of fill names (in rack must be items ocupated all listed fill positions for insertinf item to this position)
.reBlock -> table of fill names ( if some listed fill is ocupated isnt possible to take item from this place)
.reNeed -> table of fill names (in rack must be items ocupated all listed fill positions for taking item from this position)
functions of bloking insert/take items is easy visible in ledgerack definition for creating "chimney of cloth" -> line 168 of mam.lua)