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
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