Level/EXP Sync across entire party?

Status
Not open for further replies.

Gabe Denzien

Villager
Member
Joined
Jun 25, 2017
Messages
26
Reaction score
1
First Language
English
Primarily Uses
RMMV
Hello. I've tried a bunch of different ways to make it so when the first member of the party gets EXP (Im using QABS as my battle system so exp splitting and plugins like that dont work) everyone else gets the same amount of EXP. I was wondering, is there a script that does this automatically? I have my latest attempt posted below. I currently have it so it constantly checks current exp of the party lead, and then waits a bit, and does it again, recording it in a seperate variable. This is then subtracted New - Old, and that difference is distributed to everyone but the party lead. Is there anything wrong with this?

Any help would be appreciated.
 

Attachments

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
39,141
Reaction score
12,416
First Language
English
Primarily Uses
RMMV
That's not a very good way to do it.

What gives EXP? Is it only given to the leader? What does the existing plugin do?

You've just got to find the spot where the current plugin gives EXP, and make it give it to all party members and not just the leader (or whoever it's currently giving it to).

A parallel process event looking for something on every frame that is only going to change once in a while is just bad.
 

Gabe Denzien

Villager
Member
Joined
Jun 25, 2017
Messages
26
Reaction score
1
First Language
English
Primarily Uses
RMMV
QABS is a really hard plugin to edit for me, but found I way to do it with events, by taking the math.max of each actors xp, which gets stored in a variable before hand. Then, each actors exp is subtracted from the maximum, and that difference is add back to each actor. This loops forever with a delay. Posted below is my solution, as it works perfectly. (Mind my variable names)

◆Control Variables:#0016 Nero = EXP of Nero
◆Control Variables:#0017 Rena = EXP of Rena
◆Control Variables:#0018 Aurra = EXP of Aurra
◆Control Variables:#0019 Garo = EXP of Garo
◆Control Variables:#0021 Dryad = EXP of Dryad (Aurra)
◆Script:var x = 0;
: :x = Math.max($gameVariables.value(16),$gameVariables.value(17),$gameVariables.value(18),$gameVariables.value(19));
: :$gameVariables.setValue(20, x)
◆Control Variables:#0016 Nero -= Max EXP in Party
◆Control Variables:#0016 Nero *= -1
◆Control Variables:#0017 Rena -= Max EXP in Party
◆Control Variables:#0017 Rena *= -1
◆Control Variables:#0018 Aurra -= Max EXP in Party
◆Control Variables:#0018 Aurra *= -1
◆Control Variables:#0019 Garo -= Max EXP in Party
◆Control Variables:#0019 Garo *= -1
◆Control Variables:#0021 Dryad -= Max EXP in Party
◆Control Variables:#0021 Dryad *= -1
◆Change EXP:Nero, + {Nero}
◆Change EXP:Rena, + {Rena}
◆Change EXP:Aurra, + {Aurra}
◆Change EXP:Garo, + {Garo}
◆Change EXP:Dryad (Aurra), + {Dryad}
◆Wait:30 frames
 

Wavelength

Edge of Eternity
Global Mod
Joined
Jul 22, 2014
Messages
4,944
Reaction score
4,126
First Language
English
Primarily Uses
RMVXA

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

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

Latest Threads

Latest Posts

Latest Profile Posts

Please do not buy games from g2a.com. The sellers have total power over you. The website has many scam sellers. It looks cheap, but the key code didn't work.
A while back I was having fun making my own custom tiles, then I hit carpet... why is it so difficult!? Lol.
Weekend is finally here... what would you like to see (?):
1) Pokemon into zelda minish-cap style
or
2) Pokemon into zelda gbc style
or
3) Zelda into pokemon style

#= Choose ===============#
||__[ Full mockup ]_[ Charset ]__||
#=======================#
I know someday I'll start working on this...

I'm so happy that I got Steam achievements to work in my game, thanks in large part to the posts by other RPG Maker devs on this issue!

Forum statistics

Threads
97,943
Messages
948,059
Members
129,191
Latest member
Homerx_666
Top