Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Sephiroth

#221
Thanks for the quick answer OneDollar, it looks like you are applying a kind of % and it made me think of one way,
If i have:

Level up happens every 1000xp and max xp is 100 000 at lv100 :
Code: ags


current_lv  = current_xp / 1000;  
gained_xp = enemy_xp - ( (current_lv * enemy_xp) / max_lv);



This way the xp you gain is a percentage of the enemy base xp, lv30 will get -30% of the enemy's base xp, lv 8 will get -8%.
So if i have for example:

Code: ags


enemy_xp = 500;
current_lv = 25;  // max is 100 but it works fo any number

gained_xp = 500 - ( (25*500) / 100) );
gained_xp = 500 - 125;
gained_xp = 375;



Maybe you were thinking about the same thing but i didnt get it sorry i'm so bad at maths and i'm french so it's even harder to get everything you told me...
Do you think it is appropriate? I just want it to look like xp gain is decreasing as you level up to avoid farming the same mob over and over and get the same xp whatever your lv is, thanks again.
#222
Hello AGS World,

I'm new to ags and would like to says thanks for this great game making software, instinctive ide, nice c++ like syntax allowing almost everything to be done (exept passing custom struct as an argument?).
I've spent a few days trying to get a ff like atb battle system up and now its almost all good.

What's implemented:

- 1vs1 fights (for now)
- Testing gui (basic stuff for display and actions)
- Keep track and display HP/MP/XP/LV etc
- Physical attacks (handling physical_def)
- Crit/Miss chance (using)
- Magic casting (Using a magics table)
- Looting  (Using a loots table)
- Level up (upgrading stats and full heal)


The code for this battle engine is not that complicated and i will gladly help anyone or give explainations, i will also give a link to the demo source code once i have all options implemented and a "user-friendly" clean code :p 

Right now i'd need some help for advanced stuff like xp progression, here is what i have running when the fight ends and xp is given:

*RESOLVED

Happy coding.

The link:
Use spacebar for actions/skip button and escape to cancel submenus.
Using spacebar on the closed door will start a random encounter.

http://www.elistra-systems.fr/Compiled.rar for demo only

First screenie :D
SMF spam blocked by CleanTalk