Random Encounter Options

udime123

Director of Fate
Veteran
Joined
Mar 29, 2018
Messages
98
Reaction score
14
First Language
English
Primarily Uses
RMMV
Hello!
So, I'd like to give my players the option to affect the rate of encounters, being able to opt for having more or less encounters as they please. It seems like a plugin that would probably exist by now, but I haven't been able to find it in my searches.

Does anyone know where I could get a plugin that gives this kind of option (preferably one compatible with Yanfly's option core)?
 

sura_tc

Loner
Veteran
Joined
Jul 6, 2016
Messages
429
Reaction score
327
First Language
Korean
Primarily Uses
Other
In my experience, random encounter is heavily frowned upon nowadays, so I stopped using them.

Instead, on map encounters seem better which gives an indirect option for players to avoid enemies at will.
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,528
Reaction score
14,261
First Language
English
Primarily Uses
RMVXA
I thought Yanfly made an option for this? If not its usually done by adding the value of a variable to the value you set in the engine for steps before a random encounter, and then you use a slider to set how much that variable is.
 

udime123

Director of Fate
Veteran
Joined
Mar 29, 2018
Messages
98
Reaction score
14
First Language
English
Primarily Uses
RMMV
In my experience, random encounter is heavily frowned upon nowadays, so I stopped using them.

Instead, on map encounters seem better which gives an indirect option for players to avoid enemies at will.
On map encounters are a major headache for me as a player, so after talking with my team we ultimately decided to go with random encounters because it's significantly less frustrating. However, I understand some players aren't very fond of high encounter rates which is why I wanted to give the option to decide how frequently enemies appear.
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,528
Reaction score
14,261
First Language
English
Primarily Uses
RMVXA
@udime123 : Maybe you could go the bravely default route and let players turn them off with a switch? I coded something for that in ACE but I don't know JavaScript so can't do it for you in MV. I do know it was pretty quick to code though.

Though one option to consider is you could just give players an item they can equip at any time when they don't want random encounters. Maybe make it an accessory and they get it at the start of the game? Just a thought in case someone isn't able to code this for you in MV.
 

udime123

Director of Fate
Veteran
Joined
Mar 29, 2018
Messages
98
Reaction score
14
First Language
English
Primarily Uses
RMMV
@udime123 : Maybe you could go the bravely default route and let players turn them off with a switch? I coded something for that in ACE but I don't know JavaScript so can't do it for you in MV. I do know it was pretty quick to code though.

Though one option to consider is you could just give players an item they can equip at any time when they don't want random encounters. Maybe make it an accessory and they get it at the start of the game? Just a thought in case someone isn't able to code this for you in MV.
Yeah, we were planning around the possibility that we might not be able to get the plugin, so at the moment we've got cheap and accessible items that increase or decrease encounter rates.
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,528
Reaction score
14,261
First Language
English
Primarily Uses
RMVXA
I'll post the ruby code here in case someone can port it to JavaScript (and to whomever does this, yes you have my permission to do so):

Code:
class Game_Player < Game_Character

 

  #Set up all aliased functions here

  alias bg_map_encounter_switch_update_encounter update_encounter

 

 #Alias method, update_encounter

  def update_encounter

  

    #If the universal random encounter swtich is off, return as no

    #random fights allowed.

    if($game_switches[BGEncounter_Control::Encounter_Off] == false && BGEncounter_Control::Encounter_Off != 0)

      return

    end

 

    #Call and return the aliased method

    return bg_map_encounter_switch_update_encounter

  end

end

Note it also needs a line to declare what BGEncounter_Control::Encounter_Off is, but I didn't add that as that is a module definition and JavaScript does that differently.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

On my journey of character rework: I had this character, she was meant to be just a princess that joins your party. And at long term she was just uninteresting... So I tweaked her to be a rebel agaisn't the royalty before meeting up with the party.

Quick tip for any other ametuer pixel artists! When trying to create a colour palette, enabling Antialiasing can speed up the process of creating different shades! Just place your lightest colour and your darkest colour next to each other, select both pixels, and stretch it out!
Revolutionizing the JRPG Industry: Knocking on Doors.

Take that, murderhobos.
Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.

Forum statistics

Threads
106,054
Messages
1,018,580
Members
137,843
Latest member
Betwixt000
Top