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

Macro for adding text to the roll

Hey, I am looking for a possibility to create a macro where you can add text during roll. Lets say i have Damage Type=Impact}}{{Special=Reliable}} and i want to have possibility to add lets say Explosion with Impact and in Special Toxic (1) with Reliable. There is my macro below. Any ideas? &{template:default} {{name=Good craftsmanship Autogun}} {{Damage 1=[[1d10+3+?{Damage mod|0}]]}}{{Damage 2=[[1d10+3+?{Damage mod|0}]]}}{{Damage 3=[[1d10+3+?{Damage mod|0}]]}}{{Damage 4=[[1d10+3+?{Damage mod|0}]]}}{{Damage 5=[[1d10+3+?{Damage mod|0}]]}}{{Damage 6=[[1d10+3+?{Damage mod|0}]]}}{{Damage 7=[[1d10+3+?{Damage mod|0}]]}}{{Damage 8=[[1d10+3+?{Damage mod|0}]]}}{{Damage 9=[[1d10+3+?{Damage mod|0}]]}}{{Damage 10=[[1d10+3+?{Damage mod|0}]]}}{{Penetration=[[1d0+?{Penetration mod|0}]]}}{{Damage Type=Impact}}{{Special=Reliable}}
1631978671
timmaugh
Forum Champion
API Scripter
Can you explain a little more about what you want to accomplish? Because you can just add text beside the existing text rather easily: {{Damage Type=Impact}} ...becomes... {{Damage Type=Impact Explosion}} So I can't think that's what you're looking for. Is there a time when you would have the extra text vs. times when you would not?
1631979152
The Aaron
Roll20 Production Team
API Scripter
Something like: &{template:default} {{name=Good craftsmanship Autogun}} {{Damage 1=[[1d10+3+?{Damage mod|0}]]}}{{Damage 2=[[1d10+3+?{Damage mod|0}]]}}{{Damage 3=[[1d10+3+?{Damage mod|0}]]}}{{Damage 4=[[1d10+3+?{Damage mod|0}]]}}{{Damage 5=[[1d10+3+?{Damage mod|0}]]}}{{Damage 6=[[1d10+3+?{Damage mod|0}]]}}{{Damage 7=[[1d10+3+?{Damage mod|0}]]}}{{Damage 8=[[1d10+3+?{Damage mod|0}]]}}{{Damage 9=[[1d10+3+?{Damage mod|0}]]}}{{Damage 10=[[1d10+3+?{Damage mod|0}]]}}{{Penetration=[[1d0+?{Penetration mod|0}]]}}{{Damage Type=Impact}}{{Special=Reliable ?{Additional} }}
1631980819

Edited 1631980893
I dont want to eddit the macro in editing option before i roll. I want create a possibility to create a text WHEN i click to roll and have options like adding numbers in mod. Someting like i dont know, Special=Reliable+? {TEXT HERE } or something like that. Dont know how to create macros so i am asking here that is there an option to create something like that in my code. I hope you understand now what i mean ^^ @The Aaron, yep something like that. Thank you very much :)
1631986877
Kraynic
Pro
Sheet Author
Burn said: I dont want to eddit the macro in editing option before i roll. I want create a possibility to create a text WHEN i click to roll and have options like adding numbers in mod. Someting like i dont know, Special=Reliable+? {TEXT HERE } or something like that. Dont know how to create macros so i am asking here that is there an option to create something like that in my code. I hope you understand now what i mean ^^ There is a lot of info on the wiki.&nbsp; The following 2 pages contain a lot of info and examples on how to construct macros: <a href="https://wiki.roll20.net/Dice_Reference" rel="nofollow">https://wiki.roll20.net/Dice_Reference</a> <a href="https://wiki.roll20.net/Macros" rel="nofollow">https://wiki.roll20.net/Macros</a> That first one has a section on queries.&nbsp; While the example deals with inserting numbers into rolls, you can just as easily have text in the query. <a href="https://wiki.roll20.net/Dice_Reference#Roll_Queries" rel="nofollow">https://wiki.roll20.net/Dice_Reference#Roll_Queries</a>