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 && /^!dialog/i.test(msg.content)){ | |
let p = getObj('player',msg.playerid); | |
let theMessage = ""; | |
const openBox = "<div style='border: 0px none; margin-top: 10px; border-radius: 35px 6px 6px 6px; box-shadow: 2px 2px 4px 2px #000; min-height:60px; display: block; padding:5px; text-align: left; white-space: pre-wrap;'>"; | |
const closeBox = "</div>"; | |
const buttonStyle = "'background-color: transparent; align:right; font-size: 0.8em; line-height:1.2; font-family: sans-serif; font-style: normal; font-weight: normal; padding: 0px;color: #ce0f69;display: inline-block;border: none; !important'"; | |
function imageFormat(imgsrc){ |
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
!chatmenu @{selected|character_id} {template:npcaction}{{rname=@{selected|character_name}}}{{name=@{selected|class_display} | |
@{selected|race_display}, @{selected|background} | |
**Jump** - Long [[(@{selected|strength}/2)]] / [[@{selected|strength}]]ft. | High [[((@{selected|strength_mod}+2)/2)]] / [[@{selected|strength_mod}+2]] ft. | |
**HP: **@{selected|hp} / @{selected|hp|max} | ** AC: ** @{selected|ac} | **Spd: ** @{selected|speed} | **Passive: ** @{selected|passive_wisdom}}}{{description=CHATMENU }} --separator: | --title:Ability Rolls --**Str @{selected|strength}** *(@{selected|strength_mod})* ,strength|**Dex @{selected|dexterity}** *(@{selected|dexterity_mod})*,dexterity|**Con @{selected|constitution}** *(@{selected|constitution_mod})* ,constitution|**Int @{selected|intelligence}** *(@{selected|intelligence_mod})* ,intelligence|**Wis @{selected|wisdom}** *(@{selected|wisdom_mod})*,wisdom|**Cha @{selected|charisma}** *(@{selected|charisma_mod})*,charisma --title:Saving Throws --Str,strength_save|Dex,dexterity_ |
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
!chatmenu @{selected|character_id} {template:npcaction}{{rname=@{selected|character_name}}}{{name=@{selected|npc_type} | |
**HP: **@{selected|bar1} / @{selected|hp|max} | ** AC: ** @{selected|npc_ac} | **Spd: ** @{selected|npc_speed} | |
**Languages: **@{selected|npc_languages} | |
**Senses: **@{selected|npc_senses} | |
**Resists:: **@{selected|npc_resistances} | |
**Immune: **@{selected|npc_immunities} | |
**Cond. Immune: **@{selected|npc_condition_immunities}}}{{description=CHATMENU}} --separator: | --title:Ability Rolls --**Str @{selected|strength}** *(@{selected|strength_mod})* ,strength|**Dex @{selected|dexterity}** *(@{selected|dexterity_mod})*,dexterity|**Con @{selected|constitution}** *(@{selected|constitution_mod})* ,constitution|**Int @{selected|intelligence}** *(@{selected|intelligence_mod})* ,intelligence|**Wis @{selected|wisdom}** *(@{selected|wisdom_mod})*,wisdom|**Cha @{selected|charisma}** *(@{selected|charisma_mod})*,charisma --title:Saving Throws --Str,npc_str_save|Dex,npc_dex_save|Con,npc_con_save|Int,npc_in |
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() | |
{ | |
on("chat:message",function(msg){ | |
if(msg.type=="api" && msg.content.indexOf("!spiritualWeapon")==0 && playerIsGM(msg.playerid)) | |
{ | |
var selected = msg.selected; | |
if (selected===undefined) | |
{ | |
sendChat("API","Please select a character."); | |
return; |
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
/w gm &{template:npcaction}{{rname=@{selected|character_name}}}{{name=@{selected|npc_type} | |
**HP: **@{selected|bar1} / @{selected|hp|max} | ** AC: ** @{selected|ac} | **Spd: ** @{selected|speed} | |
}}{{description= | |
[Initiative](~selected|INITIATIVE) | |
**** | |
**Abilities** | |
[**Str @{selected|strength}** *(@{selected|strength_mod})*](~selected|npc_str) | [save](~selected|npc_str_save) | |
[**Dex @{selected|dexterity}** *(@{selected|dexterity_mod})*](~selected|npc_dec) | [save](~selected|npc_dex_save) | |
[**Con @{selected|constitution}** *(@{selected|constitution_mod})*](~selected|npc_con) | [save](~selected|npc_con_save) | |
[**Int @{selected|intelligence}** *(@{selected|intelligence_mod})*](~selected|npc_int) | [save](~selected|npc_int_save) |
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
/w @{character_name} &{template:atk} {{desc=**Spellbook** | |
**Cantrips:** | |
[Chill Touch](! %{@{selected|character_name}|Spell_0_ChillTouch}) | |
[Fire Bolt](! %{@{selected|character_name}|Spell_0_FireBolt}) | |
**1st:** | |
[Burning Hands](! %{@{selected|character_name}|Spell_1_BurningHands}) | |
[Chromatic Orb](! %{@{selected|character_name}|Spell_1_Chromatic_Orb}) | |
[Magic Missile](! %{@{selected|character_name}|Spell_1_MagicMissile}) |
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
/w @{character_name} &{template:atk} {{desc=**Spells** | |
**1st:** | |
[Cure Wounds](! %{@{selected|character_name}|Spell_1_CureWounds}) | |
[Detect Magic](! %{@{selected|character_name}|Spell_1_Detect_Magic}) | |
[Disguise Self](! %{@{selected|character_name}|Spell_1_Disquise_Self}) | |
[Detect Poison And Disease](! %{@{selected|character_name}|Spell_1_Detect_Poison_Disease}) | |
}} |
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
/w @{character_name} &{template:atk} {{desc=**Spells** | |
**Cantrips:** | |
**1st:** | |
[Searing Smite](! %{@{selected|character_name}|Spell_1_SearingSmite}) | |
[Thunderous Smite](! %{@{selected|character_name}|Spell_1_ThunderSmite}) | |
**2nd:** | |
[Spiritual Weapon](! %{@{selected|character_name}|Spell_2_SpiritualWeapon}) |
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
/w @{character_name} &{template:atk} {{desc=**Spells** | |
**1st:** | |
[Searing Smite](! %{@{selected|character_name}|Spell_1_SearingSmite}) | |
[Thunderous Smite](! %{@{selected|character_name}|Spell_1_ThunderSmite}) | |
}} |
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
/w @{character_name} &{template:atk} {{desc=**Spells** | |
**1st:** | |
**2nd:** | |
**3rd:** | |
**4th:** |