This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ———————————————————————————————————————————————————————————————————————————————————————————————————— | |
| BBEDIT/TEXTWRANGLER REGULAR EXPRESSION GUIDE MODIFIED 2016/02/29 17:26 | |
| ———————————————————————————————————————————————————————————————————————————————————————————————————— | |
| NOTES: | |
| The PCRE engine (Perl Compatible Regular Expressions) is what BBEdit and TextWrangler use. | |
| Items I'm unsure of are marked '# PCRE?'. The list while fairly comprehensive is not complete. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ############################################################### | |
| ### Universal Skills PC/NPC | |
| ############################################################### | |
| @{selected|wtype}&{template:simple} @{selected|rtype}?{Skill | |
| |Acrobatics,+[[(@{selected|acrobatics_bonus}@{selected|pbd_safe}*(1-ceil((@{selected|npc})*0.00001)))+(@{selected|npc_acrobatics}*@{selected|npc})]][ACRO] ]]}} {{rname=^{acrobatics-u}}} {{mod=[[ [[(@{selected|acrobatics_bonus}@{selected|pbd_safe}*(1-ceil((@{selected|npc})*0.00001)))+(@{selected|npc_acrobatics}*@{selected|npc})]][ACRO] ]]}} {{r1=[[@{selected|d20}+[[(@{selected|acrobatics_bonus}@{selected|pbd_safe}*(1-ceil((@{selected|npc})*0.00001)))+(@{selected|npc_acrobatics}*@{selected|npc})]][ACRO] ]] | |
| |Animal Handling,+[[(@{selected|animal_handling_bonus}@{selected|pbd_safe}*(1-ceil((@{selected|npc})*0.00001)))+(@{selected|npc_animal_handling}*@{selected|npc})]][ANIM] ]]}} {{rname=^{animal-handling-u}}}{{mod=[[ (@{selected|animal_hand |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| !token-mod {{ | |
| --on showname light_hassight showname | |
| --off isdrawing | |
| --set | |
| name|"@{selected|character_name} %%NUMBERED%%" | |
| bar1_link|AC | |
| bar3_value|@{selected|HP} | |
| bar3_max|@{selected|HP|max} | |
| light_radius|?{Light|60} | |
| light_dimradius|=?{Dim at|-5} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on('ready',function(){ | |
| "use strict"; | |
| on('chat:message',function(msg){ | |
| var content,token,character,bio,who; | |
| if('api' === msg.type && msg.content.match(/^!inspect/) ){ | |
| content = msg.content.split(/\s+/); | |
| token=getObj('graphic',content[1]); | |
| if(token){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on('ready',()=>{ | |
| on('chat:message',(msg)=>{ | |
| if('api'===msg.type && msg.content.match(/^!set-color/i)){ | |
| const player = getObj('player',msg.playerid); | |
| const cmd=msg.content.split(/\s+/); | |
| if(player){ | |
| if(cmd.length>1 && cmd[1].match(/^#[0-9a-f]{6}/i)){ | |
| player.set({color: cmd[1]}); | |
| } else { | |
| sendChat('',`/w "${player.get('displayname')}" Use <code>!set-color color</code>`); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on('ready',function(){ | |
| "use strict"; | |
| var removeTokenTurn = function(tid) { | |
| Campaign().set({ | |
| turnorder: JSON.stringify( | |
| _.reject( | |
| ( '' === Campaign().get('turnorder') ? [] : JSON.parse(Campaign().get('turnorder')) ), | |
| function(to) { | |
| return to.id === tid; |