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.

Certain level before battle?

I was wondering, is it possible to have it so that your party [or a specific character in your party] MUST be a certain level before a battle is allowed to take place? I'm not talking about random battles on the map either, I mean like... you walk up to a character on the map and then if you're not the correct level, they say something, but if you are the correct level, the battle begins.
 

poccil

Sponsor

You can check a character's level using the Control Variables event command.  Here is an example.
Code:
@>Control Variables: [0001] = [Ralph]'s Level
@>Conditional Branch: Variable [0001] >= 20
   @> Text:  -, -, Normal, Bottom
    :      : Ready to battle.
   @>
 :  Else
   @> Text:  -, -, Normal, Bottom
    :      : Not ready to battle yet.
   @>
 : Branch End

However, there is a bug in RPGVX's scripts that prevents this technique from working right away.  To fix this bug, press F11 to go to the Script Editor, find the script section Game_Interpreter and replace line 750:
Code:
      actor = $game_actors[@parameters[1]]
with this:
Code:
      when 4
I hope this helps.
 

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