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,143
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,948
Reaction score
4,130
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

Discovering math. functions for damage formulas was one of the greatest things for me.
It's very useful for balancing skills to work in a variety of possible circumstances.
For example if you have a skill that is supposed to work for both mages and warriors:
Code:
Math.max(a.atk * 2 - b.def, a.mat * 2 - b.mdf)
SpaceX: First-ever successful (manned) commercial spaceflight!! In these terrible and self-sabotaging times for the world, that's a ray of excitement and hope I needed badly.
GameDevJohn wrote on whtdragon's profile.
Hey I used you bunny and cat spritesheet for a game jam game. Thanks so much! You have really beautiful stuff here. I'll credit you at https://gamedevjohn.itch.io/bunny-boy
The video of a psycho chasing people on the streets with a sword before getting subdued is wild. Apparent screenshots of his Twitter feed (EDIT: confirmed by Dallas police) before it went private reveal a dangerous delusional mindset. I heard there was a bow person too. The crazies are really coming out of the woodworks.

Forum statistics

Threads
98,015
Messages
948,554
Members
129,272
Latest member
scierwo
Top