Non-threaded

Forums » Advanced Editor Forum » Read Thread

Get help from the experts on variables, scripts, items, and other scary things.

Is it possible to create a Exp and level system?

10 years ago

hello! i was wondering if anyone had figured out how to create a EXP and level system inside a game, i am making a RPG and i would really benefit from it

Is it possible to create a Exp and level system?

10 years ago

Yes. You use variables and possibly scripting.

There's no quick and easy way to do it unfortunately.

Is it possible to create a Exp and level system?

10 years ago

i know its possible, ive done it, but that was on a fixed story with not to much customization, i need one that works for a story that is not fixed and has lots of choices. i just need idea to work off of thats all

Is it possible to create a Exp and level system?

10 years ago

I'd suggest you make an exp variable which increases by a specific amount each time you kill an enemy, say, via a link that is only accessed once their HP drops to zero. Then you could make it so that once the exp variable hits a certain amount, it automatically redirects to a "level up" page. This page / page's links could increase various stat attributes or whatever leveling up means to you and it could also reduce your EXP back down to zero. To simulate leveling taking longer / requiring more effort, you could have the player forcibly moved from area to area and have the monsters award less exp.

There are also ways to set a specific amount of exp that must be obtained regardless of what you fight, which allows the player more freedom, and there are ways for different / higher levels to award different attributes, but it could potentially become a big headache for you if you try to make it too complex and too close to a real battle RPG. I will say I commend you on attempting it if you do, I intend to test and use methods of this myself.

Really, you can do a -lot- if you're just creative enough.

Is it possible to create a Exp and level system?

10 years ago

Yep. It's possible. I know that because I made one. 

Is it possible to create a Exp and level system?

10 years ago
Create the variables EXP, MAXEXP, and LEVEL. Input into the script of every page where you earn Exp:

%EXP := %EXP + 15
IF %EXP >= %MAXEXP THEN
BEGIN
%EXP := %EXP - %MAXEXP
%LEVEL := %LEVEL + 1
%MAXEXP := %MAXEXP + 50
END

Feel free to mess with the amount of EXP rewarded and the MAXEXP increase. This script makes it so that as soon as the experience is awarded, the game evaluates whether the player has enough exp to level up and ensures that excess EXP goes into the player's progress towards the next level.

Is it possible to create a Exp and level system?

10 years ago

thank you so much, thats just what i ws looking for!

Is it possible to create a Exp and level system?

10 years ago
If you want a "stat point" system, you can create a variable called STATPOINT and input this in between the BEGIN and END:

%STATPOINT := %STATPOINT + 2

That's just to award stat points, actually letting the character use them requires extra work. That kinda stuff's fairly easy to figure out.