I'm new to RPG Maker MV and these forums, so sorry if I'm posting in the wrong place or doing something wrong.
I'm trying to create a Steal command for my game and the way I'm trying to make it work is:
1. Character uses the Steal skill during battle, which sets off a common event.
2. The common event takes the target enemy's ID and assigns it to a variable (for example, the default Bat enemy has the ID of 1 in the database, so the variable would be set to 1)
3. Conditional branches verify what the variable is set to and adds the specified items to the player's inventory with a chance of failure.
4. A state is added to the enemy to prevent the player from stealing from them again.
I know how to do everything except step 2, which is grabbing the target's ID and assigning it to a variable. What I'd like to know if it's possible to do that somehow, or something to a similar effect. It doesn't sound like something too crazy to I assume there's a way to do it without plugins or whatever else.
I've already done searches on Google and I don't really understand most of the posts, or the alternatives I found simply didn't work for me or were not what I'm looking for, which is why I'm making a new thread to ask for help.
Thanks in advance!
I'm trying to create a Steal command for my game and the way I'm trying to make it work is:
1. Character uses the Steal skill during battle, which sets off a common event.
2. The common event takes the target enemy's ID and assigns it to a variable (for example, the default Bat enemy has the ID of 1 in the database, so the variable would be set to 1)
3. Conditional branches verify what the variable is set to and adds the specified items to the player's inventory with a chance of failure.
4. A state is added to the enemy to prevent the player from stealing from them again.
I know how to do everything except step 2, which is grabbing the target's ID and assigning it to a variable. What I'd like to know if it's possible to do that somehow, or something to a similar effect. It doesn't sound like something too crazy to I assume there's a way to do it without plugins or whatever else.
I've already done searches on Google and I don't really understand most of the posts, or the alternatives I found simply didn't work for me or were not what I'm looking for, which is why I'm making a new thread to ask for help.
Thanks in advance!
