MV Actor Title and Party Composition Bonus

I'm looking for two different plugins

1. Actor Title. Actors can equip Titles. Titles provide a few bonus. The current workaround i have is making the armor accessory the Title Slot

2. Party Composition Bonus. Something similar to Gacha. It's like a Glossary of Characters unlocked throughout the story. When you have unlocked certain characters, you will get a battle bonus. It's like a new scene, where you can have party buffs active or inactive.
for the actor title u could use the nicknames of actors..

Screenshot_6.png

and add bonus to battlers related to their nickname
...

for Party Composition Bonus.
you could build an Array that contains a list of all unlockable chars,(not the chars self but data that represents them) and give them the value "true or false"..
than you can use this value as switch indicater for whatever you want..

it would be pretty similar how my ESS_Storage plugin works
(i learned a bit how to build more complex arrays)
Sidenote

if you want an extra window with a scene, that displays these chars if they are unlocked ect, that would be more work^^
what do the battle bonuses look like?
for Party Composition Bonus.
you could build an Array that contains a list of all unlockable chars,(not the chars self but data that represents them) and give them the value "true or false"..
than you can use this value as switch indicater for whatever you want..
This idea can even be simplified a bit further - instead of storing false values for actors you don't have, just push the IDs of the ones you do. Then you can simply check, for example,
Code:
if ($gameVariables.value(16).includes(22))
and it returns true if you've added actor 22.

@xabileug You might want to look at bestiary/encyclopedia plugins. There are a number of them out there, and I'd bet some of the encyclopedias already do what you want. Even if they don't, the code should be pretty simply altered from enemies to actors.
This idea can even be simplified a bit further - instead of storing false values for actors you don't have, just push the IDs of the ones you do. Then you can simply check, for example,
Code:
if ($gameVariables.value(16).includes(22))
and it returns true if you've added actor 22.

you are right, thats similar to what the $gameSelfSwitches do by default
(only storing data of all "true" switches in a data var, and delete those who get false)
-> i didnt do that in my plugin ESS.storage, cose i want the false to de displayed when looking in the console f8 & they should still be part of the event storage
.-------------
using a $gameVariables.value as array is an even shorter solution, ..
- but how do you push several numbers at different times, in the same "$gameVariables._data[16]" ??
- on $gamesSelfSwitches the data array is build different, with such an array it would work..
(not saying to use the original "$gamesSelfSwitches._data", because that would mess up the selfSwitches)
->SideNote: galv used in his eventspawner $gamesSelfSwitches to store numbers there instead of "true/false" and i didnt know why my plugin code buged, till i figured out how to exclude the numbers when checking true/false in the data array directly..
imgs belows

Spoiler
Screenshot_1.png

---
Screenshot_2.png

---
Screenshot_3.png



in other words the data from "SelfSwitches" is something like this:

._data === {[key1],[key2],[key3]}
each key would be a number like "22" from
ATT_Turan example

---------

and the "$gameVariables._data" is more like this:
._data[varID] === number;
//or text or script ect

it might be possible how ATT_Turan explained it, but i am not sure how to add/remove several of them in such case
(low knowledge on my side)

edit
thats how "selfswitch data" looks in console when storing several keys
Spoiler
Screenshot_4.png

---
Screenshot_5.png

and $gamevariable._data in console looks like this:
(the pink number is the var ID the blue number the var Value)
-> i mean we would need several blue numbers in such case, ..
Spoiler
Screenshot_6.png
this is the example from figure fantasy a gacha game. i forgot that gacha game, where certain combinations of actors would provide the bonus.
i could just do a glossary (triacontane) for the scene, then activate the buff during battle
like checking if certain actors are present, then that buff is added.. like if actor 1 , actor 2, actor 3, actor 4 are present, and all classes are different ATK and DEF of all party members + 5%

1669278345314.png


this is the example of party battle bonus.
it's just small, but it's more on scaling stat bonus than flat bonus.
1669278384938.png



@dopan nice. i found Galv's script but it's in VX Ace, would be helpful if someone ported it to MV/MZ
here
- but how do you push several numbers at different times, in the same "$gameVariables._data[16]" ??
You just do it. 😉 The game variable ._data is just an array, none of the elements are defined until you do so during the game.

So you can turn any element of it into an array using the standard array notation. When you meet/collect actor 30, you can do e.g. $gameVariables.value(16).push(30) and now that variable is an array with the value 30 (added to anything that was there previously).

I don't really understand the purpose of that long portion with all of the screen shots there...what does this have to do with your self switches project?
You just do it. 😉 The game variable ._data is just an array, none of the elements are defined until you do so during the game.

So you can turn any element of it into an array using the standard array notation. When you meet/collect actor 30, you can do e.g. $gameVariables.value(16).push(30) and now that variable is an array with the value 30 (added to anything that was there previously).

I don't really understand the purpose of that long portion with all of the screen shots there...what does this have to do with your self switches project?
we might get a bit of topic with our discussion, but nvm..

here i tested what you suggested:
in my test the $gamevar id20 has value of 12, and i try to add another number like you showed above:
Spoiler
Screenshot_1.png

here you see there is the value 12 in varId_20
----------
Screenshot_2.png

here you see i cant add the value 30 that way..

=> is that because the $gamevar allready had value 12 stored, or what did i wrong?
(12 was added with event commands)
what does this have to do with your self switches project?
its just that i learned by trial & error in console how to build more complex arrays, when i made the plugin..
(without using push or anything else)
..and that was related to how the rpg maker handles $gameSelfSwitches data..
-> and me asking how you add several numbers is again me trying to learn^^ (the screenshots are just me trying to explain better what i mean)
I reviewed some plugins and found TMSecondName it works like a party achievement equip bonus. But I need individual actor bonus like in Tales of Phantasia.
Achievements are attached to armors, so you can equip them, and gain the bonus from the armor database. Then there's the time stamp on and reflection on the status window.

Original thread: https://forums.rpgmakerweb.com/threads/actor-title-and-party-composition-bonus.152863/