Author Topic: Eventing help (experience/leveling event)  (Read 286 times)

Ok i was wondering how to make it to where during a mini-game, if you gained X exp, you gain X level(s) i tryed to see if Minigame> would work but it doesnt work like that...

use variable events is how I would do it. Make it so when you do whatever, it adds X exp to a variable named something like "Exp" (duh). Then, I would make a level-up brick, because I don't know how else (maybe relays?). On the level brick, do something like:
-Onactivate-Self-IfVariable-Player-EXP-GreaterEqualsEquals-[10]
-VariableTrue-Client-CenterPrint-[You leveled up!]

Then you'de also need one for the gaining of EXP. Something like this.
(For say, a tree and cutting EXP) These would be on the tree:
-OnProjectileHit-Projectile-IfProjectile-AutoAxe Slice
-VariableTrue-Self-FakeKillBrick [30]
-VariableTrue-Player-AddVariable [expCutting] [1]

Then do different Level Up bricks and on them, put:
-Onactivate-Self-Ifvariable-Player [expCutting] >= [number]
-VariableTrue-Client-Centerprint-[You Leveled Up!]
-VariableFalse-Client-Centerprin-[You Need More EXP to Level Up!

And you could also do a Level Variable if you want. Hope this will give you and idea of how to use variables, if you don't already know. Sorry for bumping, if I shouldn't have.