{Event} Level Required

● ARCHIVED · READ-ONLY
Started by Moksock 4 posts View original ↗
  1. Hello, Im just getting back into working with RPG Maker VX Ace so im here to ask for some help.

    My question is how would someone make an event (example: fishing) and you needed to have a certain level say (example: 5) how would you go about making the event check your level? i attempted this a couple times trying to figure out how to work it but i cant figure it out so im here to know if anyone can help? thank you for your time to read this and reply.
  2. Hi, there are a few ways to go about it.

     

    1) Using variables

    - Select "Control Variables".

    - Under Variable, select "Single" and choose an unused variable ID (eg 12). Name it whatever you want as an identifier.

    - Under Operation, select "Set".

    - Under Operand, select "Game Data" then click on the tab next to it.

    - In the Game Data tab, select "Actor", choose an actor then select "Level" on the tab to the actor's name.

     

    - Create a Conditional Branch.

    - Select "Variable".

    - Click on the tab next to Variable and select the variable ID you have just set (eg 12).

    - Under your chosen variable ID, select "Equal to".

    - Under that, select "Constant", then set it to your required level (eg 5).

     

    2) Using script calls

    - Create a Conditional Branch.

    - Click on tab "4".

    - Click on the last option "Script".

    - Type in one of following script calls (without the inverted commas), depending on your requirement.

         -> "$game_actors[1].level == 5"                            checks the level of the selected actor in your database. "1" being the first actor in your database.

         -> "$game_party.members[0].level == 5"              checks the level of the first member in your active party.

     

    The example assumes you want the event to check your level as exactly level 5. Hope this helps.
  3. thank you very much for your answer, it helps greatly
  4. You're welcome! Glad I could help.

    You can use the above example to check for (example) level 5 and above with a little adjustment.