RMMV Is there a way to have text and text color change based on your team avg level?

boulops1

Veteran
Veteran
Joined
Dec 6, 2020
Messages
64
Reaction score
1
First Language
english
Primarily Uses
RMMV
Heya!

wondering if there is a way to make text color change based on your teams average level as well as the text itself displayed to be different depending on your team average level.

Example if your 5 levels above X color of text is green and it could say "easy", if your the same level as X color is yellow and it says "normal", if 5 levels below X, text is red saying "hard"




anyone got any ideas?






thanks
 
Last edited:

MoonBunny

Villager
Member
Joined
Oct 4, 2020
Messages
5
Reaction score
7
First Language
English
Primarily Uses
RMMV
I've looked around and I believe we can pull this off by using Conditional Branch in the Event Editor.
Here is what I could draw up.
2021-02-28 - 05.29.59 ~ Cropped Capture.png
In this case, "level text test" is 20, and "Player1 Level" is defined as either a specific character's level or a variable you manually control. While it doesn't go in increments of 5, it has the idea down. I've also included color codes, so C00 shows up as white, C18 is red, and C03 is light green. There are even more color codes that you can use, so you can modify the text as you see fit.
While this only works for one character's level as a reference, there may be a way to call on an average party level that I'm not aware of. I hope this is helpful, but I apologize if it isn't.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
32,321
Reaction score
8,071
First Language
German
Primarily Uses
RMMV
the text of a show text command can change color with a textcode. that textcode is number-based and can be set by variable like \C[\V[99]]
do this with every text and you can use any calculation outside that text to determine the text color.

you only need a plugin for this if the calculation for the number is too complex or requires different colors based on different variables updating constantly.
 

estriole

Veteran
Veteran
Joined
Jun 27, 2012
Messages
1,441
Reaction score
685
First Language
indonesian
Heya!

wondering if there is a way to make text color change based on your teams average level as well as the text itself displayed to be different depending on your team average level.

Example if your 5 levels above X color of text is green and it could say "easy", if your the same level as X color is yellow and it says "normal", if 5 levels below X, text is red saying "hard"




anyone got any ideas?






thanks
this is a solution to do that without any plugin... in case you're interested...
since the text also different anyway (easy, normal, hard)... just use conditional branch
with 3 different show text command... and you can store the actor level first before doing the conditional branch.
something like this:


hope this help

edit: just read that you want average level of party... i assume you mean battle member (not including reserve party)... then you can change control variable above with:

control variable -> script:
Code:
Math.floor($gameParty.battleMembers().map(a => a.level).reduce((a,b) => a + b) / $gameParty.battleMembers().length)
it will sum all the level of the battle member... then divide it by the number of battle member (meaning getting the average)... then strip the decimal using Math.floor.

hope this help.
 
Last edited:

Latest Threads

Latest Profile Posts

Julyon.png

First concept art of one of our main characters love interests who might turn evil depending on her decisions. Or become king of the world. Or marry her. Maybe even everything at once.
Me: *saved the game*
Also me: *exit the game afterward*
The game: "Any unsaved progress will be lost"
Me: "uh,.. alright?"
[I feel a bit sad I did this]
"WhY?...WhY dId YoU KiLl ThEm AlL?...yOu BlOoDy HeLl MoNsTeR...I'LL MAKE YOU PAY!!! FOR THE BLOOD OF THE LOST!!!" ~Scars final words before his final battle [not final boss]

Battle Theme: Blood of the Lost
Face Sprite
Forgotten Eclipse_Scar Dead+Final Battle with him.png
Doing RPG Maker News for 9th April 2021. :kaoswt:
When your late night plans are ruined by a sudden rush of extreme chills induced by the COVID vaccine you got earlier in the day, stuck freezing in bed even though it's 70 degrees inside... Yeah, that sucked.

Forum statistics

Threads
110,268
Messages
1,051,802
Members
143,288
Latest member
ivoireiorana
Top