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

Bag of Tricks Macro

1587202342

Edited 1587202654
Hi all, apologies if this is a stupid question.  One of my players has a Bag of Tricks.  I was hoping to create a Macro/ Deck/ Rollable Table which would roll the 1d8 to determine which creature is generated and automatically drop the Token onto the map.  I thought this might be a cool effect.  Is there anyway to do this? Thanks in advance.
Hello, As a Pro subscriber you could use the API to script such effect. For a "quick" way to implement such magic item in a game, you can rely on the solution Ziechael provided here .
Thank you for your response Eric.  As I read the script, does that not simple roll the table and post the result to the chat window?  I was hoping to also have the macro place the relevant creature token in the map?  Maybe I’m being too ambitious.
You can make a table with 8 items in it, you can also make tokens for each creature and it will change the token
1587333558

Edited 1587334029
You can do a lot of things with the tables I've made an example for you using the gray bag of things I just used some pics from the internet but as you see it took me about 15 min You've got a couple of basic ways to use it: 1) in the chat &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;~ /r 1t[TableNameHere] which will print the name of the result some useless text and also the picture(if you have a picture), For example, the rat picture at the top of the chat &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;~ /r [[1t[TableNameHere]]] which will print the name of the result and some useless text, For example, the middle of the chat rolling&nbsp;<span class="inlinerollresult showtip tipsy-n-right" title="Rolling 1t[Gray-Bag-Of-Tricks] = ( Dire Wolf )" style="box-sizing: content-box; background-color: rgb(254, 246, 142); border: 2px solid rgb(254, 246, 142); padding: 0px 3px; font-weight: bold; cursor: help; font-size: inherit;">Dire Wolf ] 0 = 0 rolling&nbsp;<span class="inlinerollresult showtip tipsy-n-right" original-title="Rolling 1t[Gray-Bag-Of-Tricks] = ( Dire Wolf )" style="box-sizing: content-box; background-color: rgb(254, 246, 142); border: 2px solid rgb(254, 246, 142); padding: 0px 3px; font-weight: bold; cursor: help; font-size: inherit;">Dire Wolf 0 = 0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;~ [[1t[TableNameHere]]] Which will print only the result, For example, the end of the chat <span class="inlinerollresult showtip tipsy-n-right" original-title="Rolling 1t[Gray-Bag-Of-Tricks] = ( Giant Elk )" style="box-sizing: content-box; background-color: rgb(254, 246, 142); border: 2px solid rgb(254, 246, 142); padding: 0px 3px; font-weight: bold; cursor: help; font-size: 1.1em;">Giant Elk <span class="inlinerollresult showtip tipsy-n-right" original-title="Rolling 1t[Gray-Bag-Of-Tricks] = ( Weasel )" style="box-sizing: content-box; background-color: rgb(254, 246, 142); border: 2px solid rgb(254, 246, 142); padding: 0px 3px; font-weight: bold; cursor: help; font-size: 1.1em;">Weasel <span class="inlinerollresult showtip tipsy-n-right" title="Rolling 1t[Gray-Bag-Of-Tricks] = ( Boar )" style="box-sizing: content-box; background-color: rgb(254, 246, 142); border: 2px solid rgb(254, 246, 142); padding: 0px 3px; font-weight: bold; cursor: help; font-size: 1.1em;">Boar <span class="inlinerollresult showtip tipsy-n-right" title="Rolling 1t[Gray-Bag-Of-Tricks] = ( Weasel )" style="box-sizing: content-box; background-color: rgb(254, 246, 142); border: 2px solid rgb(254, 246, 142); padding: 0px 3px; font-weight: bold; cursor: help; font-size: 1.1em;">Weasel *the number 1 in "1t[TableNameHere]" the number of times to roll you can change it f you want 2) From the Tables menu &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ~ Token: will make a new token and add it to the map &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ~ Roll: will print the result at the chat (will print the same as writing "/r 1t[TableNameHere]") 3) the token on the map &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;~ Random Side: will change the token picture to a random picture from the table &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;~ Choose Side: will open the window on the left which will let you choose the picture/Token Side P.S When adding a new item to the table you have an option for weight if your making a basic table like this you don't need to use it but I use it as percentage for example if I have 3 items in a table and I want 1 of then to be the result half of the time and one of the other 2 a quarter of the time, as the common item's weight I would put 50 and in the other 2 I would put 25