I'm trying to make random encounters a little more consistent, so I changed the Create Encounter Count to this:
#-------------------------------------------------------------------------- # * Create Encounter Count #-------------------------------------------------------------------------- def make_encounter_count n = $game_map.encounter_step @encounter_count = rand(n) + n + 1 endMy test map has Steps Average set to 40. Based on that formula, @encounter_count should be set between 41 and 80 for that map.
However, the first two battles I got were after 26 steps and after 36 steps. How come I'm getting encounters lower than 'n'? Am I missing something about how encounters are calculated?
Edit: Never mind, guys! I just found the issue. Looking into the code I've found the culprit:
#-------------------------------------------------------------------------- # * Get Encounter Progress Value #-------------------------------------------------------------------------- def encounter_progress_value value = $game_map.bush?(@x, @y) ? 2 : 1I totally didn't know bush tiles counted as two steps! My test map is basically 95% bush tiles lol
Anyway, problem solved. Sorry for the trouble.
#-------------------------------------------------------------------------- # * Create Encounter Count #-------------------------------------------------------------------------- def make_encounter_count n = $game_map.encounter_step @encounter_count = rand(n) + n + 1 endMy test map has Steps Average set to 40. Based on that formula, @encounter_count should be set between 41 and 80 for that map.
However, the first two battles I got were after 26 steps and after 36 steps. How come I'm getting encounters lower than 'n'? Am I missing something about how encounters are calculated?
Edit: Never mind, guys! I just found the issue. Looking into the code I've found the culprit:
#-------------------------------------------------------------------------- # * Get Encounter Progress Value #-------------------------------------------------------------------------- def encounter_progress_value value = $game_map.bush?(@x, @y) ? 2 : 1I totally didn't know bush tiles counted as two steps! My test map is basically 95% bush tiles lol
Anyway, problem solved. Sorry for the trouble.