Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

[5e OGL] D&D 5E NPC Character Sheet Spell Token Actions

I apologise if this question has already been answered, but I have searched through the forums and can't find an answer so I hope someone can help me. I am setting up abilities for my monsters NPC Character Sheets so that I can use their actions and spells from the token bar. I have got the action macros setup and working fine: %{Goblin|repeating_npcaction_$0_npc_action} However the spell macros don't work. These are examples I have found and been trying to use: %{Goblin|repeating_spell-cantrip_$0_spell} %{Goblin|repeating_spell_$0_spell} Neither of these appear to work, the only way I have been able to get them to work is by dragging the spell onto the macro bar (I can't do this on token action bar some reason) and then manually typing the code that appears in my macro like this: %{Goblin|repeating_spell-npc_-KJXI1Z7X2raEO4qcn-d_spell} This takes forever and I'm trying to do this for a fair few monsters as I am setting up my first game as DM. Does anyone know how to get it working so I can quickly call up spell 1 or 2 from the list etc instead of manually typing them in? Any help you can give me is greatly apprecieated!
I don't believe there are NPC spell actions on the OGL sheet, but there are for the Shaped sheet. %{selected|repeating_spell_$0_spell} will work the the shaped sheet, just remember that the spells are in two columns so they are numbered as such: $0    $1 $2    $3 $4    $5 and so on.
1465411991

Edited 1465412244
Ed S. said: I don't believe there are NPC spell actions on the OGL sheet v1.5 (which has made its way to Production) introduced them. Ozzie , as Ed S. suggested, replace the  RowID of your (dragged-down) Goblin's spell with a RowIndex . Also, as Ed S. mentioned, repeating_spell-cantrip_$X_spell and repeating_spell-cantrip_$X_spell are used only by the Shaped Character Sheet, and not the  OGL by Roll20 Character Sheet (although, I believe the latter has since been deprecated).
Thanks for the responses guys. I didn't know that the codes I had were for the shaped sheet rather than the OGL. I'm a bit confused by the roll index though (I'm more of a copy and paster than a coder). What is the rowindex and where do I find the relevent one, and how exactly should it look? Would it look identical to the one in the link or should it be specific for spells? @{Goblin|repeating_items_$1_itembonus} I'm sorry for being a complete noob with this stuff. I really do need it spelled out lol.
1465417997

Edited 1465418218
Ozzie said: @{Goblin|repeating_items_$1_itembonus} $1 is the RowIndex of this particular Attribute call. Note that $0 refers to the first repeating item of its kind within a section, meaning that $1 refers to the second one. Ozzie said: %{Goblin|repeating_spell-npc_-KJXI1Z7X2raEO4qcn-d_spell} -KJXI1Z7X2raEO4qcn-d is the unique RowID of this particular Ability call. You can replace a RowID with the corresponding RowIndex (e.g. $0) to achieve the same call. To allow for this Ability call to be useful for more than one Character, I recommend replacing the Character Name keyword (e.g. Goblin) with the selected keyword .
I think I'm almost there. I typed this in: @{Selected|repeating_spell-npc_$0_spell} This message appeard in chat: No attribute was found for @{Selected|repeating_spell-npc_-KJbR4LTErXdQYf5GP4P_spell} It is referencing the correct spell but it doesn't appear to be activating.
1465419346

Edited 1465419441
You'll want to turn that Attribute call into an Ability call by replacing the @ with % Also, bear in mind that the selected keyword requires a Token that Represents a Character to be selected.
That appears to have solved my problem. It was always going to be something simple! Thanks very much for your help, I really appreciate it.
You're very welcome! Happy rolling!