Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

World map random battles?

Does anyone know how to make it so as you walk along the wolrd map you could get into battles at random

(with pre-chosen monsters for that area)
and possibly
(on a level scale)

Area 1 + Player level 1-10 = Spawn monster 1
Area 1 + Player level 10-20 = Spawn monster 2(stronger version of 1)

Thank You in advance!
 
Why do you not do this with variable?
Make a Event and do it on Hero Touch. When the Hero go on the Event make a the random Function on the Variable of your Choice. Then make a Condition there you ask: Is Variable A = 1?. If yes then it come a monster. If not, then no Monsters. So i have done in my game.

The random number should be between 1-4 or what you want.
 
If you don't want to have your monsters be events attacking the party, you can work with the existing random encounter system like this:

For a given Troop of enemies, drop in a variety of monsters, some low level, some high level.  Mark most of them with "Appear Halfway." 

Now, in that troop, create a Battle Event that will run once at the start of the battle.  Have it set a variable equal to the hero's level. 

Next, some Conditional Branches in that event.  If the Level variable is above 10, trigger Enemy Appearance for some of those enemies.  If above 20, bring in the nasty ones.  More complex Conditional Branches will let you do this more precisely.

Was that helpful?
 
Unka Josh":i6h6nx6n said:
If you'd like me to mock up a screenshot of a system like that, just let me know.  It would only take me a few minutes.

That would be awesome, I'd def apprciate it.  And when you said existing random encounter system. I wasn't aware there was on built in VX?
 
I'm not sure about VX, actually-- it may work differently.  However, this system will work regardless of how you actually encounter the enemies.

(Obviously, I use XP.  VX can do this, right?)

http://i234.photobucket.com/albums/ee103/UnkaJosh/VariableEnemies.png[/img]

As you can see, it's pretty straightforward.  There's a bunch of enemies present, but they're all marked "Appear Halfway."  On turn 0, it assigns a variable equal to the player's level, and then has the enemies of the appropriate level only appear.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top