LEVEL CHECK IN VX

Posts

Pages: 1
kitten2021
Returning from RMVX Death
1093
System in use: RPG Maker VX

Is there any way to have the system check on what the hero's level is before allowing an event to start up? Like for example: I want the instant the hero turns level 20 a message appears on the screen to say that 'such-and-such person' is now ready in town (or where ever) to speak with them.

Does this make any sense to you guys...?
Ocean
Resident foodmonster
11991
Should be possible with common events.

You can set one for Parallel process. Have a variable set to the heros level. Then have a conditional branch that checks to see if that variable is 20. If it is, then have a message play, then turn on a switch.

You can have this whole code in a "If Switch is off", and use that same switch that you just turned on. Something like that should work.

If Switch 001: "Already at Level 20" is off
Variable 001: Level set to Actor:"Hero" Level
If Variable 001: Level is 20
Message: "You may now enter the grand halls of this town!"
Switch 001 set on
end
end

Something like that.
kitten2021
Returning from RMVX Death
1093
post=149767
Have a variable set to the heroes level. Then have a conditional branch that checks to see if that variable is 20.

I understand this very well, but quick question: How do you automatically add a point to the variable counter every time the player levels?

EDIT:
Here is what I have placed in my Common Event (as example and testing only - mind you):

Control Variables: (0001:Heroes Level) = 0
Conditional Branch: Variable (0001:Heroes Level) == 20 (Still completely confused on how to get it to read this)
> "You can now use the GRAPPLER in town with your party!
Control Switches: (0001:Hero Lvl 20 ON) = OFF
Control Switches: (0002:Hero Lvl 30 ON) = ON
Else
Branch End

- Then repeats for all the levels I want this to be occurring on -

Is this pretty much what you were meaning?
Do this


edit: if you want more level checks then just add more switches in the else handler of the first conditional branch
kitten2021
Returning from RMVX Death
1093
oooooh... that's why I couldn't get it to work... Huh. At least I had some of it right. Thank you big time. :)

EDIT:
Question: Why do you have the wait 500 frames in the Else? Is this specific or are you just placing that there as example? Or is it there to check on the character level every 500 frames?
KingArthur
( ̄▽ ̄)ノ De-facto operator of the unofficial RMN IRC channel.
1217
My guess on the Wait statements is to reduce the likelihood of lag. I've personally never found constantly updating a variable in a parallel process to be resource intensive, though.
Pages: 1