RPG SYSTEM: EXPERIENCE-LEVEL

1

Stats

2,151 visits, 2,780 views

Tools

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Published on 28 Oct, 2019. Last updated 16 May, 2024

Hi Builders:

Looking for different parts and wanting to implement some RPG System, I have come across the unpleasant surprise that there is basically no tutorial or well-made examples of some RPG System of EXPERIENCE AND LEVEL so I set out to create one and be able to teach it here. If you like it and find it entertaining and usable that would be splendid.

Well let's start with the basics of an RPG system:

1.- We need to declare some variables, the basic ones would be: Level, Experience, ExpMaxLevel, ExpxMuerte ... etc.

2.- Make a calculation so that this, setting a limit level up our character, the difficulty, the experience of our enemies, etc ... in what they want to use.

3.- Generate a visual sample and variable control of the implemented System.

The Variable must be split by Level "1" to take value since any multiplier or divisor by "0" will not generate anything. Here the keyword is "EXPONENTIAL" or "EXPONENT" using the "EXP" command of Contruct 2.

An initial limit must be created for ExpMaxLevel, that the maximum experience for Level "1" and passing it will be skipped to Level "2", and so on. The Calculation for ExpMaxLevel in this case is 100 * int (exp (LEVEL / 8)), where EXPMAXLEVEL will start with 100 and the whole of the exponent of the level divided by 8 will be added, if we start lowering the value 8 we will generate more difficulty, try it inside the .CAPX

How do you gain experience? I put a Sprite called MONSTRUO, with a variable of NIVELMONSTRUO, which defines the level of that monster and how much EXPERIENCE IT WILL RELEASE ONCE DEAD, at a higher level more experience, it could also serve by adding and subtracting depending on the level of the player and the attacked monster, how many hits necessary to kill him, for the EXPERIENCE use this formula int (random (10 * MONSTER.MIVEL LEVEL)) + 10, each monster loose from EXPERIENCE, the random integer of 10 * the level of the monster plus 10, that is the minimum of EXPERIENCE will be 10 + random 10 * level of the monster.

Every click is a dead monster.

I hope you like it. Give your Like.

IF YOU WANT TO TRY IT HERE

DOWNLOAD .CAPX

  • 3 Comments

  • Order by
Want to leave a comment? Login or Register an account!