Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
3,711
Reaction score
2,822
First Language
English
Primarily Uses
RMMZ
@Trihan
I see, that is very helpful, thank you for the info!

So I have this setup now, which does not seem to work:

<Custom Apply Effect>
user._counter = 2; // Does this need to be user or target?
</Custom Apply Effect>

<Custom React Effect>
if (value > 0 && target._counter > 0) { // And what about these?
target._counter -= 1;
value = Math.round(value * 0.5);
} else if (target._counter <= 0) {
target.removeState(139);
}
</Custom React Effect>

Side-question, I imagine that I should give each counter unique names right?
Calling every counter "counter" is surely prone to causing conflicts.
Yeah, you want each distinct effect to have a unique identifier unless they all use the same counter.

For Custom Apply Effect, I believe YEP plugins consider user and target to be the same object, so it shouldn't matter. For Custom React Effect it needs to be target.
 

ScorchedGround

Blizzards most disappointed fan (More than ever)
Veteran
Joined
Apr 12, 2020
Messages
574
Reaction score
790
First Language
German
Primarily Uses
RMMV
Okay, I got it working now, thank you very much @Trihan !
 

ScorchedGround

Blizzards most disappointed fan (More than ever)
Veteran
Joined
Apr 12, 2020
Messages
574
Reaction score
790
First Language
German
Primarily Uses
RMMV
Is it possible to create Wait commands in notetags?
Because I am pretty sure that

this.wait(x);

is not gonna work.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
3,711
Reaction score
2,822
First Language
English
Primarily Uses
RMMZ
Is it possible to create Wait commands in notetags?
Because I am pretty sure that

this.wait(x);

is not gonna work.
Hmm, that's a good question. What exactly are you trying to do?
 

ScorchedGround

Blizzards most disappointed fan (More than ever)
Veteran
Joined
Apr 12, 2020
Messages
574
Reaction score
790
First Language
German
Primarily Uses
RMMV
Well, the problem is esentially that I play animations in some of my notetags, and they cause minor lag upon loading the image files I presume. This in itself is not too bad, but it kind it also makes it really hard sometimes to read the popups (like damage, states, and custom popups etc.) that come with it.

For context, I am using VE_DamagePopup.

Here is an example:
(This is actually a part of the guardian angel state you helped me some time ago with)

<Custom Respond Effect>
if (target.hpRate() === 0) {
target.addState(178);
target.removeState(177);
target.startAnimation(357);

var text = "Guardian Angel! [\\I[4136]]";
var motion = 'Custom 4, Wait, Wait, Wait, Wait, Wait, Custom 3';
var font = "this.standardFontFace()";
var size = 28;
var color = '#ffe75e';
var x = 20;
var y = 20;
user.callCustomPopup(text, motion, font, size, color, x, y);
}
</Custom Respond Effect>

In this case I am displaying a custom popup that comes with the plugin saying "Guardian Angel!" to notify the player that the effect has triggered. However, this popup appears simultaneously to the animation which makes the popup difficult to read since at the time its appearance, there is some "startup-lag"
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
3,711
Reaction score
2,822
First Language
English
Primarily Uses
RMMZ
Well, the problem is esentially that I play animations in some of my notetags, and they cause minor lag upon loading the image files I presume. This in itself is not too bad, but it kind it also makes it really hard sometimes to read the popups (like damage, states, and custom popups etc.) that come with it.

For context, I am using VE_DamagePopup.

Here is an example:
(This is actually a part of the guardian angel state you helped me some time ago with)

<Custom Respond Effect>
if (target.hpRate() === 0) {
target.addState(178);
target.removeState(177);
target.startAnimation(357);

var text = "Guardian Angel! [\\I[4136]]";
var motion = 'Custom 4, Wait, Wait, Wait, Wait, Wait, Custom 3';
var font = "this.standardFontFace()";
var size = 28;
var color = '#ffe75e';
var x = 20;
var y = 20;
user.callCustomPopup(text, motion, font, size, color, x, y);
}
</Custom Respond Effect>

In this case I am displaying a custom popup that comes with the plugin saying "Guardian Angel!" to notify the player that the effect has triggered. However, this popup appears simultaneously to the animation which makes the popup difficult to read since at the time its appearance, there is some "startup-lag"
In that case you should be able to do $gameTroop._interpreter.wait(x)
 

ScorchedGround

Blizzards most disappointed fan (More than ever)
Veteran
Joined
Apr 12, 2020
Messages
574
Reaction score
790
First Language
German
Primarily Uses
RMMV
Unfortunately, this does not seem to do anything.


<Custom Respond Effect>

if (target.hpRate() === 0) {

target.addState(178);
target.removeState(177);
target.startAnimation(357);

$gameTroop._interpreter.wait(20);

var text = "Guradian Angel! [\\I[4136]]";
var motion = 'Custom 4, Wait, Wait, Wait, Wait, Wait, Custom 3';
var font = "this.ExtraFont";
var size = 28;
var color = '#ffe75e';
var x = 20;
var y = 20;
user.callCustomPopup(text, motion, font, size, color, x, y);
}
</Custom Respond Effect>

It's not so bad though, I am sure I'll find another solution besides using a wait command.
Using a wait command was just my first thought since it seems the most straightforward.
 

Latest Threads

Latest Profile Posts

Ami
need a time to not open my MV,still addicted with new vegas

i wonder what addiction effect behind playing new vegas too much,maybe INT & Science gone worse in many days :D
cdjensen94 wrote on Kaliya's profile.
Are you the one who develops Kaliya's Visual Map Enhancements. If so I desperately need some help. I bought the plugin back a few months. I've only started using it recently.
Cause MP Damage instead of HP, Localization Plugin for Translation | RPG Maker News #112

Here in Fla were are seeing crazy covid spikes and some vaccinated getting bad infections. I had a mild fever on Thurs but it went down fast. How is everyone else doing. Hopefully you are all well. :)
Wish I was better at art, specifically that I was faster at it, bc this one NPC took Several Days to complete! It's gonna take So Extremely Long to do all of the art for my game, never mind writing it... Anyways, here's my gorgon, Hopernica Sthyxis!

57b88732c7abbcd84981dacf624a98495af61fcc.gifv

Forum statistics

Threads
113,827
Messages
1,077,748
Members
147,884
Latest member
erora
Top