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

Template and Query Macro

January 04 (7 years ago)

Edited January 04 (7 years ago)
hey so ive used macros before and im able to make pretty basic or simple ones pretty easily. (to get exp out of the way). though im currently trying one that ive never really tired to make before and i got close (but like graves from league of legends) no cigar. 

Purpose of the marco: if your in the mountains you use X effect with this ability but if you are in grasslands it does X effect with this ability.
put short. its one feature or feat, but depending where you are does a completely different thing.
(if people know PTU. im trying to make the natural fighter feature from survivalist.)

how far ive gotten.
1. i know i need a different macro for each effect and need to use this sample macro for the whole feature
***?{Which macro?|Attack,#use-sword |Defend,#use-shield }***

2. the other thing im doing is that each effect is going to have a template like the sample one below
***&{template:default} {{name=Test With Ability}} {{attack= %{Character_Name|attack} }} {{damage= #damagemacro }}***

3. because im doing this i need to use the replacement for the } in the template.

4. (heres where my issue happens) haha it worked... kinda? for some reason after using the replacements } i got the drop to work properly but instead, for example, when you pick attack and it only putting out the #use-sword marco its trying to still roll the #use-sword macro with the #use-shield. even though u selected attack? idk whats my issue.

(The Macro so far)
feature macro
title: Natural-Fighter-Moves
the macro: ?{Which macro?|Grassland,#Cotton-Spore | Defend, #Capture-Roll }
((note: im using another macro i have premade just so i can see whats going on and see if this will actually work))

Grassland effect macro
title: Cotton-Spore
the macro: &{template:default}{{name=Cotton Spore}} {{AC= [[1d20]] VS 2+ target evasion}} {{type= Grass}}  {{Range= Burst 1 Powder}} {{Effect= All Legal Targets have their Speed lowered 2 Combat Stages}} 
((note: i use the replacement for } in the effect macros from this link > Advanced Usage for Roll Queries

and to restate the issue it shows the template like it should but doesnt know where to stop for the natural fighter macro. rolling all effect options i put in.
January 04 (7 years ago)
BUMPING because i finished this post. my roll20 game wasnt letting me type in it earlier so thats why i didnt finish it
January 06 (7 years ago)
Hi, lord4571.

lord4571 said:

Grassland effect macro
title: Cotton-Spore
the macro: &{template:default}{{name=Cotton Spore}} {{AC= [[1d20]] VS 2+ target evasion}} {{type= Grass}}  {{Range= Burst 1 Powder}} {{Effect= All Legal Targets have their Speed lowered 2 Combat Stages}} 
((note: i use the replacement for } in the effect macros from this link > Advanced Usage for Roll Queries

If you replaced all of the } with }, then ?{Which macro?|Grassland,#Cotton-Spore | } should work. If it doesn't, then something went wrong with the replacements, which could be this, from Roll Query Troubleshooting:
At this time, reopening a Macro saved under the Collections tab of the Sidebar causes HTML entities within to be reverted; if the Macro is then saved, so are those reversions. This behaviour is not present within Abilities.

If ?{Which macro?|Grassland,#Cotton-Spore | } works but ?{Which macro?|Grassland,#Cotton-Spore | Defend, #Capture-Roll } does not, then there is an issue with #Capture-Roll or its HTML entity replacements.