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 a power card macro

Hi all, I've been working on a macro to bring up clickable links in the chat window that do the basic attack for each of the first 6 weapons. I've got the basics down, but am having trouble with conditionals... not all of my players have 6 weapons so I would like the table to only show the rows that have an actual Weapon Name (Rather than the weapon number I've assigned on their sheets)  Note: I am using the 3.5 Sheet.. No matter how I set it, the script evaluates the first conditional, and then stops, no matter if the result is true or false.  If it is false it will just display the title, if true the title and the first item... however none of the other conditionals are evaluated/displayed. I'm sure this is just my misunderstanding,  Thanks in advance for any help!!! !power {{ --name|ATTACKS --!Hello|~C [TTB 'width=100%' 'bgcolor=Black']~C --?? ( @{weapon1name} ) <> 1 ?? !Hello2|~C[TRB] [TDB 'width=100%']**$$#c00|[@{weapon1name}](!
@{SELECTED|weapon1attackmacro})$$**[TDE] [TRE]~C --?? ( @{weapon2name} ) <> 2 ?? !Hello3|~C[TRB] [TDB 'width=100%']**$$#c00|[@{weapon2name}](!
@{SELECTED|weapon2attackmacro})$$**[TDE] [TRE]~C --?? ( @{weapon3name} ) <> 3 ?? !Hello4|~C[TRB] [TDB 'width=100%']**$$#c00|[@{weapon3name}](!
@{SELECTED|weapon3attackmacro})$$**[TDE] [TRE]~C --?? ( @{weapon4name} ) <> 4 ?? !Hello5|~C[TRB] [TDB 'width=100%']**$$#c00|[@{weapon4name}](!
@{SELECTED|weapon4attackmacro})$$**[TDE] [TRE]~C --?? ( @{weapon5name} ) <> 5 ?? !Hello6|~C[TRB] [TDB 'width=100%']**$$#c00|[@{weapon5name}](!
@{SELECTED|weapon5attackmacro})$$**[TDE] [TRE]~C --?? ( @{weapon6name} ) <> 6 ?? !Hello7|~C[TRB] [TDB 'width=100%']**$$#c00|[@{weapon6name}](!
@{SELECTED|weapon6attackmacro})$$**[TDE] [TRE] --!Hello8|[TTE]}}
1587914174
Kraynic
Pro
Sheet Author
I'm no help directly on helping you solve this.&nbsp; You might check out the Universal Chat Menu script to see how that script solves stopping when a repeating section runs out.&nbsp; Maybe there will be some inspiration there.&nbsp; The script code is in the second post:&nbsp; <a href="https://app.roll20.net/forum/post/7474530/script-call-for-testers-universal-chat-menus/?pagenum=1" rel="nofollow">https://app.roll20.net/forum/post/7474530/script-call-for-testers-universal-chat-menus/?pagenum=1</a>