Using one variable to change another in the stats page

Hello! I’m trying to get one variable to change another that would show up in the stats page and its simply not, I’m not getting any errors or issues proceeding to the next page, I’m attempting to use an “If” statement and a good amount of “elseif” statements, Any help would be greatly appreciated and if i worded this poorly let me know ill try to explain to the best of my abilities.

Summary
        *set reactions +1
        *if reactions = 0 
                *set reaction2 "[1|2|3|4|5|6|7|8|9|10]"
                *goto label1
                *elseif reactions = 1
                        *set reaction2 "[[b]1[/b] |2|3|4|5|6|7|8|9|10]"
                        *goto label1
                *elseif reactions = 2
                        *set reaction2 "[1|[b]2[/b]|3|4|5|6|7|8|9|10]"
                        *goto label1
                *elseif reactions = 3
                        *set reaction2 "[1|2|[b]3[/b]|4|5|6|7|8|9|10]"
                        *goto label1
                *elseif reactions = 4
                        *set reaction2 "[1|2|3|[b]4[/b]|5|6|7|8|9|10]"
                        *goto label1
                *elseif reactions = 5
                        *set reaction2 "[1|2|3|4|[b]5[/b]|6|7|8|9|10]"
                        *goto label1
                *elseif reactions = 6
                        *set reaction2 "[1|2|3|4|5|[b]6[/b]|7|8|9|10]"
                        *goto label1
                *elseif reactions = 7
                        *set reaction2 "[1|2|3|4|5|6|[b]7[/b]|8|9|10]"
                        *goto label1
                *elseif reactions = 8
                        *set reaction2 "[1|2|3|4|5|6|7|[b]8[/b]|9|10]"
                        *goto label1
                *elseif reactions = 9
                        *set reaction2 "[1|2|3|4|[b]5[/b]|6|7|8|9|10]"
                        *goto label1
                *elseif reactions = 10
                        *set reaction2 "[1|2|3|4|[b]5[/b]|6|7|8|9|[b]10[/b]"
                        *goto label1
                *else
                            *goto label1
           


I have this in the stats page as well
Reactions : $!{reaction2}
And this in the startup
*create reactions 1
*create reaction2 "[1|2|3|4|5|6|7|8|9|10]"

I’m likely doing this in a way that’s really obtuse.

Check your indentations, is the first thing that catches my eye. The elseifs need to be on the same level than the original if.

1 Like

Thank you very much, I majorly overthought my issue, I hope you have a great day.

This topic was automatically closed 24 hours after the last reply. If you want to reopen your WiP, contact the moderators.