Hallo everyone, hope you're all doing well.
So, I'm currently trying to add a item that can stock pieces of slime and this item only fits 20 pieces of slime simultaneously.
What I'm having trouble to do is that so when you try to put the Slimes inside the item it will try to stock all of the piecesyou have, but will store only the amount that fits inside the item.
So I created the variables 3(the amount of slimes already stored in the item), 6(the total avaliable space in the item), 7(the total of slimes that the player have) and 8(the result of the space avaliable minus the amount of slimes the player have)
Here are the screenshots of the event:
Almost forgot hehe
Informations about this Example:
Total amount o pieces a glass can hold: 20
Already stored in the glass: 10
Amount I have in the inventory: 20
Expected result: store 10 Slimes and letf 10 off
Result I'm getting: all the slimes were stored, but the variable Current Blue Slime Stocked have gone tto 40??? what?
So, I'm currently trying to add a item that can stock pieces of slime and this item only fits 20 pieces of slime simultaneously.
What I'm having trouble to do is that so when you try to put the Slimes inside the item it will try to stock all of the piecesyou have, but will store only the amount that fits inside the item.
So I created the variables 3(the amount of slimes already stored in the item), 6(the total avaliable space in the item), 7(the total of slimes that the player have) and 8(the result of the space avaliable minus the amount of slimes the player have)
Here are the screenshots of the event:
Almost forgot hehe
Informations about this Example:
Total amount o pieces a glass can hold: 20
Already stored in the glass: 10
Amount I have in the inventory: 20
Expected result: store 10 Slimes and letf 10 off
Result I'm getting: all the slimes were stored, but the variable Current Blue Slime Stocked have gone tto 40??? what?