Floor the EXP of the party to the minimum of the current level?

Joined
Jun 9, 2014
Messages
3
Reaction score
0
First Language
English
Primarily Uses
I am making system where player has option to return to the moment before fatal a boss fight started - but with heavy gold and some exp penalties.

What I need (and can't figure out) is script that floors entire partys EXP to their current level minimum. (So exp penalty but without losing lvl).

For example:

Actor A is LVL 12 (exp level requirement 5000) and has 5500exp.

Actor B is LVL 14 (exp level requirement 7000) and has 7005exp.

After CONTINUE they should have: Actor A: 5000exp and Actor B: 7000exp.

I am using default exp curve (numbers in the example are just pulled from the air).

I am really new to this, but I have tried to google it...

Thanks in the advance.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,674
First Language
German
Primarily Uses
RMMV
before the EXP reduction, store the current level into a variable - then after the reduction, check current level and add the difference.


I don't know what happens to any engine messages in that case - you might have to fade out the screen to prevent the player from reading those messages, or modify a script to remove them.
 
Joined
Jun 9, 2014
Messages
3
Reaction score
0
First Language
English
Primarily Uses
before the EXP reduction, store the current level into a variable - then after the reduction, check current level and add the difference.

I don't know what happens to any engine messages in that case - you might have to fade out the screen to prevent the player from reading those messages, or modify a script to remove them.
Thanks, that is a one way of doing it. Since it all happens in the map, messages are not a problem.

However if somebody has an idea how to do this in script, I would still be interested (as I am trying to learn it - also it would be more flexible).

EDIT:

I think I got it:

$game_party.members.each do |actor|$game_actors[actor.id].change_exp($game_actors[actor.id].current_level_exp,false)endSeems to work OK ?!
 
Last edited by a moderator:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,860
Messages
1,017,040
Members
137,569
Latest member
Shtelsky
Top