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

Multy-choice action with inline command

Hello everybody, In my game have just joined a new player using a warblade: warblade is cool becouse he can use stances and manouvers in the same turn to improve his skills, the problem is that i canìt settle out how to make a multy-choice for him while making an attack with a weapon. For example, I need to make 2 questions before a single attack, the first will be " do you want to use your stance? " and the second " Do you want to use this manouver? " I've tryied to make it using the fullattackflag inline command, the problem is that if i press "NO" on the first and "YES" on the second, with the full attack he will anyway do both. Here I attach my code, please tell me how can i make a real if-choice &{template:DnD35Attack} {{pcflag=true}} {{name=@{character_name}}} {{ fullattackflag = [[ ?{Attivi la tua Stance "Punishing Stance"? |No, 0d1|Sì, d1 } ]] }}  {{attack2= Punishing Stance : **Attivato** }} {{damage2=Danni: [[ 1d6 ]] }} {{subtags=ONE PUUUUUUUUUNCHHHHHHHHHHH con il suo @{weapon1name} che si legge [Cestus] ... Coincidenze? Io non credo}} {{ fullattackflag = [[ ?{Utilizzi "Wolf Fang Strike"? |No, 0d1|Sì, d1 } ]] }} {{attack1= @{weapon1name} : [[ @{weapon1attackcalc} ]] }} {{critconfirm1=Critta?: [[ @{weapon1attackcalc} ]] }} {{damage1=Danni: [[ @{weapon1damage} ]] }} {{critdmg1=+ [[ @{weapon1crit} ]] }}  {{attack3=Wolf Fang Strike: [[ @{weapon1attackcalc} ]] }} {{critconfirm3=Critta?: [[ @{weapon1attackcalc} ]] }} {{damage3=Danni: [[ @{weapon1damage} ]] }} {{critdmg3=+ [[ @{weapon1crit} ]] }} 
1602440040
GiGs
Pro
Sheet Author
API Scripter
I'm not familiar with the warblade, but I'd probably create a different macro for each manoeuvre, and in each, have just one query asking for the stance on each. If you want to present all of them, then create a macvro with a chat menu listing one button for each manoeuvre.
GiGs said: I'm not familiar with the warblade, but I'd probably create a different macro for each manoeuvre, and in each, have just one query asking for the stance on each. If you want to present all of them, then create a macvro with a chat menu listing one button for each manoeuvre. The problem is that warblade can use a stance and a manoeuvre in the same time, so i wanted to make a macro with multy-choice to make easier the use of all the abilities; in this case, my problem is to increase the dmg and also to attack with the second weapon: i can easily do one of them like you say, but it'll be nosense, i will have to make 4 different macros to have all the possibilities, and we speak about 1 stance and 1 manoeuvre, my problem will become higher as level grow
1602449486
GiGs
Pro
Sheet Author
API Scripter
I wasnt suggest doing just one. I was suggesting doing multiple macros, so that you only need to make one choice in each macro, and all possibilities would be covered. The coding will be much simpler. If you want to combine both choices, you will need to master html substitutions as described here:&nbsp; <a href="https://wiki.roll20.net/Macros#Advanced_Usage_for_Roll_Queries" rel="nofollow">https://wiki.roll20.net/Macros#Advanced_Usage_for_Roll_Queries</a> (You might have to with single queries too, unfortunately, but they'll be simpler.)
1602459375
Oosh
Sheet Author
API Scripter
You have another problem in that macro - you have 2 {{fullattackflag}} properties. A template will only ever output one of any property, and it will be the last one it receives. So in your code, the option you select for "Wolf Fang Strike" will always overwrite "Punishing Stance", making the first choice meaningless. I'm not familiar with Warblade at all, so I can't really suggest another approach.
Oosh said: You have another problem in that macro - you have 2 {{fullattackflag}} properties. A template will only ever output one of any property, and it will be the last one it receives. So in your code, the option you select for "Wolf Fang Strike" will always overwrite "Punishing Stance", making the first choice meaningless. I'm not familiar with Warblade at all, so I can't really suggest another approach. Can i use any different propertie that works like fullattackflag ? Unfortunately i haven't found any way to pass it like a normal variable, this will fix my problem
1602498614
Oosh
Sheet Author
API Scripter
Hmmmm.... well, you could disable fields with a Query choice. If you mess with the property name at all, it will not be printed in the template. So for example, if you wanted a Query to disable {{attack2}}, you just need the "No" answer to mess up the left side of the =. {{attack?{Use Stance?|Yes,2|No,askf}=[[1d20 + @{anger_mismanagement}]] }} This will output {{attack2}} if you choose Yes, but nothing if you choose No. I'm not really familiar with the template though, it could possibly have an effect on other fields if you disable one. Unless, of course, there is a hidden property of this template called {{attackaskf}}... then something weird might happen.
Oosh said: Hmmmm.... well, you could disable fields with a Query choice. If you mess with the property name at all, it will not be printed in the template. So for example, if you wanted a Query to disable {{attack2}}, you just need the "No" answer to mess up the left side of the =. {{attack?{Use Stance?|Yes,2|No,askf}=[[1d20 + @{anger_mismanagement}]] }} This will output {{attack2}} if you choose Yes, but nothing if you choose No. I'm not really familiar with the template though, it could possibly have an effect on other fields if you disable one. Unless, of course, there is a hidden property of this template called {{attackaskf}}... then something weird might happen. Tryed but still not working I think i'm quite far from understanding the code used to make template and functions itself, is there a link where the base code is explained? Myabe this will help me to find out a solution (maybe not a good one, but still better than nothing)
In the midtime i've "fixed" the problem creating stand alone macros that my player can use ... i would love to make a just one menu but I'm neither able to call consecutive macros ...