Use item fight random

I want to make it so when the player uses an item they fight a random enemy.
make that item call a common event
inside that common event, use control variable to get a random troop ID and then battleprocessing with that ID
What you'll want to do is setup the item to perform a Common Event when used, like this: Silver Harp setup.png

Then set up the Common Event to start a battle through Battle Processing:
Silver Harp Common event setup.png

You can set what happens if the player Wins or Loses as you wish. If you leave them blank, nothing special will happen, just like any other random battle.
What you'll want to do is setup the item to perform a Common Event when used, like this:View attachment 110867

Then set up the Common Event to start a battle through Battle Processing:
View attachment 110868

You can set what happens if the player Wins or Loses as you wish. If you leave them blank, nothing special will happen, just like any other random battle.
Awesome thanks for the help.

Original thread: https://forums.rpgmakerweb.com/threads/use-item-fight-random.106432/