Random Encounter (Merchants/Travelers/Bandits)

Example:
You are moving about the world map suddenly an encounter appears, it's a group of bandits! They tie you up and steal some gold then leave.

So I've thought of two ways of doing this.

1. Have on your world map a step-counter, (works similar to a day and night system) that after a set number of steps pulls up a random event that appears like an encounter.

Pros:
-Can call shop processing, battle processing, and any other events with ease.
Cons:
-Can't be set to single areas on the map without the use of changing a switch that changes the type of encounter based on where you are or what building you have entered, etc,etc.

(I haven't implemented it yet but would this interfere with battles on the map? or does it automatically have priority over battle processing?)


2. Have a random troop that has event calls that say what the random encounter is and does, then aborts the battle.

Pros:
-Doesn't require a step counter common event or event switches and variables.
-Can be set for single areas on the map. (zone 1,2,3...)
Cons:
-You can't call up things like the item shop in the battle screen, not without a script i believe?(I've tried adding shop processing in the battle events it doesn't work). This means a merchant selling something would be completely scripted (he may have an herb or antidote to sell or ask for a certain armor). You could do a choice list however for the merchant troop that has a list of items he's sell or want to trade...


Has anyone thought of other ways of doing this?
This
Might be what you're looking for.
"How do I...?" questions belong in the support forum for the engine you are using. 'Game Mechanics Design' deals at a more conceptual level with aspects of game play. Based on the info under your avatar...
Moved to: RPGMaker VXAce
@gub
I'll look this over in a little.
@Kes
It was more of a thread to discuss methods of implementing the said encounters. I know two ways I could do it, I wanted to see if there were more possible methods. edit: I see what you mean now.
It is for VX Ace users
Tsukihime wrote a script that allows you to call common events just before a random encounter - you can use that to have the random effect of the encounter table without the need to abandon a battle.
I'll look into that also, thanks. this thread can be closed.
Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/random-encounter-merchants-travelers-bandits.76728/