I have created a Power Card macro for the Tome of Annihilation Module I just purchased. It rolls 1d20 3x and checks if its above 16 to see if there is an encounter for that day and will only print it if so as in the example below for the afternoon Encounter. Then I click on roll for the location and it will roll that macro. You will need the API PowerCards. Here is the code you will need to remove the space in the HTML code. !power {{
--titlefontshadow|none
--format|atwill
--corners|10
--whisper|GM
--name|Random Encounter
--leftsub|Tome of Annihilation
--rightsub| Random Encounters
--hroll|[[ [$Day] 1d20 ]] [[ [$Afn] 1d20 ]] [[ [$Evn] 1d20 ]]
--?? $Day >= 16 ?? !Morning|~C ** Morning Encounter!** [^Day] ~C
--?? $Afn >= 16 ?? !Afternoon|~C ** Afternoon Encounter!** [^Afn] ~C
--?? $Evn >= 16 ?? !Evening|~C ** Evening Encounter!** [^Evn] ~C
--Port Nyanzaru:| ~R [Roll](! & # 1 3 ; #PortNyanzaru) ~R
--!3|~C **Wilderness** ~C
--Beach:| ~R [Roll](! & # 1 3 ; #Beach) ~R
--Jungles, No undead:| ~R [Roll](! & # 1 3 ; #JunglesNoUndead) ~R
--Jungles, Lesser undead:| ~R [Roll](! & # 1 3 ; #JunglesLesserUndead) ~R
--Jungles, Greater undead:| ~R [Roll](! & # 1 3 ; #JunglesGreaterUndead) ~R
--Mountains:| ~R [Roll](! & # 1 3 ; #Mountains) ~R
--Rivers:| ~R [Roll](! & # 1 3 ; #Rivers) ~R
--Ruins:| ~R [Roll](! & # 1 3 ; #Ruins) ~R
--Swamp:| ~R [Roll](! & # 1 3 ; #Swamp) ~R
--Wasteland:| ~R [Roll](! & # 1 3 ; #Wasteland) ~R
}}
It should look like this. Then make the macros to call the right tables like... Port Nyanzaru !power {{
--titlefontshadow|none
--format|atwill
--corners|10
--whisper|GM
--name|Random Encounter
--leftsub|Port Nyanzaru
--rightsub| Random Encounters
--!|[[ [TXT] 1t[Port-Nyanzaru-Encounter-Table] ]]
}}
This part calls the table --!|[[ [TXT] 1t[Port-Nyanzaru-Encounter-Table] ]] and look like this. Happy Adventuring.