The official VisuStella notetag help thread

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
7,629
Reaction score
5,398
First Language
English
Primarily Uses
RMMV
I changed the conditional, and the following happens: neither the enemies nor the actors do nothing, until one of the actors actually selects as target an enemy with State 28, in that case the condition is checked but returns false (as if the target didn't have State 28). From that point on, enemies start to attack but the conditional is always false. Here's the console:
See, that's what we needed as soon as your first conditional didn't resolve the way you thought it should.

So the only way I can think of for that code to be looking at an undefined target is if the BattleManager.actor check is not doing what I think it ought to, which is return undefined when it's an enemy battler turn.

Try BattleManager.actor().isActor() for the first part of your conditional, instead of just BattleManager.actor()
 

VaiJack8

Veteran
Veteran
Joined
Sep 21, 2016
Messages
54
Reaction score
42
First Language
Italian
Primarily Uses
RMMZ
See, that's what we needed as soon as your first conditional didn't resolve the way you thought it should.

So the only way I can think of for that code to be looking at an undefined target is if the BattleManager.actor check is not doing what I think it ought to, which is return undefined when it's an enemy battler turn.

Try BattleManager.actor().isActor() for the first part of your conditional, instead of just BattleManager.actor()
Sadly it doesn't work. Here's the console log:
2021-10-20 01_10_18-Window.png
 

KG2020

Villager
Member
Joined
May 11, 2021
Messages
6
Reaction score
0
First Language
English
Primarily Uses
RMMZ
Hello all,

This is probably something simple that I'm missing.

Is there a simple way to set Visustella's Auto Dash option in the Options Core to the off position by default? I went into the options core plugin and changed the bool values, but they had to do with player accessibility to the Auto Dash option. (returning false either grayed out the menu option or removed it from the menu). I would like to keep the option to toggle auto dash on available in the menu, but start with it set to off if possible.

Thanks,

KG
 

VaiJack8

Veteran
Veteran
Joined
Sep 21, 2016
Messages
54
Reaction score
42
First Language
Italian
Primarily Uses
RMMZ
Heyyy

I'm having troubles with class's text codes in the Class Change scene. Here's my normal status with the class's name correctly colored:
2021-10-21 12_10_21-Project Monkey.png
While here's the class change scene, in which text codes are not evaluated:
2021-10-21 12_10_16-Project Monkey.png

That should be a macro, but other text codes won't work neither. Is there some hidden plugin parameter I don't know that I should enable? Thanks in advance.
 

mumuani248

Villager
Member
Joined
Oct 21, 2021
Messages
6
Reaction score
0
First Language
Germany
Primarily Uses
RMMZ
Hello all,
How can use script change weapon param value

I use " Item Crafting System VisuStella MZ "
<JS Crafting Effect>
$gameActors.actor(x).addParam(params[2], value); this OK
$dataWeapons[1].addParam(params[2], value); But this doesn't work
</JS Crafting Effect>
1634812644797.png
Thanks
 
Last edited:

NaosoX

Veteran
Veteran
Joined
Feb 28, 2013
Messages
636
Reaction score
365
First Language
English
Primarily Uses
RMMZ
Hello all,

This is probably something simple that I'm missing.

Is there a simple way to set Visustella's Auto Dash option in the Options Core to the off position by default? I went into the options core plugin and changed the bool values, but they had to do with player accessibility to the Auto Dash option. (returning false either grayed out the menu option or removed it from the menu). I would like to keep the option to toggle auto dash on available in the menu, but start with it set to off if possible.

Thanks,

KG
VisuMZ_1_OptionsCore > Options Categories > "General" > Options List > "alwaysDash" > Data > JS: Default Value > change true to false.

autodash.png
 

VaiJack8

Veteran
Veteran
Joined
Sep 21, 2016
Messages
54
Reaction score
42
First Language
Italian
Primarily Uses
RMMZ
Heyyy

Is there a way to edit this window? It's the actor's status that comes up in the Skill and Equip scene. Thanks in advance.
2021-10-24 14_23_59-Project Monkey.png

UPDATE: Found it in was in the rmmz_windows.js file.
 
Last edited:

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
7,629
Reaction score
5,398
First Language
English
Primarily Uses
RMMV
How can use script change weapon param value

$dataWeapons[1].addParam(params[2], value); But this doesn't work
You can't change the $data arrays during gameplay - those are the values read in from how you defined everything in the editor's database, they don't then get altered.

Instead, use 'item' like the screenshot you attached says.
 

Jh0104

Warper
Member
Joined
Aug 26, 2021
Messages
3
Reaction score
0
First Language
Chinese
Primarily Uses
RMMV
I am using the Battle System ATB plugin, and I would want to set a state. When the state is applied to a target, the target's ATB gauge will be reduced (or said discharge) by 50%. I think this could be done by using the <JS On Add State> notetag, but I do not know how to write the code, hope someone can help me. Thank You.
 

NaosoX

Veteran
Veteran
Joined
Feb 28, 2013
Messages
636
Reaction score
365
First Language
English
Primarily Uses
RMMZ
I am using the Battle System ATB plugin, and I would want to set a state. When the state is applied to a target, the target's ATB gauge will be reduced (or said discharge) by 50%. I think this could be done by using the <JS On Add State> notetag, but I do not know how to write the code, hope someone can help me. Thank You.

Hi, have you tried notetag:
Code:
<ATB After Gauge: x%>
which changes gauge after skill is used?

More information can be found in the instructions:
http://www.yanfly.moe/wiki/Battle_System_-_ATB_VisuStella_MZ#ATB_Gauge_Manipulation-Related_Notetags
 

Jh0104

Warper
Member
Joined
Aug 26, 2021
Messages
3
Reaction score
0
First Language
Chinese
Primarily Uses
RMMV
Hi, have you tried notetag:
Code:
<ATB After Gauge: x%>
which changes gauge after skill is used?

More information can be found in the instructions:
http://www.yanfly.moe/wiki/Battle_System_-_ATB_VisuStella_MZ#ATB_Gauge_Manipulation-Related_Notetags
Actually, I want to combine the ATB with the Break Shields system. When the player breaks an enemy shield, also reduce the target's ATB gauge at the moment. This requires the reduction of gauge happen when the state is added, not after any skill is used. So, the notetag <ATB After Gauge: x%> cannot be used in this situation. However, also thank you for helping.
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
7,629
Reaction score
5,398
First Language
English
Primarily Uses
RMMV
When the state is applied to a target, the target's ATB gauge will be reduced by 50%. I think this could be done by using the <JS On Add State> notetag
So I'm seeing the functions target.applyTpbPenalty() or you can access target._tpbChargeTime directly and perform operations on it.
It looks like the charging goes from a scale of 0-1, so if you wanted to decrease it by 50% you could try:
Code:
target._tpbChargeTime=Math.max(0, target._tpbChargeTime-0.5);
 

VaiJack8

Veteran
Veteran
Joined
Sep 21, 2016
Messages
54
Reaction score
42
First Language
Italian
Primarily Uses
RMMZ
Heyyy

Is there a way to deal elemental damage with the <JS HP Slip Damage> notetag? Everyone's telling me to just include the target's elemental rate in the formula, but that's not the only variable I should consider. In fact, there are also the user's dealt damage bonus, the target's element absorb trait and their element reflect trait. Is there a way to include all of this in the formula?
 
Last edited:

Jh0104

Warper
Member
Joined
Aug 26, 2021
Messages
3
Reaction score
0
First Language
Chinese
Primarily Uses
RMMV
So I'm seeing the functions target.applyTpbPenalty() or you can access target._tpbChargeTime directly and perform operations on it.
It looks like the charging goes from a scale of 0-1, so if you wanted to decrease it by 50% you could try:
Code:
target._tpbChargeTime=Math.max(0, target._tpbChargeTime-0.5);
It works! Thank you very much.
 

Saireau

Veteran
Veteran
Joined
Dec 19, 2019
Messages
133
Reaction score
73
First Language
German
Primarily Uses
RMMV
Hey guys,

could anyone of you maybe explain the difference between the 'Pre-/Post-Apply' and 'Pre-/Post-Damage' phases? I would also like to know how 'value' can be used, since as far as I know, it means different things in different phases of an action, right?

I get the feeling that really understanding these phases will help creating many cool effects.

Thank you! :)
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
7,629
Reaction score
5,398
First Language
English
Primarily Uses
RMMV
could anyone of you maybe explain the difference between the 'Pre-/Post-Apply' and 'Pre-/Post-Damage' phases?
According to the documentation:
Pre-Apply Runs JavaScript code at the start of an action hit aimed at the function Game_Action.prototype.apply()
and
Pre-Damage Runs JavaScript code before damage is dealt
and likewise for both post- effects. So...is your skill/item dealing damage or not? Apply effects will happen no matter what your thing is doing, damage effects only happen if it's executing a damage formula.
I would also like to know how 'value' can be used, since as far as I know, it means different things in different phases of an action, right?
Not that I know of, where do you see this? Unless it's been changed from the original Yanfly implementation, value always refers to the result of the damage formula.
 

Saireau

Veteran
Veteran
Joined
Dec 19, 2019
Messages
133
Reaction score
73
First Language
German
Primarily Uses
RMMV
That was fast. :) Thank you!

So, the engine checks for damage first (if a formula exists), and then proceeds with other effects (which is the apply phase)?

As far as 'value' is concerned: Sorry, this was just what I gathered with my very limited understanding. I didn't mean to confuse anyone.
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
7,629
Reaction score
5,398
First Language
English
Primarily Uses
RMMV
So, the engine checks for damage first (if a formula exists), and then proceeds with other effects (which is the apply phase)?
No. Damage execution happens within the apply function, if a damage formula exists. So, if you put both a pre-apply and pre-damage effect on the same action (for some reason), it should do:
- Pre-Apply
- Determine whether the action hits/is effective
- Pre-Damage
- Damage
- Post-Damage
- Other effects
- Post-Apply

Note that as I'm unable to examine the VisuStella code, this is based on their description in the help file, and what I can see in MZ's existing code.
As far as 'value' is concerned: Sorry, this was just what I gathered with my very limited understanding. I didn't mean to confuse anyone.
I don't see that you did confuse anyone, but feel free to share what you read that made you think that.
 

Saireau

Veteran
Veteran
Joined
Dec 19, 2019
Messages
133
Reaction score
73
First Language
German
Primarily Uses
RMMV
Thank you for clarifying. :) So, if apply is, like, the whole thing, it's basically like this:

  • Apply
    1. Hit? Critical Hit? Miss? Evasion?
    2. Damage (optional)
    3. Other effects (e.g. states)
 

Lnik3500

Master Troll
Veteran
Joined
Feb 26, 2015
Messages
324
Reaction score
53
First Language
French
Primarily Uses
RMMV
Asking one of my own here since I'm completely stuck
I'm trying to isolate a base parameter in the parameter formula in Core Engine.
How do I do that?
Basically: Changing only how ATK works and no other parameters, how can I do that when it's 1 formula for all of them?
 

Latest Threads

Latest Profile Posts

Made a title screen, and by ''made'' I ofc mean I slapped a simple title on some cool art I bought xD This side project might be fun.

sIMPLE.png
CDF.png

Trying for a Classical RPG with Pokemon Elements. Capture monsters like Zombies and Harpys and use them on your team.
ow28O4A.png

Astarte in her usual demeanor: mocking people.
45% off MZ on Steam. Just in case some are like me and never check for that stuff :)
I was surprised to see a email from Safeway that my grocery have been delivered when they have not. The email was a noreply message. So enjoy the $88 of free food random person.

Forum statistics

Threads
129,871
Messages
1,205,819
Members
171,043
Latest member
Kokeshi003
Top