EXP System

For questions about using Classic.

Post » Wed Nov 10, 2010 5:12 pm

Looking for a exp system similar to a traditional rpg. You know, when you need more EXP and you gain higher levels.

I tired using something given to.

On "CalculateEXP"
--Add Floor((LoopIndex("CalculateEXP")*LoopIndex("CalculateEXP"))*1) to NextEXP

Start of Layout
--Start Loop "CalculateEXP" and run player_stats('LV')

player_stats('CurEXP') is >= player_stats('NextEXP')
-Start Loop "CalculateEXP" and run player_stats('LV')
-Add 1 to player_stats('LV')


IT works, but no by much. It seems to only add four to my NextEXP. I want the NextEXP to graduating get bigger as I level up.
B
11
S
3
G
8
Posts: 473
Reputation: 4,569

Post » Wed Nov 10, 2010 5:25 pm

I'm using a method like this: there are two variables, currentexp and nextlevelexp. Upon currentexp being greater or equal to nextlevelexp, nextlevelexp is multiplied by whatever amount. If it's *5, then each level *5 will be adding more to the exp needed than it did the previous level.
Moderator
B
88
S
32
G
33
Posts: 3,005
Reputation: 27,432

Post » Wed Nov 10, 2010 7:47 pm

i have made a cap a while ago. 8)

here it is

http://dl.dropbox.com/u/9050706/Cap%26autre/rpglvup.cap
B
3
S
2
G
2
Posts: 136
Reputation: 1,347

Post » Wed Nov 10, 2010 9:22 pm

Thanks guy!
B
11
S
3
G
8
Posts: 473
Reputation: 4,569

Post » Thu Nov 11, 2010 12:40 am

Here is my method using the Function object and Private Variables:
http://www.4shared.com/file/CNBccmC6/RPG_Stats.html
B
4
S
1
G
3
Posts: 10
Reputation: 1,159


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 0 guests