I've gotten a good start with token macros for my NPCs for attacks and actions and stuff. I've run into some problems with doing macros for spellcasting though.
With some brief research, I found I can use the macro "%{selected|repeating_spell-cantrip_$0_spell}" to make individual generic macros that won't break when a spell changes in the character sheet. Then I got to thinking, one of the NPC mages that I've set up has 10 different spells, so having each spell individually in the bar takes up too much space.
In order to fix this, I attempted to use drop-down menu to allow me to select which spell to use, which ended up looking like this:
With some brief research, I found I can use the macro "%{selected|repeating_spell-cantrip_$0_spell}" to make individual generic macros that won't break when a spell changes in the character sheet. Then I got to thinking, one of the NPC mages that I've set up has 10 different spells, so having each spell individually in the bar takes up too much space.
In order to fix this, I attempted to use drop-down menu to allow me to select which spell to use, which ended up looking like this:
?{Choose a spell| @{selected|repeating_spell-cantrip_$0_spellname}, %{selected|repeating_spell-cantrip_$0_spell} | @{selected|repeating_spell-cantrip_$1_spellname}, %{selected|repeating_spell-cantrip_$1_spell} | @{selected|repeating_spell-cantrip_$2_spellname}, %{selected|repeating_spell-cantrip_$2_spell} }Now, when I use the macro, a drop down menu appears but it doesn't have a drop-down, just a single text box with the text:
Light, /w gm&{template:spellDoes anyone have any ideas as to how I could fix this?