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 .
×
The Roll20 Black Friday sale is live now! Up to 30% Off Your Favorite Content!

The tooltip dice's hover reveals secret NPC's attributes. How to solve ?

1454964575

Edited 1454964728
Hello, I'm french so please be tolerant with my english ;) I'm trying to do something like that : The player launches 1D6 and the result is compared to a NPC attribute. If the player's dice is superior to the NPC attribute, it's a win. If not, it's a loose. The NPC's attributes values are secret for players. I have done this : /me tries to practice Coercion on the @{target|Name} and obtains [[{1D6}>@{target|Coercion}f@{target|Coercion}]] success The result is displayed like that : Player tries to practice Coercion on Général and obtains 0 success or : Player tries to practice Coercion on Général and obtains 1 success Coercion is my attribute, Général is my NPC. I have tokens associated with each NPC (for targets) and 1 macro for each 4 attributes. The problem : When the player hovers the "0" or the "1" success in the result, it displays a tooltip with the entire formula : Rolling {1D6}>5f5 = {(5)}, where 5f5 is the level of the Général Coercion attribute, and {(5)} the result of the dice. My problem is that the NPC's attributes values have to be kept secret ! Is there any solution with macros, to solve this problem ? Hiding the tooltip formula for players, or finding another way to obtain the same macro effect ? I thank you by advance !
Try nesting it in another set of brackets like this: [[ [[{1D6}>@{target|Coercion}f@{target|Coercion}]] ]]
1454966088

Edited 1454966192
Thank you very much, it's working ! But it creates for me another problem : in my game, the player has also the opportunity to use bonuses : resources, arguments and plebiscites. These bonuses are for moment only choices to do during the dice roll, without counting how much the player of each (they only have 3 resources in the game), for more simplicity. I did this (with your solution of double nesting) : [[ [[{1D6+ ?{Ressources | Non, [[0]] |Oui, [[1]] } + ?{Argument | Non, [[0]] | Oui, [[1]] } + ?{Plébiscite | Non, [[0]] |Oui,[[1]] }}>@{target|Coercition}f@{target|Coercition}]] ]] Player chooses the target (a NPC), chooses using or not Resource, argument and plebiscite (using one gets +1 to dice roll). The problem is that I need to verify if the player has used one or other bonuses. In the double nesting solution, I can't watch that anymore because this solution hides the formula for both player and GM. Is there any solution to indicate for both player and GM or only for GM, the use of one or other bonus ? :)
1454966501

Edited 1454966623
Try just nesting the target number formula, or is that still too much info? Also, no need to use inline rolls for the roll queries. [[{1D6+ ?{Ressources|Non,0|Oui,1} + ?{Argument|Non,0|Oui,1} + ?{Plébiscite|Non,0|Oui,1]}}>[[@{target|Coercition}f@{target|Coercition}]] ]]
It doesn't work : it gives the attribute's value (that is the information I want to be kept secret) The tooltip in hovering the result : Rolling {1D6+ 0 + 0 + 0 }>5 = {(5)+0+0+0} The first 5 is the NPC's attribute value. The second 5 is the dice's result. Other problem I don't understand : with the last modification, if the dice is of equal value with the NPC's attribute, it is considered like a success. Before (and like I want it to be), an equal value wath considered like a failure. The dice has to be superior of the attribute to be a success.
1454968840

Edited 1454969055
Well, there's this way... but it outputs a lot more to chat. /me tries to practice Coercion on @{target|token_name} and obtains [[ [[{1D6+ ?{Ressources|Non,0|Oui,1} + ?{Argument|Non,0|Oui,1} + ?{Plébiscite|Non,0|Oui,1}}>@{target|Coercition}f@{target|Coercition}]] ]] successes. Ressources: [[?{Ressources|Non,0|Oui,1}]] | Argument: ?{Argument|Non,0|Oui,1} | Plébiscite: [[?{Plébiscite|Non,0|Oui,1}]]
1454969435

Edited 1454969610
Brisecous I. said: Other problem I don't understand : with the last modification, if the dice is of equal value with the NPC's attribute, it is considered like a success. Before (and like I want it to be), an equal value wath considered like a failure. The dice has to be superior of the attribute to be a success. It's because the > is actually a ≥ So, instead of [...]>@{target|Coercition}f@{target|Coercition}, you'll probably want [...]>[[@{target|Coercition} + 1]]f<@{target|Coercition} Documentation
Amazing ! It works ! Thank you so much. :)