Trihan's lunatic notetag workshop (MV)

5. If Actor 5 has skill level 5, it will show as ABC Skill Level 5 when I look at Actor's 5 skill list, and if Actor 2 has skill level 2, it will show as ABC Skill Level 2 when I look at Actor's 2 skill list, whether in the main menu or in battle.
This is the answer to what I asked you. You're looking at it in the skill list window.

Inside a window's drawing function, you should be able to reference the actor with this._actor
Hi all, not sure if anyone can help me. I am trying to use a combination of YEP's Message Eval plugin to extract into a display text of all the skills an actor has. I tried using the below for actor 1, but the text just returns "[object, Object]" multiplied by the number of skills the actor has.
JavaScript:
$gameMessage.add("\\evalText<<$gameActors.actor(1).skills()>>");

My question is:
1) how do I pull out the skill name into the display text?
2) how do I pull out the skill ID as like a list that I can use for further functions (like display YEP's Skill Mastery level and usage next to the skill name in a display text?

Appreciate any help and thanks in advance!
I am trying to use a combination of YEP's Message Eval plugin to extract into a display text of all the skills an actor has.
That's not going to work perfectly. You can fix your syntax to retrieve the names of the skills instead of just the skill objects, but it's not going to format it legibly with spaces, commas, line breaks, etc.

And if you want to do stuff like
2) how do I pull out the skill ID as like a list that I can use for further functions (like display YEP's Skill Mastery level and usage next to the skill name in a display text?
The Yanfly Message plugins aren't designed to have the kind of functionality you want, because you'd need to automate going through the list of the actor's skills and applying the formatting before turning it into text.

You can do something like:
Code:
$gameActors.actor(1).skills().forEach(skill => skill.name)
and
Code:
$gameActors.actor(1).skills().forEach(skill => skill.id)

and it will return the lists you're asking for. But, again, those aren't going to be directly usable in any readable way.

I'd personally suggest you post a thread in JavaScript Support, describe more exactly what you're trying to create for your game, and get help constructing a window/scene that displays what you want.
That's not going to work perfectly. You can fix your syntax to retrieve the names of the skills instead of just the skill objects, but it's not going to format it legibly with spaces, commas, line breaks, etc.

And if you want to do stuff like

The Yanfly Message plugins aren't designed to have the kind of functionality you want, because you'd need to automate going through the list of the actor's skills and applying the formatting before turning it into text.

You can do something like:
Code:
$gameActors.actor(1).skills().forEach(skill => skill.name)
and
Code:
$gameActors.actor(1).skills().forEach(skill => skill.id)

and it will return the lists you're asking for. But, again, those aren't going to be directly usable in any readable way.

I'd personally suggest you post a thread in JavaScript Support, describe more exactly what you're trying to create for your game, and get help constructing a window/scene that displays what you want.
Seconded.
Thanks @ATT_Turan. I will try to do that.
That's not going to work perfectly. You can fix your syntax to retrieve the names of the skills instead of just the skill objects, but it's not going to format it legibly with spaces, commas, line breaks, etc.

And if you want to do stuff like

The Yanfly Message plugins aren't designed to have the kind of functionality you want, because you'd need to automate going through the list of the actor's skills and applying the formatting before turning it into text.

You can do something like:
Code:
$gameActors.actor(1).skills().forEach(skill => skill.name)
and
Code:
$gameActors.actor(1).skills().forEach(skill => skill.id)

and it will return the lists you're asking for. But, again, those aren't going to be directly usable in any readable way.

I'd personally suggest you post a thread in JavaScript Support, describe more exactly what you're trying to create for your game, and get help constructing a window/scene that displays what you want.
Hi All, just trying my luck here for YEP Job Points. I do not think it is possible, but I would like to check, if there is a way to add a flat value to the JP Rate, in a way similar to YEP's Special Parameter Formula plugin? Appreciate any advice, and thanks in advance.
there is a way to add a flat value to the JP Rate, in a way similar to YEP's Special Parameter Formula plugin?
I believe if you open the plugin, go to line 354, and change "parseInt" to "String" it should allow you to make the Gain Jp notetag accept code instead of just a number.

That would allow you to do
Code:
<Gain JP: your_default_formula + X>

Or, if you want to be fancy and not type out the formula again, try:
Code:
<Gain JP: Yanfly.Param.JpPerAction + X>

where X is the flat value you want to add.

I am not super versed in regex stuff, so let us know if that doesn't work.

------------------------------------------------------------------------------

Alternately, if you never want percentage-based rate changes, you could edit what the JP Rate notetag does. Go to the jpRate function starting on line 502 and change the starting value to 0. Then change all instances of *= to += until the function ends at line 516.

That will let you use the JP Rate notetag and the number you enter will be a flat modifier.
Hi @ATT_Turan , thanks for the response. For the the below, it does not appear to work:
I believe if you open the plugin, go to line 354, and change "parseInt" to "String" it should allow you to make the Gain Jp notetag accept code instead of just a number.

That would allow you to do
Code:
<Gain JP: your_default_formula + X>

Or, if you want to be fancy and not type out the formula again, try:
Code:
<Gain JP: Yanfly.Param.JpPerAction + X>

where X is the flat value you want to add.

I am not super versed in regex stuff, so let us know if that doesn't work.

As for this, somehow, in my game, it ended up causing everyone's default JP rate to be something other than 1 (most had 600%, but one had 500%), but otherwise the notetag works.
Alternately, if you never want percentage-based rate changes, you could edit what the JP Rate notetag does. Go to the jpRate function starting on line 502 and change the starting value to 0. Then change all instances of *= to += until the function ends at line 516.

That will let you use the JP Rate notetag and the number you enter will be a flat modifier.

However, I am actually looking for any script call to amend JP rate rather than via a note tag. Apologies for not clarifying earlier, but I am trying to create passive skills to help improve my characters' various parameters. Some like the below works when I try to provide a passive that will improve item usage efficiency by 50%. The reason I am actively avoiding using passive states, is because of the amount of lag they can cause the game, hence, why I am trying to look for a solution via script call.

JavaScript:
<Learn Cost Eval>
var amount = 0.5;
user.addPha(amount);
user.refresh();
</Learn Cost Eval>
It has been a while since I posted here...but I recently ran into a problem...how do I change the "base" paramter of enemies?

To clarify my situation, I am using YEP's Enemy Levels. The formulas in the plugin works as intended. However, for some reason, I cannot, for the life of me, figure out how to change the "base" part of the equation. I tried amending the database itself (e.g., I have an enemy's maxHP as 50), but the base part is not picking up that number all all. The formula I use is "((level-1)*(level-1)*rate)+((level-1)*flat)+base". I am not sure if any plugin might be conflicting with it, but that does not seem to be the case.
I have an enemy's maxHP as 50
what does it pick up then? if you can figure it out you could have a better idea of what's happening

I am not sure if any plugin might be conflicting with it, but that does not seem to be the case.
most likely, yes. within the plugin, base is just a call for the enemy's base stats, which is normally just the stats as seen in the editor.
if you have another plugin that does anything to modify how stats work for enemies and its loaded before enemy levels, the base stat that enemy levels plugin looks at will include those changes as well
what does it pick up then? if you can figure it out you could have a better idea of what's happening
It just keeps picking up a flat 100 for the "base" number. I tried to go through my plugins to see if anything affects MHP but could not find any. I would assume the other parameters are also similarly affected, but HP is just the easiest to check with Yanfly' Visual HP Gauge plugin.
I tried amending the database itself (e.g., I have an enemy's maxHP as 50), but the base part is not picking up that number all all.
Well, that's what it uses.

1718328703226.png


That line is setting the base variable to the paramBase() method from the default core scripts, which is pulling the database entry.

If you set your formula to just be base, you should see it directly reflect the database entry. Make sure you're saving your project after making changes and starting a new play test, not using a save game.

If there's something else in your project that overwrites Game_Enemy.prototype.paramBase, that could cause the whole plugin to malfunction.
Hi Turan, thanks for the response. I did save my game everytime I made changes. I am at work now, so cannot check my game, but I don't think there was anything that changed the Game_Enemy.prototype.paramBase, but will check again later.

EDIT: Just an update, I think I know what happened. I was trying to transform the enemy, and due to my own idiocy, set the event to span the battle on the condition that the party does not run. Changing the troop event to span only on turn 0 solved the problem.

Original thread: https://forums.rpgmakerweb.com/threads/trihans-lunatic-notetag-workshop-mv.123457/