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 .
×

Macro lié au barre de token + Texte diffèrent suivant réussite ou échec

Bonjour à tous, C'est mon 1er message sur le forum j'espère qu'il est au bon endroit ! J'aimerai créer une macro qui permet de mettre un malus (-10 ou -20 sur un d100) qui se déclencherait seulement lorsque ma bar de fatigue (la bleu) serait a un certain montant, est ce possible sans passer en pro ? Egalement j'aimerai savoir s'il est possible de faire apparaitre un texte diffèrent si le jet est réussi ou raté.  Merci d'avance à tous !
1670446312
timmaugh
Roll20 Production Team
API Scripter
In answer to your first question... yes. In certain circumstances you can use arithmetic to mimic logic in inline rolls. For instance, you could multiply your mod (-10) by the result of a mathematical operation that would render either a 0 or a 1. The idea would be to derive a number between 0 and 1.999999 and then apply a floor() function to that. You'd set up your math to generate something below 1 for when the mod should NOT be applied (0 - .99999 when passed through floor() becomes 0, and -10 * 0 = 0 mod applied), and something between 1 and 1.99999 for when the mod SHOULD be applied. As for what that math would have to look like, we'd need more information on how the game mechanic works. Does the fatigue bar count up (higher numbers mean more fatigue), or does it count down (the character is losing stamina)? Is there a max value available to the bar? Is the point where the mod would be applied a matter of a percentage against the bar, or is it a standard value across the board? Also, is there actually 2 mods (-10 and -20), and therefore 2 places where a value in the fatigue could drive a change in the mod being applied (ie, -10 for a character that is *this* fatigued, but -20 as that character passes *that* point of fatigue)? If you share more information someone should be able to help derive an equation to fit your needs. As to your second question, the only way to have different text is with a rollable table (which kills your ability to perform the above math-logic), or with mods.
Oufff ok thanks for your answer ! I have another question, if i buy a pro roll20 count for 1 month, can i create lots of powercard maccro and then continue to use them even if i'm not pro anymore ?
1670515422
timmaugh
Roll20 Production Team
API Scripter
Unfortunately, no. The game creator has to be a current Pro subscriber for scripts to be enabled in that game. For other scripts (TokenActionMaker is one I can think of), the 1-month subscription might make sense. In the case of TokenActionMaker, it creates abilities on the character to carry out common macro actions... but those macros do not, themselves, rely on the availability of scripts. So when the pro-sub runs out, the macros continue to function. In the case of something like PowerCards/ScriptCards, every time you try to send a command to the Script Moderator (a message beginning with a bang: '!'), you would need scripts to be available.