RPG Maker Forums

I'm sure this is a very easy fix but I'm way too tired to figure it out right now and I need to complete this tonight aha.

I have a bucket that the player can store fish in and take fish out of again, up to 4 fish.
If you put 4 fish in however, the script stops working. It displays"there are now 4 fish in the bucket" then "there are already 4 fish in the bucket" and then neither put fish in nor take fish out work. I haven't ended it properly. Pls help my sleep addled brain.
This is the script:

Put fish in, take fish out
When put fish in:
Con branch var "fish in inventory" >0 else "you have no fish"
Con branch var "fish in bucket" = 0 text: "there is now 1 fish in the bucket." var. "fish in bucket" +1 var "fish in inventory" -1
else: next conditional branch
Con branch var "fish in bucket" = 1 text: "there are now 2 fish in the bucket" var. "fish in bucket" +1 var "fish in inventory" -1
else: next conditional branch
Con branch var "fish in bucket" = 2 text: "there are now 3 fish in the bucket" var. "fish in bucket" +1 var "fish in inventory" -1
else: next conditional branch
Con branch var "fish in bucket" = 3 text: "there are now 4 fish in the bucket" var. "fish in bucket" +1 var "fish in inventory" -1 else: next conditional branch
Con branch var "fish in bucket" = 4 text: "there are already 4 fish in the bucket" end.
When take fish out:
Con branch var "fish in bucket" >0 else "there are no fish in the bucket"
Con branch var "fish in bucket" =1 text "you take a fish from the bucket, now 0" var "fish in bucket" -1 var "fish in inventory" +1
else: next conditional branch
Con branch var "fish in bucket" =2 text "you take a fish from the bucket, now 1" var "fish in bucket" -1 var "fish in inventory" +1
else: next conditional branch
Con branch var "fish in bucket" =3 text "you take a fish from the bucket, now 2" var "fish in bucket" -1 var "fish in inventory" +1
else: next conditional branch
Con branch var "fish in bucket" =4 text "you take a fish from the bucket, now 3" var "fish in bucket" -1 var "fish in inventory" +1

Latest Threads

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,038
Messages
1,018,466
Members
137,821
Latest member
Capterson
Top