Hello! i am very sorry if this post is not in the place where it should be, its my first time asking for help in this site (ᵕ ´ ∇ ˋ ˶)
I have a system in my game of throwing various objects during a battle (made this using a skill that cost items), for this you can use multiple objects (cups, pots, pans). Since there are many objects, it is cumbersome to have them appear in the objects menu within the battle (because there are many of them, they would hinder the ability to see other more important objects) but it is still necessary for the player to be able to see how many objects they have available to throw. For this, I thought of a variable that considers how many objects you have and gives you a value corresponding to it, to be able to add it to the battlehud gui.
I tried to achieve this through a tutorial I found, but it's not really working for me, i had never scripted, I'm sure there's something I did wrong.
To test the variable, i used this event. But it doesn't work, having all the objects in the inventory, my idea is that in this case, the value is equal to 6
This is where i got the script tutorial from --> https://steamcommunity.com/sharedfiles/filedetails/?id=1889421166
This is where i got the game variable from --> https://forums.rpgmakerweb.com/index.php?threads/script-call-to-get-item-quantity.133619/
I hope this is understandable and it haves a solution! thank you very much, I'm sorry for the RPG Maker interface in Spanish.
I have a system in my game of throwing various objects during a battle (made this using a skill that cost items), for this you can use multiple objects (cups, pots, pans). Since there are many objects, it is cumbersome to have them appear in the objects menu within the battle (because there are many of them, they would hinder the ability to see other more important objects) but it is still necessary for the player to be able to see how many objects they have available to throw. For this, I thought of a variable that considers how many objects you have and gives you a value corresponding to it, to be able to add it to the battlehud gui.
I tried to achieve this through a tutorial I found, but it's not really working for me, i had never scripted, I'm sure there's something I did wrong.
To test the variable, i used this event. But it doesn't work, having all the objects in the inventory, my idea is that in this case, the value is equal to 6
This is where i got the script tutorial from --> https://steamcommunity.com/sharedfiles/filedetails/?id=1889421166
This is where i got the game variable from --> https://forums.rpgmakerweb.com/index.php?threads/script-call-to-get-item-quantity.133619/
I hope this is understandable and it haves a solution! thank you very much, I'm sorry for the RPG Maker interface in Spanish.