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

Noob question maybe

Hello, I am quite a noob with scripts and what I wish to do is small in comparison to what you guys have done... What I wish to do I do not know how to do though :/ So I was hoping someone would be able to help... I'd like to give random flavour to my skills whenever I try them... Let's say I made 3 macros, called 1, 2 and 3 all especially featured for the Heal skill to perform First Aid. 1: grabs his bandages and starts working. 2: checks the wounds and decides what to do. 3: shakes his head in disbelief, then sits down, sigh, and starts closing the wound. Now when I roll a heal check I'd love to have either one of those randomly picked... I came up with: /me ?{text|#[[1d3]]} Sadly this did not work as it came out as: /me #2 Which means the 2 that was rolled does not actually connect with the # and thus trigger the macro... Is there a way to have the computer trigger the macro with a RNG? Casper
1426457867

Edited 1426457909
The Aaron
Pro
API Scripter
If you want to add flavor like this, using a Rollable Table would be the easiest thing to do. You can create as many flavor text lines as you like, and even weight some to be more common. Then just embed an inline roll for the table in your macro. No API required. For example, assuming your Rollable Table was named 'Pithy Healing Phrases', you could do this: /me [[ 1t[Pithy Healing Phrases] ]] and get one at random. Does that meet your needs?
That does indeed, do I require a certain account for that?
1426469040
The Aaron
Pro
API Scripter
Nope! Just go into your Cards and Tables tab and jump right in! :)
I seem to not be able to use them... is it GM only?
1426474891
The Aaron
Pro
API Scripter
Ah, yes, your GM will need to set it up for you. My apologies, I didn't think about that distinction.