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

Comment améliorer l'affichage d'une macro ?

B J'utilise la feuille DD5 standard. J'ai créé une macro pour tirer secrètement la perception et l'investigation de tous les personnages.  /w gm {{ Perception Investigation Kraveniuss.... : [[d20+@{Kraveniuss (Nico)|perception_bonus}]] ----- [[d20+@{Kraveniuss (Nico)|perception_bonus}]] Beren Naïlo.. : [[d20+@{Beren Naïlo (Martial)|perception_bonus}]] ----- [[d20+@{Beren Naïlo (Martial)|perception_bonus}]] Grondella...... : [[d20+@{Grondella Fongorsdottir (Manu)|perception_bonus}]] ----- [[d20+@{Grondella Fongorsdottir (Manu)|perception_bonus}]] Zhar Hygnan : [[d20+@{Zhar Hygnan (Phy)|perception_bonus}]] ----- [[d20+@{Zhar Hygnan (Phy)|perception_bonus}]] D'har Zélos... : [[d20+@{D'har Zélos (JT)|perception_bonus}]] ----- [[d20+@{D'har Zélos (JT)|perception_bonus}]] Wishmerril.... : [[d20+@{Wishmerril (Norbert)|perception_bonus}]] ----- [[d20+@{Wishmerril (Norbert)|perception_bonus}]] }} Le résultat est : Comment faire disparaitre les "{" et "}" de l'affichage ? Est il possible d'avoir un affichage propre avec les résultats de l'investigation bien alignés sur une colonne ? (j'ai essayé d'ajouter des tabulations, mais sans succès) 
J'ai trouvé une 1ère réponse : utiliser une triple parenthèse (au lieu d'une double): /w gm {{{ Perception Investigation Kraveniuss.... : [[d20+@{Kraveniuss (Nico)|perception_bonus}]] ----- [[d20+@{Kraveniuss (Nico)|perception_bonus}]] Beren Naïlo.. : [[d20+@{Beren Naïlo (Martial)|perception_bonus}]] ----- [[d20+@{Beren Naïlo (Martial)|perception_bonus}]] Grondella...... : [[d20+@{Grondella Fongorsdottir (Manu)|perception_bonus}]] ----- [[d20+@{Grondella Fongorsdottir (Manu)|perception_bonus}]] Zhar Hygnan : [[d20+@{Zhar Hygnan (Phy)|perception_bonus}]] ----- [[d20+@{Zhar Hygnan (Phy)|perception_bonus}]] D'har Zélos... : [[d20+@{D'har Zélos (JT)|perception_bonus}]] ----- [[d20+@{D'har Zélos (JT)|perception_bonus}]] Wishmerril.... : [[d20+@{Wishmerril (Norbert)|perception_bonus}]] ----- [[d20+@{Wishmerril (Norbert)|perception_bonus}]] }}}
1670783110
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Salut, Reynald.Player! You can use a roll template for output like this. You might find it preferable as the columns line up automatically. Also, you might consider renaming the character " Wishmerril (Norbert) " as control characters in character names can cause unexpected problems. Characters to avoid in character names: { } [ ] ( ) @ # $ % ^ & " ' : Just in case this does not translate well, when I say "character", I mean a letter, number or punctuation. When I say "character name", I mean the name of the persona portrayed by a player.
Merci pour les explications Keithcurtis Voici ce que cela donne : /w gm &{template:default} {{name=Perception & Investigation }} {{Kraveniuss [[d20+@{Kraveniuss|perception_bonus}]]=[[d20+@{Kraveniuss|investigation_bonus}]]}} {{Beren Naïlo [[d20+@{Beren Naïlo|perception_bonus}]]=[[d20+@{Beren Naïlo|investigation_bonus}]]}} {{Grondella [[d20+@{Grondella Fongorsdottir|perception_bonus}]]=[[d20+@{Grondella Fongorsdottir |investigation_bonus}]]}} {{Zhar Hygnan [[d20+@{Zhar Hygnan|perception_bonus}]]=[[d20+@{Zhar Hygnan|investigation_bonus}]]}} {{D'har Zélos [[d20+@{D 'har Zélos|perception_bonus}]]=[[d20+@{D'har Zélos|investigation_bonus}]]}} {{Wishmerril [[d20+@{Wishmerril|perception_bonus}]]=[[d20+@{Wishmerril|investigation_bonus}] ]}} C'est un peu plus joli :-)
Existe t'il un template destiné uniquement au GM, c'est à dire que seul le GM le voit ?
1671826793
Gauss
Forum Champion
Reynald.Player said: Is there a template intended only for the GM, ie only the GM sees it? Putting "/w GM" (without quotes) in front of the template will make it GM only as shown above.  Unless you are asking for a player rolling something to not show up to the player? In which case there is no way to do that short of a Mod (API) script.
Ok merci