TP Gain Tags [Passive State(s)]

RetroBoy

Veteran
Veteran
Joined
Dec 16, 2016
Messages
378
Reaction score
261
First Language
English
Primarily Uses
Hello,

I would like a plugin that allows me to set a type to a class, for example:

<Power>

And set the same on a Skill in the Note Box.

Then, if the Actor (or Enemy) uses a Skill of the coresponding note (in this example: <Power>) they raise their TP by 1 or 2 (being able to set the number might be better).

I am using Yanfly Passive States and only Yanfly Scripts. I theorize that it could probably be done with the Lunatic Mode but I'm unsure how. The "Types" I want to use are as follows:

Power
Finesse
Pressure
Guile
Resist
Presence
Advantage

Any help would be much appreciated.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
why don't you make skills unique to that class and put the numbers into the TP-Gain field of the skill in the database?
Because that is the original way to gain TP on skill use, no script or plugin needed at all.

You might have to make double skills if you want that gain to be only for some but use the skills for everyone, but that would still be easier than waiting for a plugin to get written.
 

RetroBoy

Veteran
Veteran
Joined
Dec 16, 2016
Messages
378
Reaction score
261
First Language
English
Primarily Uses
Because my system is FAR too elaborate and expansive for that to work.
 

Naveed

Veteran
Veteran
Joined
Nov 2, 2013
Messages
314
Reaction score
146
First Language
English
Primarily Uses
RMMV
I haven't tested this out yet, but I'm pretty sure it should work.

Give the class or enemy a passive state (for this example, we'll say the state has an ID of x).

Then, in the skill notebox, use a lunatic mode notetag:

Code:
<Custom Post-Damage Eval>
if (user.isStateAffected(x)) {
  user.gainTp(y);
}
</Custom Post-Damage Eval>
Where y is the amount of tp you want the user to gain.
 

JGreene

Veteran
Veteran
Joined
Oct 24, 2015
Messages
395
Reaction score
297
First Language
English
Primarily Uses
RMMV
I see you've got a solution, which works perfectly :)

This is for anyone else who might stumble across this thread and need a slightly different function:
<Post-Damage Eval>
a.gainTp($gameVariables.value(X));
</Post-Damage Eval>


//Where X is the variable ID. You can set it through an event for each actor, class, skill type, or whatever. And then have the skill call this for a custom TP gain. Since it's a variable amount, it can be changed any time you want without further editing of the database.

(Requires Yanfly's Skill Core)
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,050
Members
137,571
Latest member
grr
Top