Rory B. said: Is there a way to get Scriptcards to call an API from a spell description? For example, I have this setup for detect magic and when cast from the sheet it works as intended. For the duration, you sense the presence of magic within 30 feet of you. If you sense magic in this way, you can use your action to see a faint aura around any visible creature or object in the area that bears magic, and you learn its school of magic, if any. The spell can penetrate most barriers, but it is blocked by 1 foot of stone, 1 inch of common metal, a thin sheet of lead, or 3 feet of wood or dirt. For the duration, you sense the presence of magic within 30 feet of you. If you sense magic in this way, you can use your action to see a faint aura around any visible creature or object in the area that bears magic, and you learn its school of magic, if any. The spell can penetrate most barriers, but it is blocked by 1 foot of stone, 1 inch of common metal, a thin sheet of lead, or 3 feet of wood or dirt.
}}
!radar {{
--range|30ft
--wavespacing|35
--wavedelay|50
--wavelife|200
--pinglife|4000
--wavetype|square
--layers|gm, token, map
--tokfilter|gmnotes: Magic#858585
--LoS|yes
--title|Detect Magic
--units|feet, 5e
--graphOptions|grid, circle, reticle
--output| graph, table, compact
}}
! But when I call that spell from Scriptcards it just outputs it as text. I tried Detect Magic Testy McTesterface }} !scriptcard {{--@radar{{ _range|30ft _wavespacing|35 _wavedelay|50 _wavelife|200 _pinglife|4000 _wavetype|square _layers|gm, token, map _tokfilter|gmnotes: Magic#858585 _LoS|yes _title|Detect Magic _units|feet, 5e _graphOptions|grid, circle, reticle _output| graph, table, compact }} ! but no luck. Your call to --@ is missing its vertical bar (should be --@radar| followed by parameters) Also, you'll need to define string variables to use in place of the {{ and }}, as they would confuse the code as to what is part of the ScriptCard. Something like: --&oBrac|{ --&cBrac|} and then use them in the call: !scriptcard {{
--&oBrac|{
--&cBrac|}
--@radar|[&oBrac][&oBrac] _range|30ft _wavespacing|35 _wavedelay|50 _wavelife|200 _pinglife|4000 _wavetype|square _layers|gm, token, map _tokfilter|gmnotes: Magic#858585 _LoS|yes _title|Detect Magic _units|feet, 5e _graphOptions|grid, circle, reticle _output| graph, table, compact [&cBrac][&cBrac]
}}