My latest script can handle this and much more
😉
ct-bolt.itch.io
Setup would be something like this:
Spoiler: Parameter setup & Other info
View attachment 225538
Using the following Parameters
Class: Game_Party
Property of function: prototype
Function: consumeItem
This script used in the "post script" parameter would set game variable 50 to become the item name:
$gameVariables.setValue(50, item.name);
Of course you can alter the script to become whatever you desire
😉
If you want to set it to a certain property of the item like name, id, etc.
Here is the data class info for "item" for your reference
😉
Spoiler: Video of setup & how it looks in game
I have been trying your script for a while but no success. I get this error:
I have put the code as follows:
I also did not understand very well what you wanted to tell me with your script or how that code worked. If I understood correctly, the code makes that when I use an item "I put the name in "item.name" " it makes the variable 50 change to... I don't know xD. Maybe it's me who doesn't understand English very well since I'm from Spain.
I don't know if I was understood because I was very brief with my description of what I wanted. What I want to do is that by consuming a "CatCake" object in this case, we change a variable "Object_used" we could call a certain value "1,2,3,4"
So to know which item has used in the first place which object I used according to the variable:
Object_used=1 - CatCake
Item_used=2 - Potion
Item_used=3 - Water
I'm sorry to repeat it again, it's to know if I understand what I meant
😅.