User:Verisimilar: Difference between revisions
Jump to navigation
Jump to search
Verisimilar (talk | contribs) |
Verisimilar (talk | contribs) mNo edit summary |
||
Line 4: | Line 4: | ||
assert | assert | ||
pow | pow | ||
===Keeping track of in-progress version updates=== | |||
1.3b49 | |||
you can now use <link rel='onChangeToken' type='macro' href='linkToMacro'> | |||
1.3b51 | |||
Macro Functions that can reference other tokens | |||
The following macro functions can now accept an optional last parameter which is the token to get the the information from or to modify. You can only specify the token if the macro is trusted. | |||
* getMacroIndexes(label [, delim [, id]]) | |||
* getMacroCommand(index [, id)] | |||
* createMacro(label, command [, props [, delim [, id]]]) | |||
* createMacro(json [, id]) | |||
* setMacroProps(button, props [, delim [, id]]) | |||
* setMacroCommand(index, command [, id]) | |||
* removeMacro(index [, id]) | |||
* command (json only) | |||
* getGMName([id]) | |||
* getHalo([id]) | |||
* setHalo(halo, [id]) | |||
* getState(state [,id]) | |||
* setState(state, val [,id]) | |||
* setAllStates(val [,id]) | |||
* getVisible([id]) | |||
* setVisible(val [, id]) | |||
* getPropertyType([id]) | |||
* setPropertyType(type, [id]) | |||
* getPropertyNames([delim [, id]]) | |||
* hasProperty(name [, id]]) | |||
* isPC([id]) | |||
* isNPC([id]) | |||
* setPC([id]) | |||
* setNPC([id]) | |||
* getLayer([id]) | |||
* setLayer(layer [, id]) | |||
* getSize([id]) | |||
* setSize(size [,id]) | |||
* getOwners(delim [, id]) | |||
* isOwnedByAll(delim [,id]) | |||
* isOwner(player [, id]) | |||
* resetProperty(prop [, id])] | |||
* setProperty(name, val [, id]) | |||
* getProperty(name [, id]) | |||
* isPropertyEmpty(name [, id]) | |||
* bringToFrong([id]) | |||
* sendToBack([id]) | |||
* getLabel([id]) | |||
* setLabel([id]) | |||
Assert function. | |||
Assert now has an optional 3rd argument assert(test, message [, showPrefix]) | |||
If a 0 is passed the message prefix for the assert error "Macro defined error: " | |||
is not displayed | |||
json.contains now works for json arrays and not only for json objects. |
Revision as of 23:48, 24 March 2009
List of function that aren't highlighting properly
assert pow
Keeping track of in-progress version updates
1.3b49
you can now use <link rel='onChangeToken' type='macro' href='linkToMacro'>
1.3b51
Macro Functions that can reference other tokens The following macro functions can now accept an optional last parameter which is the token to get the the information from or to modify. You can only specify the token if the macro is trusted.
* getMacroIndexes(label [, delim [, id]]) * getMacroCommand(index [, id)] * createMacro(label, command [, props [, delim [, id]]]) * createMacro(json [, id]) * setMacroProps(button, props [, delim [, id]]) * setMacroCommand(index, command [, id]) * removeMacro(index [, id]) * command (json only) * getGMName([id]) * getHalo([id]) * setHalo(halo, [id]) * getState(state [,id]) * setState(state, val [,id]) * setAllStates(val [,id]) * getVisible([id]) * setVisible(val [, id]) * getPropertyType([id]) * setPropertyType(type, [id]) * getPropertyNames([delim [, id]]) * hasProperty(name [, id]]) * isPC([id]) * isNPC([id]) * setPC([id]) * setNPC([id]) * getLayer([id]) * setLayer(layer [, id]) * getSize([id]) * setSize(size [,id]) * getOwners(delim [, id]) * isOwnedByAll(delim [,id]) * isOwner(player [, id]) * resetProperty(prop [, id])] * setProperty(name, val [, id]) * getProperty(name [, id]) * isPropertyEmpty(name [, id]) * bringToFrong([id]) * sendToBack([id]) * getLabel([id]) * setLabel([id])
Assert function.
Assert now has an optional 3rd argument assert(test, message [, showPrefix])
If a 0 is passed the message prefix for the assert error "Macro defined error: "
is not displayed
json.contains now works for json arrays and not only for json objects.