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.

Required LVL

Isn't there something on RMXP that you can press to make it so in an event the player has to be a certain level to obtain something. Either I just missed it, cause i can't find it. If there isn't that option on RMXP (Which i think there is, i'm just missing it.) Then could someone please help me with a script that i could use to it could help me with that action?

Thank you,
~SonicBounty50
 
Well, there isn't a direct option for it, but it's easy to do.

Just set a variable equal to the player's level (or actor 1's level), and then check in a conditional branch if that variable is greater than or equal to that variable.
 
PhoenixTilea":3e4dx47h said:
Well, there isn't a direct option for it, but it's easy to do.

Just set a variable equal to the player's level (or actor 1's level), and then check in a conditional branch if that variable is greater than or equal to that variable.

I still don't rightly understand. I need more of an example please. =/
 

Jason

Awesome Bro

Okay, first you set up a variable in the event, that will look something like;

Variable[0001 - PlayerLv] == [Player Level]

Then you'll make a conditional branch;

Conditional Branch; If Variable[0001 - PlayerLv] >= 10
Text: Yay you're level ten or higher, have a sword !
Change Item: Sword +1
Else
Text: Sorry, you're not level ten or higher !

That's just a quick example without RMXP infront of me, so it might be worded differently...

Hope that helps :thumb:
 
jbrist":19mc5sel said:
Okay, first you set up a variable in the event, that will look something like;

Variable[0001 - PlayerLv] == [Player Level]

Okay, thank you. I get the conditional branch part. But stupidly enough.. :huh: I don't know how to get the first part. I barely use Variables in all the games i've made. XD
 

Jason

Awesome Bro

Ah, in the event box, select "Control Variable"

Inside this, select the variable you'd like to use (I'll use 0001 as an example), and name it anything (I named it PlayerLv).

Then, you'll see the dropdowns on the lower half of the box, Click Actor, and select the actor you'd like from the dropdown menu (I'm assuming the player is Actor1), and on the dropdown to the right of that, select "Level".

Now you've just set up a variable, so when you talk to the event, it will gather the players level, and the conditional branch will check to see if the level is high enough yada yada you know the rest.

Hope that was easy to follow :thumb:
 

Jason

Awesome Bro

No problem pal, if there's anything else you need to knwo about events and stuff, I'm pretty darn good with 'em ! (Considering I've made just about every system possible with events, lol)
 

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