Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
3,748
Reaction score
2,847
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
620
Reaction score
832
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
620
Reaction score
832
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,748
Reaction score
2,847
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
620
Reaction score
832
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,748
Reaction score
2,847
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
620
Reaction score
832
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

I THINK I have a slightly better grasp on drawing my maps now... sorta. I still need to figure out how to draw a city of sorts. I've only got the abstract going so far.
One day, I'll not have this lingering cough and we'll have another make a game stream.
A music I create while practicing E Major scale. :D
Too bad the Boss Battle Build Bout isn't also for VXAce.

Forum statistics

Threads
115,178
Messages
1,087,886
Members
149,745
Latest member
leilahbrekke
Top