Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
3,756
Reaction score
2,849
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
632
Reaction score
848
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
632
Reaction score
848
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,756
Reaction score
2,849
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
632
Reaction score
848
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,756
Reaction score
2,849
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
632
Reaction score
848
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

Glad to announce:
Released a plugin mod for MV: SelectMultipleTargets v3.0 (mod of original by Zevia)

port to MZ is following

1,Randomly generate events with planted spawner events(great flexibility for customization and auto-match player's level)
2,Randomly enter roguelike dungeon
3,Player can exit dungeon or back to town or choose to challenge BOSS at the end of each dungeon
4,Dungeon maps can be randomly generated by a third-party tool
Got locked out of the house yesterday... best friends who had the spare ghosted me. Locksmith had to literally drill thru the lock bc they couldn't pick it. Whole process took 4 hours and far too much money. And they have to come back next week bc they don't have the right cylinder, cause it's an old interlocking lock. I'm livid lol
 I’m probably going to regret this, but I need kobolds for my project and I’ve decided to sprite them myself. This is Attempt #1, front view only.

KoboldFront.gif
It's a shame that Selection Control will not be ported to MZ. I found a neat way of using it to enable ways for tanks to protect squishies. lol

Forum statistics

Threads
115,354
Messages
1,089,231
Members
150,039
Latest member
camy7602
Top