I’m having trouble with fixing an error found by randomtest.
The error I’m getting is: visited this line too many times.
I’ve gotten this previously when I looped back through choices, but this section doesn’t involve a loop. I even changed the numbers from 1/2 to true/false.
The scene establishes the history between two characters. The scene can take place at either the start or the end of the chapter. If it takes place at the start, then the next label is “luvia_answer_two.” If it takes place at the end, the next label is “luvia_late_2.”
The line *label luvia_answer_two
is the one getting marked for the error.
My code looks like this:
(I’ve snipped the text from each choice as it is just text).
*label luvia_history
*if asexual = false
*set luvia_actions 3
*if asexual = true
*set luvia_actions ace_type
[Text, asking a question re: your shared history]
*choice
# No.
*if luvia_meet = true
*goto luvia_answer_two
*if luvia_meet = false
*goto luvia_late_2
# Yes, once. I'm not proud of it.
*label luvia_encounter
[text w/ multireplace for if proud and if not]
*if luvia_proud = true
*return
*if luvia_meet = false
*goto luvia_end_encounter
*label luvia_end_encounter
[text if not proud]
*if luvia_meet = true
*goto luvia_answer_two
*if luvia_meet = false
*goto luvia_late_2
# Yes, once. I enjoyed it.
*gosub luvia_encounter
[text if proud]
*if luvia_meet = true
*goto luvia_answer_two
*if luvia_meet = false
*goto luvia_late_2
# It wasn't just once.
*if luvia_meet = true
*goto luvia_answer_two
*if luvia_meet = false
*goto luvia_late_2
*label luvia_answer_two
[story continues]
I’m tempted to just copy/paste this whole encounter again at the end and not bother with the luvia_meet variable at all. Then I can probably even make this a fake_choice and get rid of the luvia_answer_two label entirely. I just hate to repeat like that, though.