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

4E Perfect Attack Macro?

So I am DMing a 4E campaign, and am very experienced with Roll 20's macros, but I can not find a way to build an attack macro in 4E that allows the player to switch weapons quickly and easily. I have a Ranger who is using a Swords and Bow, and changes often, but I would like to avoid using the ?{|} function if I can. I know I can build the weapons on the character sheet, then build the powers on the sheet, and change the weapon with the drop down tab. However, using this method only gives the most basic information about the power, and it can't be attacked to the token. I'm hoping I'm just missing something. -_-
I'm usually a fan of having a separate button on the Macro Bar for individual weapons. Another alternative to a weapon selection Roll Query is a 'menu' of Command Buttons .
With some setup, a Token's Bar/Bubble can be used to control weapon selection (i.e. in place of a Roll Query). For example, a player might enter 1 or s into bar2's Radial Menu Bubble to use weapon_1 or weapon_s, etc. The setup differs depending on whether you (a) want to use separate macros for each weapon, or (b) want to use one macro for all weapons: Setup A: want to use separate macros for each weapon Provide your weapon macros with names that differ only by a number or letter e.g. weapon- 1 -attack, weapon- 2 -attack, etc. or weapon- s -attack, weapon- b -attack, etc. Choose which Token Bar/Bubble you want to sacrifice (e.g. bar2, which has the rightmost Bubble) In the Token Settings , set that Bar to have a value of a number or letter, e.g. 1 or s If you're using Abilities , also set that Bar to have a max of %{selected| Create a new Macro or Ability to call your 'active' weapon, e.g. named weapon-macros If your weapon macros are Abilities , provide weapon-macros with a value of @{selected|bar2|max}weapon-@{selected|bar2}-attack} If your weapon macros are Macros , provide weapon-macros with a value of #weapon-@{selected|bar2}-attack Have your player use/call weapon-macros in conjunction with changing the value of the Token Bubble to call their weapon macros. Setup B: want to use one macro for all weapons Choose which Token Bar/Bubble you want to sacrifice (e.g. bar2, which has the rightmost Bubble) In the Token Settings , set that Bar to have a value of 1 and a max of @{selected| Replace the @{ within every weapon-related Attribute call with @{selected|bar2|max} Replace the weapon number within every Attribute call with @{selected|bar2} e.g. @{weapon-1-name} becomes @{selected|bar2|max}weapon-@{selected|bar2}-name}
Thank you. The method I finally settled on is one that (sadly) keeps the stat mod, but there is a drop down that will ask which weapon (1-6) you want to use for the attack. I'll put the code in a reply in case anyone is interesded.  
{{attack= [[1d20+ ?{weapon|@{weapon-5-name}, @{dexterity-mod-level} + @{weapon-5-attack} ]] vs AC }} {{Damage=[[ @{weapon-5-num-dice}d@{weapon-5-dice} + @{weapon-5-damage} + @{dexterity-mod}]] |@{weapon-6-name}, @{dexterity-mod-level} + @{weapon-6-attack} ]] vs AC }} {{Damage= [[ @{weapon-6-num-dice}d@{weapon-6-dice} + @{weapon-6-damage} + @{dexterity-mod}]] } Weapon damage}