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

PTU Pokeball Selection Macro

Greetings Community! I started being the GM for a group of players playing Pokemon Tabletop United(PTU) The game is a lot of fun but it differently needs some work to streamline events. I created a macro for capturing pokemon with Pokeball with the required calculations: &{template:default} {{name=Pokeball}} {{Standard = [[1d100 - @{selected|Level}]]}} {{Great = [[1d100 - @{selected|Level}-10]]}} {{Ultra = [[1d100 - @{selected|Level}-15]]}}{{Master = [[1d100 - @{selected|Level}-100]]}} However, the output is in a table form for each type of Pokeball. Is there a way to have an initial prompt ask for what type of Pokeball, and then output the resulting calculation? As a bonus, could also tie a boolean into the initial throw so that: Players roll a 1d20, if higher than 6, then capture calculation is performed?
1592485548
Ziechael
Forum Champion
Sheet Author
API Scripter
If you create some rollable tables with single entries and the following values you could do something a bit more Dynamic: Table name Value Standard 0 Great 10 Ultra 15 Master 100 Then you can use the following macro: &{template:default} {{name=Pokeball}} {{?{Ball|Standard|Great|Ultra|Master} = [[1d100 - @{selected|Level} - 1t[?{Ball}] ]]}} As a bonus you could add another 2 tables with the name of 0 and 1, table 0 without have a single entry of 'Throw Missed' or something, table 1 would have a single entry of 'Successful throw' or something and you could then add the following to the macro: {{Throw Attempt= [[ 1t[[[1d20>7]]] ]] }}
1592485942

Edited 1592485996
Ziechael
Forum Champion
Sheet Author
API Scripter
Here's the full thing put together (assuming you've put the tables into the game): &{template:default} {{name=Pokeball}} {{Throw Attempt= [[ 1t[[[1d20>7]]] ]] }} {{?{Ball|Standard|Great|Ultra|Master} = [[1d100 - 5 - 1t[?{Ball}] ]] }} Can the value of the capture be negative or should it have a minimum value of 0?
This worked perfectly! Thanks so much!! Ziechael said: Here's the full thing put together (assuming you've put the tables into the game): &{template:default} {{name=Pokeball}} {{Throw Attempt= [[ 1t[[[1d20>7]]] ]] }} {{?{Ball|Standard|Great|Ultra|Master} = [[1d100 - 5 - 1t[?{Ball}] ]] }} Can the value of the capture be negative or should it have a minimum value of 0?