elizeuangelo / fvtt-module-narrator-tools

Special tools to increase immersivity in your game.
17 stars 8 forks source link

Send the command from Journal #7

Closed brunocalado closed 4 years ago

brunocalado commented 4 years ago

Hi.

Can you make the commands work from the journal?

image

elizeuangelo commented 4 years ago

You can make macros and use them in the journal. Just drag your macro into the journal and you can use it on click.

Step 1. Make your macro using type chat settings. image

Step 2. Drag the macro into the journal. image

Step 3. Save and you should have a clickable macro. image

brunocalado commented 4 years ago

There is a problem with this.

Imagine a campaign. Will you create dozens of macros?

If you could just add the text in the journal it will be much easier.

elizeuangelo commented 4 years ago

You could have a macro that do the trick, one macro for all texts in journal. You select the text and it turns into a clickable.

I will look into it when I have some time so its part of the project

elizeuangelo commented 4 years ago

Added on latest release macros for chat. Please let me know what you think.

image

image

zarmstrong commented 4 years ago

This feature doesn't seem to be working:

event.srcElement.closest is not a function
    at Macro.eval (eval at callScriptMacroFunction (Macros.js:176), <anonymous>:10:35)
    at Macro.callScriptMacroFunction [as callScriptFunction] (Macros.js:179)
    at Macro.renderMacro [as renderContent] (Macros.js:197)
    at Macro.executeMacro (Macros.js:221)
    at HTMLAnchorElement._onClickEntityLink (foundry.js:14429) "Macro Narrate: failed to catch narration."

journal content is:

@Compendium[narrator-tools.narrator-macros.I3ztJttPpvtN96iL]{Describe} This is a test description

@Compendium[narrator-tools.narrator-macros.qSMtVloC2rqjrfkL]{Narrate} This is a test narration
zarmstrong commented 4 years ago

Figured it out - have to import the macro, so it's a reference to the macro, not the compendium.