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,138
Reaction score
12,413
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,939
Reaction score
4,123
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

I forget what is bumping rule in this forum. Is anyone know? Thank you.
BCj
Ew, why does my blogpost on the rpgmaker.net site look like a garbled mess? Are html codes disabled or something?
I feel that I should cut down on my order queue so I can get some more time for my projects, its been quite a longggg while since I worked on them LOL
I friend of mine insisted on practicing dubbing things with him... and its quite funny, yet, it really takes a huge amount of practice!
Gotta save this for my next thread later...

Forum statistics

Threads
97,878
Messages
947,595
Members
129,114
Latest member
Alwar
Top