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

Créer une macro réussite critique/ Create a macro for a critical succes

Bonjour/ Hello Je souhaite utiliser la table de reussite critique proposé dans les livres pour les PNJ via un moyen automatisé afin de ne pas ralentir le jeu. J'ai pensé faire une macro mais je ne sais pas si c'est possible. L'idée est la suivante: - lancer 2d20 et garder le meilleur ou le pire en fonction de si c'est un PJ ou PNJ. - ajouter le modificateur de taille - associer le résultat à la phrase - montrer la phrase sur le chat C'est la première macro que je fait. Lancer le d20 c'est ok. Ajouter le modificateur de taille ça se complique car je n'ai pas trouvé la caractéristique dans les abilities des PNJ. Cependant je crois que je peux la créer mais je n'en suis pas sûr. Le gros point noir pour moi est d'associer le résultat à la phrase. Est ce possible avec une macro ou des macros imbriquées ? J'ai écris cela pour l'instant pour un PJ: /r 2d20k1+@{selected|taille} Merci I want to use the critical success table proposed in the books for NPCs via an automated means so as not to slow down the game. I thought about doing a macro but I don't know if it is possible. The idea is as follows: - roll 2d20 and keep the best or the worst depending on whether it is a PC or an NPC. - add the size modifier - associate the result with the sentence - show the sentence on the chat This is the first macro I have done. Running the d20 is ok. Adding the size modifier is complicated because I couldn't find the characteristic in the abilities of the NPCs. However I believe I can create it but I am not sure. The big black point for me is to associate the result with the sentence. Is it possible with a macro or nested macros ? I've written this for now for a PC: /r 2d20k1+@{selected|taille} Thank You pre { background: transparent }pre.western { font-family: "Liberation Mono", monospace; font-size: 10pt }pre.cjk { font-family: "Noto Sans Mono CJK SC", monospace; font-size: 10pt }pre.ctl { font-family: "Liberation Mono", monospace; font-size: 10pt }p { margin-bottom: 0.25cm; line-height: 115%; background: transparent }
What game system are you playing? E.g. D&D 5th Edition Which character sheet is the game using? E.g. D&D 5E by Roll20 Do you want a dropdown menu of modifiers, or will it always be the same modifier (size)? What do you want the output to look like?  Your current macro should work if the attribute name is 'taille'.  If you open the character sheet for the token, you should see a list of attributes on the left side of the Attributes & Abilities tab. Then you just need to look for the corresponding attribute, or create one. Google Translate/Google Traduction: 1. À quel système de jeu jouez-vous? Par exemple. D&D 5e édition 2. Quelle feuille de personnage le jeu utilise-t-il? Par exemple. D&D 5E par Roll20 3. Voulez-vous un menu déroulant de modificateurs, ou sera-ce toujours le même modificateur (taille)? 4. À quoi voulez-vous que la sortie ressemble? Votre macro actuelle devrait fonctionner si le nom de l'attribut est 'taille'. Si vous ouvrez la feuille de personnage pour le jeton, vous devriez voir une liste d'attributs sur le côté gauche de l'onglet Attributs et capacités. Ensuite, il vous suffit de rechercher l'attribut correspondant ou d'en créer un.
Thank you for your response I am playing with "Chroniques Oubliées Fantasy" a D&D OGL 3.5 and I am using the charachter sheet Chroniques Oubliées Fantasy by Roll20. it will always be the same modifier, the attribute "size" The output is a specific sentence from the table below: I would like the sentence corresponding to the result to appear in the chat. For example  a PC makes a critical success, I roll the dice : /r 2d20k1+@{selected|taille} rolling 2d20k1+0 (16+17)+0 = 17 because of is "taille" is equal to 0 I want to the sentence : "Coup terrible aux membres supérieurs: +12DM2, Etourdi 1 tour et Affaibli/ Terrible blow to upper limbs: + 12DM2, stunned 1 turn and weakened" appears in the chat instead of the result 17. Thank you