User contributions for Craig
Jump to navigation
Jump to search
13 December 2008
- 12:0712:07, 13 December 2008 diff hist +224 N sendToBack New page: ==Function sendToBack== Moves the current token behind of all of the other tokens on the same map layer. ===Usage=== <source lang="mtmacr...
- 12:0612:06, 13 December 2008 diff hist +254 N resetProperty New page: ==Function resetProperty== Resets the specified Token:token property so that it is empty and will return the default value when queried (if it has one). ===Usage=== <source lang="m...
- 12:0312:03, 13 December 2008 diff hist +633 N replace New page: ==Function replace== Returns the string with the occurrences of a pattern replaced by the specified value. If the number of times to perform the replacement is not specified then all occu...
- 11:5811:58, 13 December 2008 diff hist +241 N removeFromInitiative New page: ==Function removeFromInitiative== Removes the Token:Current Token from the Initiative:Initiative Panel. ===Usage=== <source lang="mtmacro" line> [h: removeFromInitiative(n...
- 11:5611:56, 13 December 2008 diff hist +383 N removeAllPCsFromInitiative New page: ==Function removeAllNCsFromInitiative== {{GMOnlyFunction}} Removes all of the Token:PC Tokens from the Initiative Panel. This function ...
- 11:5511:55, 13 December 2008 diff hist +387 N removeAllNPCsFromInitiative New page: ==Function removeAllNPCsFromInitiative== {{GMOnlyFunction}} Removes all of the Token:NPC Tokens from the Initiative Panel. This functio...
- 11:5411:54, 13 December 2008 diff hist +19 removeAllFromInitiative No edit summary
- 11:5311:53, 13 December 2008 diff hist +342 N removeAllFromInitiative New page: ==Function removeAllFromInitiative== Removes all of the Token:Tokens from the Initiative:Initiative Panel. This function returns the number of Token:Tokens that were removed...
- 11:4711:47, 13 December 2008 diff hist +556 N nextInitiative New page: ==Function nextInitiative== Advances the initiative to the next Token:Token in the Initiative:Initiative Panel. Only the GM or the owner of the Token:Token that current...
- 11:4311:43, 13 December 2008 diff hist +305 N multiply New page: ==Function multiply== Returns the numbers that are passed in multiplied together. ===Usage=== <source lang="mtmacro" line> [h: val = multiply(num, num, ...)] </source> ===Examples=== <...
- 11:4111:41, 13 December 2008 diff hist +297 N min New page: ==Function min== Returns the smallest of the numbers that are passed in. ===Usage=== <source lang="mtmacro" line> [h: smallest = min(num, num, ...)] </source> ===Examples=== <sour...
- 11:3911:39, 13 December 2008 diff hist +628 N median New page: ==Function median== Returns the wp:Median of the numbers passed in. The median value is the value where half the numbers in the list are higher or equal to it and the other half are ...
- 11:3511:35, 13 December 2008 diff hist +349 N macros:Functions:mean New page: ==Function mean== Returns the average(mean) of the numbers that are passed in. ===Usage=== <source lang="mtmacro" line> [h: av = avg(num, num, ...)] [h: av = avgera...
- 11:3211:32, 13 December 2008 diff hist +307 N max New page: ==Function max== Returns the largest number of all the numbers that have been passed n. ===Usage=== <source lang="mtmacro" line> [h: largest = max(num, num, ...)] </source> ===Examples...
- 11:2911:29, 13 December 2008 diff hist +566 N matches New page: ==Function matches== Returns 1 if a string matches pattern or 0 if it does not. The pattern can be a Macros:regular expression. Matches performs a while string comparison, so the patt...
- 11:2111:21, 13 December 2008 diff hist +4 macroLink No edit summary
- 11:2011:20, 13 December 2008 diff hist +1,875 N macroLinkText New page: ==Function macroLinkText== Creates the text that would appear in a HTML tag for a link which will run the specified macro when clicked on. This is useful for callbacks in [[Macro:Roll:dia...
- 11:0711:07, 13 December 2008 diff hist +1,499 N macroLink New page: ==Function macroLink== Creates the HTML for a link which will run the specified macro when clicked on. ===Usage=== <source lang="mtmacro" line> [r: = macroLink(text, macro)] [r: = mac...
- 10:4710:47, 13 December 2008 diff hist +425 N lower New page: ==Function lower== Returns the lower case version of a string. If the number of characters is not specified then the whole string is converted to lower case. ===Usage=== <source lang="mtm...
- 10:4210:42, 13 December 2008 diff hist +34 N log10 Redirecting to Macros:Functions:log
- 10:4110:41, 13 December 2008 diff hist +292 N macros:Functions:log New page: ==Function log== Returns the logarithm of base 10 of a number. ===Usage=== <source lang="mtmacro" line> [h: val = log(num)] [h: val = log10(num)] </source>...
- 10:3810:38, 13 December 2008 diff hist +284 N ln New page: ==Function ln== Returns the natural logarithm of a number. ===Usage=== <source lang="mtmacro" line> [h: val = ln(num)] </source> ===Examples=== <source lang="mt...
- 10:2810:28, 13 December 2008 diff hist +1 listReplace No edit summary
- 10:2810:28, 13 December 2008 diff hist +633 N listReplace New page: ==Function listReplace== Replaces the element at the specified index of a Macros:string list with a new value. If a delimiter is not specified then the default value of ',' is used. ...
- 10:2510:25, 13 December 2008 diff hist +4 listInsert No edit summary
- 10:2310:23, 13 December 2008 diff hist +595 N listInsert New page: ==Function listInsert== Inserts a value into the Macros:string list at the specified index. If a delimiter is not specified then the default value of ',' is used. The index for lists...
6 December 2008
- 16:3816:38, 6 December 2008 diff hist +622 N listGet New page: ==Function listGet== Returns the value in the string list at the specified index. The index for a Macros:string list starts at 0. ===Usage=== <source lang="mt...
- 16:3216:32, 6 December 2008 diff hist +713 N listFind New page: ==Function listFind== Returns the index of the first occurrence of a value in a string list. If the value is not found then -1 is returned. ===Usage=== <source lan...
- 16:2616:26, 6 December 2008 diff hist +2 listDelete →Usage
- 16:2616:26, 6 December 2008 diff hist +540 N listDelete New page: ==Function listDelete== Returns a string list with the specified item deleted from it. The index for the Macros:string list ===Usage=== <source lang="mtmacro...
- 16:1616:16, 6 December 2008 diff hist +540 N listCount New page: ==Function listAppend== Returns the number of items in a Macros:string list. ===Usage=== <source lang="mtmacro" line> [h: count = listCount(list, value)] [h: count = listCount(list, ...
- 16:1416:14, 6 December 2008 diff hist +637 N listAppend New page: ==Function listAppend== Returns a Macros:string list with a value appended to the end of the Macros:string list. ===Usage=== <source lang="mtmacro" line> [h: list = listAppend(...
- 16:0916:09, 6 December 2008 diff hist +217 N length New page: ==Function length== Returns the length of a string. ===Usage=== <source lang="mtmacro" line> [h: len = len(str, substr)] </source> ===Example=== <source lang="mtmacro" line> [r, length(...
- 16:0816:08, 6 December 2008 diff hist −6 lastIndexOf No edit summary
- 16:0616:06, 6 December 2008 diff hist +474 N lastIndexOf New page: ==Function lastIndexOf== Finds the index in a string of the last occurrence of a substring in a string. If the substring does not occur in the string then -1 is returned. The index for th...
- 16:0516:05, 6 December 2008 diff hist −127 isTrusted No edit summary
- 15:5615:56, 6 December 2008 diff hist +470 N isTrusted New page: ==Function isTrusted== Returns 1 if this is running as a trusted macro or 0 if it is not. ===Usage=== <source lang="mtmacro" line> [h: trusted = isTrusted()] </s...
- 15:5115:51, 6 December 2008 diff hist +446 N isPropertyEmpty New page: ==Function isPropertyEmpty== Returns 1 if the Token:token property is empty. A Token:token property is empty if it is null, if an empty string ("") has been assigned to it, it i...
- 15:3315:33, 6 December 2008 diff hist +241 N isPC New page: ==Function isPC== Returns 1 if the Token:token is a PC or 0 if it not. ===Usage=== <source lang="mtmacro" line> [h: pc = isPC()] </source> ===Examples=== <source lang="mtmacro" li...
- 15:3015:30, 6 December 2008 diff hist +262 N isOwner New page: ==Function isOwner== Returns 1 if the Player is and owner of the Token:token. ===Usage=== <source lang="mtmacro" line> [h: owner = isOwner()] </source> ===Examples=== <source ...
- 15:2915:29, 6 December 2008 diff hist −3 isOwnedByAll →Function isNPC
- 15:2915:29, 6 December 2008 diff hist +306 N isOwnedByAll New page: ==Function isNPC== Returns 1 if the Token:token has the Token:owned by all check box is checked. ===Usage=== <source lang="mtmacro" line> [h: byAll = isOwnedByAll()] </source> ...
- 15:2815:28, 6 December 2008 diff hist +16 isNPC No edit summary
- 15:2715:27, 6 December 2008 diff hist +29 isBarVisible No edit summary
- 15:2515:25, 6 December 2008 diff hist +158 N isNumber New page: ==Function isNumber== Returns 1 if the parameter is a number, or 0 if it is not. ===Usage=== <source lang="mtmacro" line> [h: num = isNumber(val)] </source>
- 15:2415:24, 6 December 2008 diff hist +232 N isNPC New page: ==Function isNPC== Returns 1 if the token is a NPC or 0 if it not. ===Usage=== <source lang="mtmacro" line> [h: npc = isNPC()] </source> ===Examples=== <source lang="mtmacro" line> [r,...
- 15:2115:21, 6 December 2008 diff hist +235 N isGM New page: ==Function isGM== Returns 1 if the player is a GM or 0 if they are not. ===Usage=== <source lang="mtmacro" line> [h: gm = isGM()] </source> ===Examples=== <source lang="mtmacro" line> I...
- 15:1815:18, 6 December 2008 diff hist 0 isBarVisible →Function isBarVisible
- 15:1615:16, 6 December 2008 diff hist +174 N isBarVisible New page: ==Function isBarVisible== Returns 1 if the Token Bar is visible or 0 if it is not. ===Usage=== <source lang="mtmacro" line> [h: vis = isBarVisible()] </source>
- 15:1215:12, 6 December 2008 diff hist −18 hasSight →Function hasSight