User:Verisimilar: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 9: Line 9:


you can now use <link rel='onChangeToken' type='macro' href='linkToMacro'>
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.
    * 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 05:32, 31 March 2009

/Sandbox

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'>