Hello. I've had a long period off MV and now that I'm starting again, I'm having an issue with conditional statements.
I have a variable called Spareable. I set three conditions depending on how high it is (1, 2, >=3) but it doesn't work. I can only see the effects up to 2, 3 and higher don't work. I'm wondering what's wrong with my algorithm.
Here is the code:
:When Cheer
◆Control Variables:#0026 Spareable += 1
◆If:Spareable = 1
◆Text:None, Window, Bottom
:Text:* You gave Napstablook a patient smile.
◆Text:None, Window, Bottom
:Text:heh...
◆
:End
◆If:Spareable = 2
◆Text:None, Window, Bottom
:Text:* You told Napstablook a little joke.
◆Text:None, Window, Bottom
:Text:heh heh...
◆
:End
◆If:Spareable ≥ 3
◆Text:None, Window, Bottom
:Text:* Napstablook wants to show you something.
◆Text:None, Window, Bottom
:Text:let me try...
:Text:* Napstablook's tears turn into a hat.
:Text:i call it "dapper blook"
◆Text:None, Window, Bottom
:Text:do you like it...
(It's a fangame. I'm playing around so I can figure out how to use MV before making an original game.)
Thanks for reading.
I have a variable called Spareable. I set three conditions depending on how high it is (1, 2, >=3) but it doesn't work. I can only see the effects up to 2, 3 and higher don't work. I'm wondering what's wrong with my algorithm.
Here is the code:
:When Cheer
◆Control Variables:#0026 Spareable += 1
◆If:Spareable = 1
◆Text:None, Window, Bottom
:Text:* You gave Napstablook a patient smile.
◆Text:None, Window, Bottom
:Text:heh...
◆
:End
◆If:Spareable = 2
◆Text:None, Window, Bottom
:Text:* You told Napstablook a little joke.
◆Text:None, Window, Bottom
:Text:heh heh...
◆
:End
◆If:Spareable ≥ 3
◆Text:None, Window, Bottom
:Text:* Napstablook wants to show you something.
◆Text:None, Window, Bottom
:Text:let me try...
:Text:* Napstablook's tears turn into a hat.
:Text:i call it "dapper blook"
◆Text:None, Window, Bottom
:Text:do you like it...
(It's a fangame. I'm playing around so I can figure out how to use MV before making an original game.)
Thanks for reading.