Each time script executed it has access to the next global values, which can be changed between launches:
- CallParam – holds value, defined into XML descriptor file. It’s a way to define different features using same script. Changing of this value will affect nothing, furthemore will be lost on next script’s call.
- Selected – it’s a table of tables. Holds selected by user cells into view. Can be empty if nothing selected. Numbering starts from 1 and usually equals to block number (but not guranteed because of other scripts, which may add “invisible” blocks), each element has 2 fields “Row” and “Col”. Changing of those values will affect nothing, furthemore will be lost on next script’s call. Consider it as read-only. Example:
for k,v in pairs(Selected) do
logOut(string.format(“%u,%u”,v.Col,v.Row));
end
- Other global constants to use with functions, which are described into corresponding sections of this guide.