We use Cookies to help personalize and improve Roll20. For more information on our use of non-essential Cookies, visit our Privacy Policy here.
Accept
Advertisement Create a free account

Trying to add multiple drop down inputs

1596301013
I can seem to get this to work. &{template:default} {{name=@{selected|token_name}'s End of Turn}}{{?{Move Action|[[0|[[1|[[2|[[3|[[4|[[5|[[6|[[7|[[8|[[9|[[10} +?{Main Action|[[0|[[1|[[2|[[3|[[4|[[5|[[6|[[7|[[8|[[9|[[10|[[11|[[12|[[13|[[14|[[15} +?{Any Time Actions|[[0|[[1|[[2|[[3|[[4|[[5|[[6|[[7|[[8|[[9|[[10}]]}} This isn't the whole thing but I want those three inputs to add together.  Thanks for any help.
1596302591
GiGs
Pro
Sheet Author
API Scripter
It's hard to read that - but taking the first entry of each query, it looks like you have: [[0 +[[0 +[[0]] That's clearly not going to be a valid roll, you dont have enough ]] brackets. I recomment removing all the [[ and ]] from inside the queries, and put them around the queries, like [[?{Move Action|0|1|2|3|4} + ?{Main Action|0|1|2|3|4} + ?{Any Time Actions|0|1|2|3|4} ]]
1596306811
That worked great.  I'm just learning this stuff so unfortunately I do a lot of keep adding and see if it works.  The last thing I want to do with it is add it to the selected token Initiative.   &{template:default} {{name=@{selected|token_name}'s End of Turn}}{{Action Points Used=[[?{Move Action|0|1|2|3|4|5|6|7|8|9|10} + ?{Main Action|0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15} + ?{Any Time Actions|0|1|2|3|4|5|6|7|8|9|10} ]]}} !forward-init   I have the script installed and have been successfully using "!forward-init  ?{Adjustment}"  I'm just trying to call out the adjustments.
1596307267
GiGs
Pro
Sheet Author
API Scripter
I dont know what the forward-init script is, or what adjustments are, or how initiative works in the system you are using or whether it is listed in your sheet, so you should understand how it's difficult to help you there. If youre wanting to use an attribute on the character sheet, you just use that attribute name with selected, but your token must be linked to a character sheet: !forward-init  @{selected|whatever-the-attribute-name-is}