Increase TP when certain party members take damage

Hello, I don't know if this is possible through in-game terms so I'm going to put this in script requests.
I was wondering if it was possible to make certain actors gain TP for when another actor is damaged, and extra TP for specific actors.
Like, let me give an example to better explain what I'm looking for.
Example:
Actor 1 would be family members with Actor 2.
Actor 1 is friends with Actor 3.
Actor 1 does not care about Actor 4 and does not have relations with them.
Actor 2 takes damage, Actor 1's TP increases by 3 or 5 or something.
Actor 2 is defeated in battle, Actor 1's TP fills to the max.
Actor 3 takes damage, Actor 1's TP increases by 2.
Actor 3 is defeated in battle, Actor 1 gets 70 TP.
Actor 4 does not increase the TP of Actor 1 at all.
And vice-versa.


Is this possible? If so, how can I go about creating this?
yes - but for you probably not easy.

The problem is communicating this to a programmer, because from the way you asked I assume you do not know how to program yourself.

1) you need a complete list of triggers (actor is targeted, hit, damaged, killed, etc)
2) you need a complete list of effects (do nothing, add x TP, add % TP, etc)
3) you need a table where you assign each combination of trigger to effect into a relationship
4) you need a table where all possible actors define their relation ship with all other actors.

the important part is that "complete" instead of an easy example list, because you will not be able to add anything later

and then you need to find a programmer who can turn those tables into a script for VXA, with a configuration file where you can later enter your tables.

The problem is that the number of scripters for VXA has become low, and most of them will not bother with an incomplete description of what to do.
Yanfly's TP Manager allows you to give custom TP modes to everyone in the party.

You can give everyone unique TP modes through this script call: [ change_tp_mode(x, y) ] without ever letting the player have access to the menu that lets you change TP modes.

This will allow you to have unique TP gains per character @Future232.
yes - but for you probably not easy.

The problem is communicating this to a programmer, because from the way you asked I assume you do not know how to program yourself.

1) you need a complete list of triggers (actor is targeted, hit, damaged, killed, etc)
2) you need a complete list of effects (do nothing, add x TP, add % TP, etc)
3) you need a table where you assign each combination of trigger to effect into a relationship
4) you need a table where all possible actors define their relation ship with all other actors.

the important part is that "complete" instead of an easy example list, because you will not be able to add anything later

and then you need to find a programmer who can turn those tables into a script for VXA, with a configuration file where you can later enter your tables.

The problem is that the number of scripters for VXA has become low, and most of them will not bother with an incomplete description of what to do.
Oh I see, so would this be a very difficult script to create?
Yanfly's TP Manager allows you to give custom TP modes to everyone in the party.

You can give everyone unique TP modes through this script call: [ change_tp_mode(x, y) ] without ever letting the player have access to the menu that lets you change TP modes.

This will allow you to have unique TP gains per character @Future232.
I just tried using it now, and it keeps crashing my game. The error message is:
"Script 'Yanfly - TP Manager' line 1171: NoMethodError occurred.
undefined method 'empty?' for nil:NilClass'
@Future232 creating the script in itself would be easy to moderate for a programmer.
The problem is not the script itself, but the rules and configuration that govern it.

Those would have to be provided by you as I said above, and the error you got from yanfly's script basically says "you try to use an object that does not exist", which means you got those rules or their configuration wrong on that try.

The TP-Modes need to be scripted, and I don't think you can do that on your own.
There are several people around here that could help you, but only if you get the full description needed like I said in my post above.
Also to consider is the database tp gain effect. Do those still apply.
and the tp gain by damage.
@Roninator2 The database TP Gain effects still apply, so you would have to remove TP effects from every attack in the game that gives them. Gain by damage is overwritten by the Yanfly script.

@Future232 The fact you got an empty error message means you tried to use something that doesn't exist. Using a save file that existed before you installed the script will also cause this error since that save file will be reading data that doesn't exist in most cases.

Have you created any TP Mode tables in the script itself? I'm curious to know what you actually did.

Original thread: https://forums.rpgmakerweb.com/threads/increase-tp-when-certain-party-members-take-damage.153553/