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

Macro not functioning, can't see why

Hey anybody/everybody, sorry if there's a better place to have posted this but I've got a quick question regarding a macro that used to be functional. Below is the macro. It's nothing fancy, it just pulls from a collection tables in my game to randomize encounters by first asking how many encounters and then asking which table to roll from.  The macro will ask the questions, but when I tell it what table to roll on, it doesn't produce results. I went through the table names individually and they all match what's written into the macro and I haven't changed anything. I'm sure it's probably something simple and obvious, but I am just not understanding where my scripting is messed up.  Any help from those of you smarter than I would be greatly appreciated. -Troy RANDOM ENCOUNTERS !?{How many times?|1} ?{Which Table?|Arctic 1-4,Arctic-Encounters-Levels-1-4|Arctic 5-10,Arctic-Encounters-Levels-5-10|Arctic 11-16,Arctic-Encounters-Levels-11-16|Arctic 17-20,Arctic-Encounters-Levels-17-20|Coastal 1-4,Coastal-Encounters-Levels-1-4|Coastal 5-10,Coastal-Encounters-Levels-5–10|Coastal 11-16,Coastal-Encounters-Levels-11–16|Coastal 17-20,Coastal-Encounters-Levels-17–20|Desert 1-4,Desert-Encounters-Levels-1–4|Desert 5-10,Desert-Encounters-Levels-5–10|Desert 11-16,Desert-Encounters-Levels-11–16|Desert 17-20,Desert-Encounters-Levels-17–20|Forest 1-4,Forest-Encounters-Levels-1–4|Forest 5-10,Forest-Encounters-Levels-5–10|Forest 11-16,Forest-Encounters-Levels-11–16|Forest 17-20,Forest-Encounters-Levels-17–20|Grassland 1-5,Grassland-Encounters-Levels-1–5|Grassland 6-10,Grassland-Encounters-Levels-6–10|Grassland 11-16,Grassland-Encounters-Levels-11–16|Grassland 17-20,Grassland-Encounters-Levels-17–20|Hill 1-4,Hill-Encounters-Levels-1–4|Hill 5-10,Hill-Encounters-Levels-5–10|Hill 11-16,Hill-Encounters-Levels-11–16|Hill 17-20,Hill-Encounters-Levels-17–20|Mountain 1-4,Mountain-Encounters-Levels-1–4|Mountain 5-10,Mountain-Encounters-Levels-5–10|Mountain 11-16,Mountain-Encounters-Levels-11–16|Mountain 17-20,Mountain-Encounters-Levels-17–20|Swamp 1-4,Swamp-Encounters-Levels-1–4|Swamp 5-10,Swamp-Encounters-Levels-5–10|Swamp 11-20,Swamp-Encounters-Levels-11–20|Underdark 1-4,Underdark-Encounters-Levels-1–4|Underdark 5-10,Underdark-Encounters-Levels-5–10|Underdark 11-16,Underdark-Encounters-Levels-11–16|Underdark 17-20,Underdark-Encounters-Levels-17–20|Underwater 1-4,Underwater-Encounters-Levels-1–4|Underwater 5-10,Underwater-Encounters-Levels-5–10|Underwater 11-20,Underwater-Encounters-Levels-11–20|Urban 1-4,Urban-Encounters-Levels-1–4|Urban 5-10,Urban-Encounters-Levels-5–10|Urban 11-16,Urban-Encounters-Levels-11–16|Urban 17-20,Urban-Encounters-Levels-17–20} !rt /w gm &{template:npcaction} {{rname=Encounters }} {{name=}} {{description=[[?{How many times?}t[?{Which Table?}]]]}}
I don't know what script functionality you're using here, but it seems superfluous - though without scripts, you can't get multiple text values from a table roll (and numeric results are added together). There's a way around it without scripting, but you won't need it and someone else can explain to you how to do it better with them. But as far as the macro goes, I see no issues, other than that the initial queries are not on the same line - but that shouldn't prevent the actual macro from resolving. 
Figured it out. Active API's needed refreshed for the game.  Like I said....something simple.  Thanks for the feedback, Tuo.