I wanted to keep the question simple but I understand it could be hard to answer without the full context. So let's explain the entirety of my problem.
I have this chat menu with buttons able to call 3 abilities for the caracter Nikita: "melee-attack", "range-attack" and "nb-strike"
Abilitie "menu":
/w Nikita &{template:default} {{name=Choix d'action }} {{Attaque :=[Mélée](~Nikita|melee-attack) [Distance](~Nikita|range-attack)}} {{Acharnement :=[Furax](~Nikita|nb-strike)}}
Abilitie "nb-strike":
&{template:default} {{name=Préparation d'Acharnement 卵亂}} {{Nombre de coups lancés : =[[d3+1]]}} {{[Démarrer l'Acharnement](~Nikita|acharnement)}}
We are looking for "nb-strike" since this macro give the nomber of shots and can call my drop-down list call "acharnement". My way to deal with the problem I talked about higher was to start the list with a button. This way I can read the nomber of shot and then select the correct option.
Abilitie "acharnement"
?{Nombre de coups |
2 coups, &{template:default} {{name=Acharnement 望卵}} {{Vos capacités en force : =@{Nikita|Force}}} {{ Tentative n°1 :=[[d100]] | @{Nikita|Force}}} {{*Schlak !* Dégâts du 1er coup : =[[d@{Nikita|Contact}+@{Nikita|Contact}]]}} {{ Tentative n°2 :=[[d100]] | @{Nikita|Force}}} {{*Bim !* Dégâts du 2nd coup : =[[d@{Nikita|Contact}+@{Nikita|Contact}]]}} |
3 coups, &{template:default} {{name=Acharnement 望卵}} {{Vos capacités en force : =@{Nikita|Force}}} {{ Tentative n°1 :=[[d100]] | @{Nikita|Force}}} {{*Schlak !* Dégâts du 1er coup : =[[d@{Nikita|Contact}+@{Nikita|Contact}]]}} {{ Tentative n°2 :=[[d100]] | @{Nikita|Force}}} {{*Bim !* Dégâts du 2nd coup : =[[d@{Nikita|Contact}+@{Nikita|Contact}]]}} {{ Tentative n°3 :=[[d100]] | @{Nikita|Force}}} {{*Bonk !* Dégâts du 3ème coup : =[[d@{Nikita|Contact}+@{Nikita|Contact}]]}} |
4 coups, &{template:default} {{name=Acharnement ️望卵}} {{Vos capacités en force : =@{Nikita|Force}}} {{ Tentative n°1 :=[[d100]] | @{Nikita|Force}}} {{*Schlak !* Dégâts du 1er coup : =[[d@{Nikita|Contact}+@{Nikita|Contact}]]}} {{ Tentative n°2 :=[[d100]] | @{Nikita|Force}}} {{*Bim !* Dégâts du 2nd coup : =[[d@{Nikita|Contact}+@{Nikita|Contact}]]}} {{ Tentative n°3 :=[[d100]] | @{Nikita|Force}}} {{*Bonk !* Dégâts du 3ème coup : =[[d@{Nikita|Contact}+@{Nikita|Contact}]]}} {{ Tentative n°4 :=[[d100]] | @{Nikita|Force}}} {{*Schling !* Dégâts du 4ème coup : =[[d@{Nikita|Contact}+@{Nikita|Contact}]]}}
}
Here is the list with each option making 2, 3 or 4 rolls for 2, 3 or 4 attacks.