Conditions Selections

XLua contains limited support for reading and writing MMF's internal selection list (the invisible list of objects that get "selected" by the conditions in an event).  These conditions behave more like actions and can either save a snapshot of the selection list, or write back a new selection list that was put together with Lua code.

Capture Selection List

This is a hybrid condition/action that saves a list of fixed IDs of selected objects in a specified Lua table. Only objects selected by other conditions above the "Capture Selection List" condition will be saved. Therefor the position of this condition is very important and typically should be the last condition in the list. Selected items will be saved before any actions are executed by the event.

Parameters

String Destination variable

Capture Selections By Type

This is a hybrid condition/action that saves a list of fixed IDs of selected objects in a specified Lua table. Only objects of the specified type that are selected by other conditions above the "Capture Selection List" condition will be saved. Therefor the position of this condition is very important and typically should be the last condition in the list. Selected items will be saved before any actions are executed by the event.

Parameters

Object Object or group to filter by
String Destintion variable

Restore Selection List

This is a hybrid condition/action that sets the internal selected object list from a table of fixed values. This should typically be the only selecting condition in the event, although you may further refine the selection by adding other selecting conditions below it. This condition would typically be paired with an XLua On Function condition.

Parameters

String Source variable

Copyright 2010 Justin Aquadro