To level up or not to level up? That is (part of) my question.

Wes Lesley

Veteran
Veteran
Joined
Nov 25, 2016
Messages
76
Reaction score
5
First Language
Dutch
Primarily Uses
A conditional based on how high the level of a character is.


For example - if you're below a certain level, you get a basic sword. if you're a high enough level, you get a sword that isn't sh- I mean, you get a good sword.


I can't find anyplace to link a conditional to a character's level, though. :(  I hope it's possible.
 

taarna23

Marshmallow Princess
Global Mod
Joined
Jul 20, 2012
Messages
2,402
Reaction score
4,966
First Language
English
Primarily Uses
RMMZ
I don't have anything open, so maybe someone else can fill in specifics... I think you could save the character's level in a variable, and then compare the variable to the value you're wanting.
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
Control Variable select Game Data at the bottom, click on the ... and in the sub menu which comes up select Actor, choose which one you're wanting to check, and the first option on the right is 'Level'


So in your event, set that variable, then a conditional branch where the value of that variable is equal to or greater than the level you're interested in.  If it is give the decent sword, in the Else branch give the basic sword. 
 

Celianna

Tileset artist
Veteran
Joined
Mar 1, 2012
Messages
10,557
Reaction score
5,592
First Language
Dutch
Primarily Uses
RMMV
Yup, first you must set a variable to the player's level. You select Game Data > Actor's level to set the variable to the player's level. Once this is done, you can create a conditional branch that checks if this variable is high/low/whatever you needed for those two swords :)


And another tip: if you ever wanted the player to go on a quest and find a bunch of items, to be able to count the amount of a specific item the player has in their inventory, you set the variable to Game Data > Item. Tada, now you can know how many potions the player has in their inventory, for example!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,865
Messages
1,017,059
Members
137,574
Latest member
nikisknight
Top