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

Repeating attack help.

Want to create a macro that uses repeating attack, I have it working I just need it to pull the name of the weapon or spell from the repeating attack section just like it does for spells. Here is what I have !power {{ --emote|** @{selected|token_name} Uses a Weapon** --tokenid|@{selected|token_id} --titlebackground|none --titlefontshadow|none --whisper|@{selected|character_name} --corners|10 --format|atwill --name|^^Weapons --leftsub|@{selected|character_name} --rightsub|Level @{selected|level} @{selected|class}^^ ^^ --Weapons:| ^^ [@{selected|repeating_attack_$0_attackname}] (~selected|repeating_attack_$0_attack) ^^[@{selected|repeating_attack_$1_attackname}](~selected|repeating_attack_$1_attack) ^^[@{selected|repeating_attack_$2_attackname}](~selected|repeating_attack_$2_attack) }} Need this part [@{selected|repeating_attack_$0_attackname}] to pull the name in the first slot. for spells I use [@{selected|repeating_spell-2_$0_spellname}] but its not working for repeating attack.
1510245043

Edited 1510245311
The Attacks & Spellcasting section of the 5e OGL character sheet stores the name in _atkname . So @{selected|repeating_attack_$0_atkname} should work.
1510245109
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Which sheet/system are you using Craven?
Kyle G. said: The Attacks & Spellcasting section of the 5e OGL character sheet stores the name in _atkname . So @{selected|repeating_attack_$0_atkname} should work. That worked thanks, what would it be for NPC? for attack and the name. Scott 5E OGL
!power {{ --emote|** @{selected|token_name} Uses a Weapon** --tokenid|@{selected|token_id} --titlebackground|none --titlefontshadow|none --whisper|@{selected|character_name} --corners|10 --format|atwill --name|^^Weapons --leftsub|@{selected|character_name} --rightsub|Level @{selected|level} @{selected|class}^^ ^^ --Weapons:| ^^[@{selected|repeating_attack_$0_atkname}](~selected|repeating_attack_$0_attack) [@{selected|repeating_attack_$1_atkname}](~selected|repeating_attack_$1_attack) [@{selected|repeating_attack_$2_atkname}](~selected|repeating_attack_$2_attack) [@{selected|repeating_attack_$3_atkname}](~selected|repeating_attack_$3_attack) [@{selected|repeating_attack_$4_atkname}](~selected|repeating_attack_$4_attack) }} Works
Craven said: Kyle G. said: The Attacks & Spellcasting section of the 5e OGL character sheet stores the name in _atkname . So @{selected|repeating_attack_$0_atkname} should work. That worked thanks, what would it be for NPC? for attack and the name. @{selected|repeating_npcaction_$0_name}
Thanks !power {{ --emote|** Attacks ** --tokenid|@{selected|token_id} --titlebackground|none --titlefontshadow|none --whisper|@{selected|character_name} --corners|10 --format|atwill --name|Attacks --leftsub|@{selected|character_name} --rightsub|Level @{selected|level} @{selected|class} --Attacks:| [@{selected|repeating_npcaction_$0_name}](~selected|repeating_npcaction_$0_npc_action) [@{selected|repeating_npcaction_$1_name}](~selected|repeating_npcaction_$1_npc_action) [@{selected|repeating_npcaction_$2_name}](~selected|repeating_npcaction_$2_npc_action) [@{selected|repeating_npcaction_$3_name}](~selected|repeating_npcaction_$3_npc_action) [@{selected|repeating_npcaction_$4_name}](~selected|repeating_npcaction_$4_npc_action) [@{selected|repeating_npcaction_$5_name}](~selected|repeating_npcaction_$5_npc_action) [@{selected|repeating_npcaction_$6_name}](~selected|repeating_npcaction_$6_npc_action) }}