User contributions for Craig
Jump to navigation
Jump to search
6 December 2008
- 14:5514:55, 6 December 2008 diff hist −19 clearLights →Function clearLights
- 14:5414:54, 6 December 2008 diff hist −19 bringToFront →Function bringToFront
- 01:2201:22, 6 December 2008 diff hist +34 macros:Functions:list of functions →I
2 December 2008
- 01:0001:00, 2 December 2008 diff hist +311 N initiativeSize New page: ==Function initiativeSize== Returns the number of tokens in the Initiative:initiative panel ===Usage=== <source lang="mtmacro" line> [h: num = initiativeSize()] </source> ===Exampl...
- 00:5800:58, 2 December 2008 diff hist +440 N indexValueStrProp New page: ==Function indexValueStrProp== Returns the value from the specified string property list at the specified index. The index for the [[Macros:string property ...
- 00:5800:58, 2 December 2008 diff hist 0 indexKeyStrProp No edit summary
- 00:5700:57, 2 December 2008 diff hist +795 N indexOf New page: ==Function indexOf== {{ProposedChange}} Returns the index of a substring in the specified string. If the substring does not occur within the string then -1 is returned. If you do not speci...
- 00:5000:50, 2 December 2008 diff hist +430 N indexKeyStrProp New page: ==Function indexKeyStrProp== Returns the key from the specified Macros:string property list at the specified index. The index for the Macros:string property list starts at 0. ==...
- 00:4600:46, 2 December 2008 diff hist +532 N if New page: ==Function if== If testCondition evaluates to 0 then the result of falseExpr is returned, otherwise the result of trueExpr is returned. Note: '''both''' trueExpr and falseExpr are evaluate...
- 00:2700:27, 2 December 2008 diff hist +2 hypotenuse Redirecting to Macros:Functions:hypot
- 00:2600:26, 2 December 2008 diff hist +34 N hypotenuse New page: #REDIRECT [Macros:Functions:hypot]
- 00:2600:26, 2 December 2008 diff hist +420 N hypot New page: ==Function hypot== Returns the hypotenuse of a right triangle whos other two sides have a length of sideA and sideB. The formula used to calculate the hypotnese is, h^2 = sideA^2 * sideB^2...
- 00:2200:22, 2 December 2008 diff hist +336 N hex New page: ==Function hex== Returns a string which contains the hexadecimal representation of the number that was passed in. ===Usage=== <source lang="mtmacro" line> [h: hexVal = hex(num) </source> ...
- 00:1600:16, 2 December 2008 diff hist +1 hasProperty No edit summary
- 00:1600:16, 2 December 2008 diff hist +190 N hasSight New page: ==Function hasSight== {{ProposedChange}} Returns 1 if the current Token:token has Token:sight. ===Usage=== <source lang="mtmacro" line> [h: sight = hasSight()] </source>
- 00:1500:15, 2 December 2008 diff hist +255 N hasProperty New page: ==Function hasProperty== {{ProposedChange}} Returns 1 if the Token:token property with the specified name exits on the current Token:token. ===Usage=== <source lang="mtmacro" li...
- 00:1300:13, 2 December 2008 diff hist +14 hasMacro No edit summary
- 00:1300:13, 2 December 2008 diff hist +214 N hasMacro New page: ==Function hasMacro== {{ProposedChange}} Returns 1 if a macro button with the specified label exists on the current Token:token. ===Usage=== <source lang="mtmacro" line> [h: hasM...
- 00:1100:11, 2 December 2008 diff hist +67 hasLightSource No edit summary
- 00:0800:08, 2 December 2008 diff hist +1,454 N hasLightSource New page: ==Function hasLightSource== {{ProposedChange}} Returns 1 if the current Token:token has any LightSource:light sources that match the criteria passed in or 0 if there are no match...
- 00:0200:02, 2 December 2008 diff hist +201 N hasImpersonated New page: ==Function hasImpersonated== {{ProposedChange}} Returns 1 if there is an impersonated token otherwise returns 0. ===Usage=== <source lang="mtmacro" line> [h: hasImp = hasImpersonated...
- 00:0000:00, 2 December 2008 diff hist +818 N getWithStateNames New page: ==Function getWithStateNames== {{ProposedChange}} {{TrustedOnlyFunction}} Gets a string list containing the names of all the tokens on the current [...
1 December 2008
- 23:5923:59, 1 December 2008 diff hist +12 getWithState No edit summary
- 23:5923:59, 1 December 2008 diff hist +774 N getWithState New page: ==Function getWithState== {{ProposedChange}} {{TrustedOnlyFunction}} Gets a string list containing the ids of all the tokens on the current [[Map:ma...
- 23:5723:57, 1 December 2008 diff hist +268 N getVisible New page: ==Function getVisible== {{TrustedOnlyFunction}} Returns 1 if the Token:visible to players flag is set on the current Token:token otherwise returns 0. ===Usage=== <source lang="m...
- 23:5423:54, 1 December 2008 diff hist +660 N getTokens New page: ==Function getTokens== {{ProposedChange}} {{TrustedOnlyFunction}} Gets a string list containing the ids of all the tokens on the current [[Map:map|m...
- 23:5323:53, 1 December 2008 diff hist +683 N getTokenNames New page: ==Function getTokenNames== {{ProposedChange}} {{TrustedOnlyFunction}} Gets a Macros:string list containing the names of all the Token:tokens on the current Map:map. ===Usa...
- 23:5023:50, 1 December 2008 diff hist +336 N getTokenImage New page: ==Function getTokenImage== Returns the asset id for the for the current Token:token. ===Usage=== <source lang="mtmacro" line> [h: assetId = getTokenImage()] </source> ===Examp...
- 23:4923:49, 1 December 2008 diff hist +492 N getStrProp New page: ==Function getStrProp== Returns the value associated with a key from the specified Macros:string property list. ==Usage== <source lang="mtmacro" line> [h: macros = getStrProp(propL...
- 23:4523:45, 1 December 2008 diff hist +399 N macros:Functions:getStateImage New page: ==Function getStateImage== Returns the asset id for the image that is used to represent the specified token state. ===Usage=== <source lang="mtmacro" line> [h: asset...
- 23:4123:41, 1 December 2008 diff hist +13 getSpeechNames No edit summary
- 23:4123:41, 1 December 2008 diff hist +10 getSpeech No edit summary
- 23:4123:41, 1 December 2008 diff hist +13 getSightType No edit summary
- 23:4023:40, 1 December 2008 diff hist +12 getSelectedNames No edit summary
- 23:4023:40, 1 December 2008 diff hist +12 getSelected No edit summary
- 23:3923:39, 1 December 2008 diff hist −1 getState No edit summary
- 23:3923:39, 1 December 2008 diff hist +341 N getState New page: ==Function getState== Returns 1 if the specified Token:state is set on the current Token:token otherwise it returns 0. ===Usage=== <source lang="mtmacro" line> [h: isSet = getSt...
- 23:3523:35, 1 December 2008 diff hist +7 getSpeechNames No edit summary
- 23:3523:35, 1 December 2008 diff hist +635 N getSpeechNames New page: ==Function getSpeechNames== {{ProposedChange}} Returns a string list containing the Token:speech names of the current Token:token. <source lang="mtmacro" ...
- 23:3323:33, 1 December 2008 diff hist +185 N getSpeech New page: ==Function getSelected== {{ProposedChange}} Returns the Token:speech value from the current Token:token. <source lang="mtmacro" line> [h: speech = getSpeech()] </source>
- 23:3123:31, 1 December 2008 diff hist +289 N getSize New page: ==Function geSize== {{ProposedChange}} Returns the Token:size of the current Token:token. The sizes returned are * Diminutive * Tiny * Small * Medium * Large * Huge * Giant * Gar...
- 23:2823:28, 1 December 2008 diff hist +198 N getSightType New page: ==Function getSightType== {{ProposedChange}} Returns the type of Token:sight that the current Token:token has. <source lang="mtmacro" line> [h: macros = getSightType()] </source>
- 23:2623:26, 1 December 2008 diff hist +676 N getSelectedNames New page: ==Function getSelectedNames== {{ProposedChange}} {{TrustedOnlyFunction}} Returns a string list containing the names of the selected Token:NPC tokens on the cur...
- 23:2623:26, 1 December 2008 diff hist +659 N getSelected New page: ==Function getSelected== {{ProposedChange}} {{TrustedOnlyFunction}} Returns a string list containing the ids of the selected Token:NPC tokens on the current [[...
- 23:2423:24, 1 December 2008 diff hist +205 N getPropertyType New page: ==Function getPropertyType== {{ProposedChange}} Returns the Token:property type of the current Token:token. <source lang="mtmacro" line> [h: type = getPropertyType()] </source>
- 23:2223:22, 1 December 2008 diff hist −24 getPropertyNames No edit summary
- 23:2223:22, 1 December 2008 diff hist +702 N getPropertyNames New page: ==Function getPropertyNames== {{ProposedChange}} {{TrustedOnlyFunction}} Returns a Macros:string list containing the names of the names of the properties on the cu...
- 23:1923:19, 1 December 2008 diff hist +345 N getPropertyDefault New page: ==Function getPropertyDefault== {{ProposedChange}} Returns the default value of a token property. If the [[Campaign:property defaul...
- 23:1723:17, 1 December 2008 diff hist +348 N getProperty New page: ==Function getProperty== {{ProposedChange}} Returns the value of a token property. If the token property contains nothing then an empty string ("") ...
- 23:1423:14, 1 December 2008 diff hist +380 N getPlayerName New page: ==Function getPlayerName== {{ProposedChange}} Returns the name of the player for the client that it executes on. <source lang="mtmacro" line> [h: name = getPlayerName()] </source> T...
- 23:1323:13, 1 December 2008 diff hist −5 getNPC No edit summary
- 23:1323:13, 1 December 2008 diff hist −4 getPC No edit summary
- 23:1223:12, 1 December 2008 diff hist +629 N getPC New page: ==Function getPCs== {{ProposedChange}} {{TrustedOnlyFunction}} Returns a string list containing the ids of the PC tokens on the current [[Map:map...
- 23:1223:12, 1 December 2008 diff hist +653 N getPCNames New page: ==Function getPCNames== {{ProposedChange}} {{TrustedOnlyFunction}} Returns a string list containing the names of the Token:PC tokens on the current [[Map:map|m...
- 23:0823:08, 1 December 2008 diff hist +588 N getOwners New page: ==Function getOwners== {{ProposedChange}} Returns a Macros:string list containing the names of the owners of the current Token:token. <source lang="mtmacro" line> [h: names = g...
- 23:0623:06, 1 December 2008 diff hist +211 Main Page No edit summary
- 23:0323:03, 1 December 2008 diff hist −2 getOwned No edit summary
- 23:0223:02, 1 December 2008 diff hist +735 N getOwnedNames New page: ==Function getOwnedNames== {{ProposedChange}} {{TrustedOnlyFunction}} Returns a Macros:string list containing the names of the Token:tokens on the current Map:map that are ...
- 23:0123:01, 1 December 2008 diff hist +713 N getOwned New page: ==Function getOwned== {{ProposedChange}} {{TrustedOnlyFunction}} Returns a Macros:string list containing the ids of the Token:tokens on the current Map:map that are owned b...
- 22:5822:58, 1 December 2008 diff hist +187 N getNotes New page: ==Function getNotes== {{ProposedChange}} Returns the token notes for the current Token:token. <source lang="mtmacro" line> [h: macros = getNotes()] </source>
- 22:5722:57, 1 December 2008 diff hist +139 N getName New page: ==Function getName== Returns the name of the current Token:token. <source lang="mtmacro" line> [h: macros = getName()] </source>
- 22:5622:56, 1 December 2008 diff hist +637 N getNPC New page: ==Function getNPCs== {{ProposedChange}} {{TrustedOnlyFunction}} Returns a Macros:string list containing the ids of the Token:NPC tokens on the current Map:map. <source lan...
- 22:5422:54, 1 December 2008 diff hist +661 N getNPCNames New page: ==Function getNPCNames== {{ProposedChange}} {{TrustedOnlyFunction}} Returns a Macros:string list containing the names of the Token:NPC tokens on the current Map:map. <sour...
- 22:4522:45, 1 December 2008 diff hist +615 N getMacros New page: ==Function getMacros== {{ProposedChange}} Returns a Macros:string list of the labels of all of the macro buttons on the Token:current token. ===Usage=== <source lang="mtmacro"...
- 22:4122:41, 1 December 2008 diff hist 0 getMacroProps No edit summary
- 22:4122:41, 1 December 2008 diff hist +1,505 N getMacroProps New page: ==Function getMacroProps== {{ProposedChange}} Returns a Macros:string property list of the properties for a macro button for the current Token:token. You can retrieve the ind...
- 22:3522:35, 1 December 2008 diff hist +12 createMacro No edit summary
- 22:3322:33, 1 December 2008 diff hist +565 N getMacroName New page: ==Function getMacroName== {{ProposedChange}} Returns the name of the macro being executed via [macro():] . If the macro typed into chat, run by clicking on a [[macro...
- 22:3322:33, 1 December 2008 diff hist +10 getMacroLocation No edit summary
- 22:3122:31, 1 December 2008 diff hist +569 N getMacroLocation New page: ==Function getMacroLocation== {{ProposedChange}} Returns the location of the macro being executed via [macro():] . If the macro typed into chat, run by clicking on a...
- 22:2722:27, 1 December 2008 diff hist +441 N getMacroIndexes New page: ==Function getMacroIndexes== {{ProposedChange}} Returns a Macros:string list of the macro buttons on the current Token:token that have the specified label. ===Usage=== <sourc...
- 22:2422:24, 1 December 2008 diff hist −24 getMacroCommand No edit summary
- 22:2322:23, 1 December 2008 diff hist +386 N getMacroCommand New page: ==Function getMacroCommand== {{ProposedChange}} {{TrustedOnlyFunction}} Returns the command that would be executed for a macro button on the current Token:token. The [[Macros:Func...
- 22:1422:14, 1 December 2008 diff hist +47 getLights No edit summary
- 22:1322:13, 1 December 2008 diff hist +1,323 N getLights New page: ==Function getLights== {{ProposedChange}} Returns a Macros:string list containing the names of the Map:light sources that are on for the current Token:token. ===Usage=== <s...
- 21:5621:56, 1 December 2008 diff hist +921 N getLibProperty New page: ==Function getLibProperty== {{ProposedChange}} {{TrustedOnlyFunction}} Returns the value of a Token:token property from a Token:library token. If the lib argument is not specifie...
- 21:4921:49, 1 December 2008 diff hist +284 N getLayer New page: ==Function getLayer== {{ProposedChange}} Returns the Map:map layer that the current Token:token is on. The Map:map layer is one of: * TOKEN * BACKGROUND * GM * OBJECT ===Us...
- 21:4721:47, 1 December 2008 diff hist +171 N getLabel New page: ==Function getLabel== Returns the Token:label for the current Token:token. ===Usage=== <source lang="mtmacro" line> [h: label = getLabel()] </source>
- 21:4521:45, 1 December 2008 diff hist +329 N getInitiativeRound New page: ==Function getInitiativeRound== Returns the current Initiative:round number in the Initiative:initiative panel ===Usage=== <source lang="mtmacro" line> [h: round = getInitiative...
- 21:4221:42, 1 December 2008 diff hist +482 N getInitiativeHold New page: ==Function getInitiativeHold== Returns if the Token:token is on Initiative:hold in the Initiative:initiative panel or not. This function will return 1 if the [[Token:token|...
- 21:3921:39, 1 December 2008 diff hist +288 N getInitiative New page: ==Function getInitative== Returns the Iniatiative:initiative of the current Token:token ===Usage=== <source lang="mtmacro" line> [h: init = getInitiative()] </source> ===Examp...
- 21:3521:35, 1 December 2008 diff hist +181 N getImpersonatedName New page: ==Function getImpersonated== {{ProposedChange}} Returns the name of the impersonated token. ===Usage=== <source lang="mtmacro" line> [h: name = getImpersonatedName()] </source>
- 21:3421:34, 1 December 2008 diff hist +12 currentToken No edit summary
- 21:3221:32, 1 December 2008 diff hist +178 N getImpersonated New page: ==Function getImpersonated== {{ProposedChange}} Returns the id of the impersonated token. ===Usage=== <source lang="mtmacro" line> [h: tokenId = getImpersonated()] </source>
- 21:3021:30, 1 December 2008 diff hist −1 Image Token No edit summary
- 21:3021:30, 1 December 2008 diff hist +711 N Image Token New page: ==Image Token=== An image Token:token is a Token:token whose name starts with the string "image:" -- case is not important. These Token:tokens can appear on any Map:map...
- 21:2421:24, 1 December 2008 diff hist +407 N getImage New page: ==Function getImage== {{ProposedChange}} Returns the asset id for the image of an Token:image token. ===Usage=== <source lang="mtmacro" line> [h: asset = getImage(name)] </sourc...
- 21:2021:20, 1 December 2008 diff hist +562 N getHalo New page: ==Function getHalo== Gets the value of the specified Token:halo for the Token:token. The value returned is a string that represents the hexadecimal value of the color of the halo...
- 21:0421:04, 1 December 2008 diff hist +3 getGroupEnd No edit summary
- 21:0421:04, 1 December 2008 diff hist +2 getGroupStart No edit summary
- 21:0321:03, 1 December 2008 diff hist +5 getGroupStart No edit summary
- 21:0321:03, 1 December 2008 diff hist +990 N getGroupStart New page: ==Function getGroupEnd== {{ProposedChange}} Returns the start index of the specified capture group for the specified match that was found using strfind() ==...
- 21:0021:00, 1 December 2008 diff hist +965 N getGroupEnd New page: ==Function getGroupEnd== {{ProposedChange}} Returns the end index of the specified capture group for the specified match that was found using strfind() ===U...
- 20:5620:56, 1 December 2008 diff hist +443 N getGroupCount New page: ==Function getGroupCount== {{ProposedChange}} Returns the number of capture groups for the match performed by strfind(). ===Usage=== <source lang="mtmacro" l...
- 20:5320:53, 1 December 2008 diff hist +906 N getGroup New page: ==Function getGroup== {{ProposedChange}} Returns the specified capture group for the specified match that was found using strfind() ===Usage=== <source lang...
- 20:4420:44, 1 December 2008 diff hist +6 getGMNotes No edit summary
- 20:4420:44, 1 December 2008 diff hist +210 N getGMNotes New page: ==Function getGMNotes== {{ProposedChange}} {{TrustedOnlyFunction}} Returns the Token:GM notes from a Token:token. ===Usage=== <source lang="mtmacro" line> [h: notes = getGMNote...
- 20:4320:43, 1 December 2008 diff hist +170 N getGMName New page: ==Function getGMName== {{TrustedOnlyFunction}} Returns the GM Name of a Token:token. ===Usage=== <source lang="mtmacro" line> [h: name = getGMName()] </source>
- 20:3920:39, 1 December 2008 diff hist +459 N getFindCount New page: ==Function getFindCount== {{ProposedChange}} Returns the number of times that strfind() was able to match the input string. ===Usage=== <source lang="mtmacro...
- 20:3220:32, 1 December 2008 diff hist +783 N getExposedTokens New page: ==Function getExposedTokens== {{ProposedChange}} {{TrustedOnlyFunction}} Gets a string list containing the ids of all of the tokens on the current [[...