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

Help with Macro

I'm trying to set up a macro where it identifies a successful roll and indicates the success. Right now it just says "1" for success or "0" for failure. Does anyone know how to get it to work? I placed the macro below. /me tries to open the lock [[1d100<75]]
Not much more you can do then what you already have, some alternatives would be /me tries to open the lock [[1d100<75]] 1 = success/ 0 = failure /me tries to open the lock [[1d100]] <75 = success /me tries to open the lock [[1d100]] a success on 75 or less
Excellent! Thank you!
1391416003

Edited 1391416209
I have a question about macro help as well. in the game system that i use if someone was attacking an NPC with a spell (metaphysics) the defender would defend with metaphysics successes versus successes winner has the higher number. but if i am running 4 people and they are fighting 8 goblins for instance i was wondering if there is a way to use a macro to make it where the PC attacks the NPC the player rolls and the NPC automatically rolls to defend without me hunting down the NPC and rolling the macro myself something like /roll [[@{Metaphysics}+@{Metaphysics Technomancer}+@{Metaphysics refinement technohacking}]]d10!10>5f1 - @{target|#metaphysics} = net successes #metaphysics being the macro for the NPC targeted when i try it i get No attribute was found for targeted token by the name of #metaphysics
1391440509
Gauss
Forum Champion
Charles, to do what you want in your last post you need to set up a character sheet for the token with a corresponding Ability macro and then use %{target|metaphysics} in place of @{target|#metaphysics}. Here is a link on how to correctly link multiple tokens to a single sheet: <a href="https://wiki.roll20.net/Linking_Tokens_to_Journals" rel="nofollow">https://wiki.roll20.net/Linking_Tokens_to_Journals</a>
1391440714

Edited 1391443656
thank you so very much Gauss. is there anyway to say what if the attacker or the defender is the clear winner? IE saying Gauss defends the attack or Charles hits Gauss?
So I'm trying to write a macro that has an "IF" modifier... meaning /roll 1D20+16 vs AC [[D8+6]] Damage If die roll is 15-20 /roll 3D12 Critical damage. it's the "IF" line that probably needs some fancy symbol or something to make it work. The top half works, I have no idea how or if the bottom half can work...
1391470944
Pat S.
Forum Champion
Sheet Author
Otis said: it's the "IF" line that probably needs some fancy symbol or something to make it work. The top half works, I have no idea how or if the bottom half can work... The roller doesn't support "IF" so you would need to use the API but that is a mentor subscription feature.
Unfortunately, if/then statements are handled entirely within the API.
1391511652
Gauss
Forum Champion
Charles H., any kind of If/Then statement would need the API. It should be pretty easy for the API to do what you are asking for.