Understanding iscript #59
Unanswered
InStimPrime
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I'm looking into into this, and will get back to you soon. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a script working that when called from the note or as a button it outputs as expected.
;;4ADReturnMonster Skeletons dn6+2::
Adds to the note the string of my expected output of:
```statblock
count: 6 (d6+2)
extends: Skeletons
```
The dice parameter is optional, and 'dn' is just a rewrite of the included roller that returns just the value without the icon and markdown.
Trying to do an iscript with the same:
`iscript-append: 4ADReturnMonster Skeletons dn6+2`
Adds only:
<div class="block-language-statblock statblock-plugin-container"><div class="container svelte-1r5gl1g"></div></div>
My goal is to have a variety of these iscript lines in a note, to return random picks as a tbl roll. Then I can choose to embed the statblock if I need it or leave the result as is.
I'm a JavaScript beginner, trying to hack together some tools for solo roleplaying, and this has been eluding me.
Thanks for any insight!
Beta Was this translation helpful? Give feedback.
All reactions