I'm having much more trouble with the spell part. At first, I tried to adapt the macro that I just presented for spells. It gave something like this :
!scriptcard {{
--/|ScriptCard
to prompt the GM for a new custom trait on the D&D 5e by Roll20
Sheet
--/|Must have a
token selected
--/|VARIABLES TO
SET
--&source|Other
--&sourceType|GM
Script
--#whisper|gm
--#title|Custom
Spell Creator
--#sourceToken|@{selected|token_id}
--!or:[*S:character_id]:spells|
name:Spell
X|
description:Description
of spell X|
spelllevel:1|
spellschool:Illusion|
options-flag :0|
source:[&source]|
source_type:[&sourceType]|
--+New PC
Spell|Added new custom spell to PC [*S:character_name] with the name
of Spell X
}}
But it didn't work. I felt like it was maybe because it was missing some property, so I tried to add every single one that you mentionned. It looks like this :
!scriptcard {{
--/|ScriptCard
to prompt the GM for a new custom trait on the D&D 5e by Roll20
Sheet
--/|Must have a
token selected
--/|VARIABLES TO
SET
--&source|Other
--&sourceType|GM
Script
--#whisper|gm
--#title|Custom
Spell Creator
--#sourceToken|@{selected|token_id}
--!or:[*S:character_id]:spells|
details-flag|0
details-flag_max|
options-flag|0
options-flag_max|
rollcontent|
rollcontent_max|
spell_ability|spell
spell_ability_max|
innate|
innate_max|
spell_damage_progression|
spell_damage_progression_max|
spellathigherlevels|
spellathigherlevels_max|
spellattack|
spellattack_max|
spellcastingtime|1
action
spellcastingtime_max|
spellclass|
spellclass_max|
spellcomp_m|{{m=1}
spellcomp_m_max|
spellcomp_materials|A
glowing stick of incense or a crystal vial filled with phosphorescent
material
spellcomp_materials_max|
spellcomp_s|{{s=1}
spellcomp_s_max|
spellcomp_v|0
spellcomp_v_max|
spellconcentration|{{concentration=1}
spellconcentration_max|
spelldamage2|
spelldamage2_max|
spelldamage|
spelldamage_max|
spelldamagetype2|
spelldamagetype2_max|
spelldamagetype|
spelldamagetype_max|
spelldescription|You
create a twisting pattern of colors that weaves through the air
inside a 30-foot cube within range. The pattern appears for a moment
and vanishes. Each creature in the area who sees the pattern must
make a Wisdom saving throw. On a failed save, the creature becomes
charmed for the duration. While charmed by this spell, the creature
is incapacitated and has a speed of 0. The spell ends for an affected
creature if it takes any damage or if someone else uses an action to
shake the creature out of its stupor.
spelldescription_max|
spelldmgmod|
spelldmgmod_max|
spellduration|Up to
1 minute
spellduration_max|
spellhealing|
spellhealing_max|
spellhlbonus|
spellhlbonus_max|
spellhldie|
spellhldie_max|
spellhldietype|
spellhldietype_max|
spelllevel|3
spelllevel_max|
spellname|Hypnotic
Pattern
spellname_max|
spelloutput|SPELLCARD
spelloutput_max|
spellrange|120 feet
spellrange_max|
spellritual|
spellritual_max|
spellsave|
spellsave_max|
spellsavesuccess|
spellsavesuccess_max|
spellschool|illusion
spellschool_max|
spellsource|
spellsource_max|
spelltarget|A
30-foot cube within range
spelltarget_max|
roll_output_dc|13
roll_output_dc_max|
spellprepared|1
spellprepared_max|
--+New PC
Spell|Added new custom spell to PC [*S:character_name] with the name
of Hypnotic Pattern
}}
But it doesn't work either. I tried to respect the syntax that the previous macro used, but... To be honest, I'm not certain of what it is that doesn't work exactly. Is it some minor detail ? Is it the whole thing ? I really don't know. I wish there was some error message to tell me what is wrong.
(Note : I'm getting the GM confirmation whisper as expected, but nothing appears in the spell book of the selected player.)