Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
3,752
Reaction score
2,848
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
622
Reaction score
836
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
622
Reaction score
836
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,752
Reaction score
2,848
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
622
Reaction score
836
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,752
Reaction score
2,848
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
622
Reaction score
836
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 Posts

Latest Profile Posts

My Overworld might be a mix of inspiration from 2D Final Fantasy games, Breath of Fire, Battlechasers: Nightwar, Super Mario World, and Pillars of Eternity. If I can make it more in-depth than just walking from point A to point B, that might do a lot for the gameplay experience. Hmm...
Terribly depressed. Worst birthday I've had in years, no motivation to work on anything. Still no income. At least I've got my computer running again.
Doing RPG Maker News for 19th September 2021

Stream will be live with some Dark Souls 3, followed by a session of the Interactive Text Adventure! Feel free to drop by!

Forum statistics

Threads
115,210
Messages
1,088,055
Members
149,785
Latest member
Sxnju
Top