MZ Skill common event ignored if said skill kills the last enemy

As the title says.
It's a common event that counts how many times the skills has been used. But if said skill is used to kill the last enemy, the common event is ignored.
I'm using several scripts from Visustella (and only Visustella) but not in a very different way from my previous game which had similarly designed skills... with common events working properly.

Any clue what might be happening there?

cev.png
it might be the same reason why a troop event conditioned to the HP of the last killed enemy never fires: the battlescreen finishes combat as soon as the last enemy is killed, before the troop events are processed.
That is a long known fact with known workarounds, and this sounds as if Visustella changed the battleengine to handle all events that way instead of only troop events.

I don't think there is anything you can do directly other than pointing this out to visustella, but perhaps you can try to implement one of the old workarounds (immortal states if eventing or additional battleconditions by plugin) to see if they force the common event to work as well.
What I don't get is that my other MZ game using Visustella doesn't have that problem, even though it uses the latest VS versions of all plugins... Also the problem persists even if I remove all plugins but the Core Engine one...

Sorry for the double post but @Andar I've identified the problem and I'm not happy.
My previous game uses version 1.3.0 of MZ and common events are run after each skill regardless of whether said skill concludes the fight. It works as it should.
HOWEVER.
My current game uses version 1.4.3 (latest) which happens to be glitchy and doesn't run the common event in that specific circumstance. What kind of update is that seriously??? :headshake:

EDIT:
Bingo! downgrading the version to 1.3.0, everything is back to normal.
I'm really concerned with these "updates" now. If they fundamentally change how the software behaves, each time we update, how can we be sure that it doesn't break the game? We need to retest the full game for each update, really?
something like this should be tagged @Archeia so she can decide if that is a bug or was intended for other reasons.
Thanks!
I cannot fathom why anyone would want that kind of stuff "intended".
I mean, you put a common event attached to a skill in the database, the expected behavior is that this common event is run after ANY use of the skill.
have you tried using the notetag
Code:
<Common Event: name>
instead of part of the effects?
something like this should be tagged @Archeia so she can decide if that is a bug or was intended for other reasons.
To clarify:
- Fire 1, launches common event that puts out a message window "bloop"
- Kills enemy 1, common event appears
- Kills enemy 2, common event appears
- Kills last enemy, no common event

This is a default behaviour for RM by default. It's why autolife had to be scripted etc. Anything that does the final death on battle skips all the other checks.

Also...next time use an empty project and try to recreate there. Because nothing is wrong in 1.4.3. and VisuStella Battle Core when I tested it.
Because nothing is wrong in 1.4.3.

Of course it's wrong. Inconsistency is always wrong.
1.4.3 behaves differently from 1.3.0 (and 1.3.3) which means that if a developer inadvertently or unknowingly upgrades from 1.3.0 to 1.4.3, it may break the gameplay of their game (as it would have for mine).

This is a default behaviour for RM by default.

No. It's the contrary.
RM XP 1.05a doesn't behave like this.
RM Ace 1.02a doesn't behave like this.
RM MV 1.6.2 doesn't behave like this.
RM MZ 1.3.0 doesn't behave like this either.
They all run the common event properly even if the skill kills the last enemy.
And I think it's wrong to "behave like this", to be honest. I don't find that intuitive at all and more importantly it goes against all I've known from previous use of MV, Ace etc. and my prior use of MZ from my first game as well. I would appreciate it if 1.4.3 just behaved like all the other versions.
No. It's the contrary.
RM XP 1.05a doesn't behave like this.
RM Ace 1.02a doesn't behave like this.
RM MV 1.6.2 doesn't behave like this.
RM MZ 1.3.0 doesn't behave like this either.
I can't speak to the older editors because I haven't used them. But MV absolutely behaves like this. You can find it pretty easily in the code, and there are plugins that have been specifically designed to change it (e.g. HimeWorks' End Phase Triggers).

I even made a test project just for the sake of it, and just as expected, the battle ends as soon as the last enemy dies, the common event attached to Attack did not run.

So...you are not correct in your very vehement post.
Jeez I made an ENTIRE MV game specifically using common events this way, OF COURSE I'm correct lol

This is with no plugin whatsoever:

So, something occurs to me here. Your common event ran once you're back on the map, but a lot of the previous posts may have been talking about running one in the battle screen after the last foe has been ganked. I'm not certain if all of you were on the same page. I don't even know if it matters, honestly.
So, something occurs to me here. Your common event ran once you're back on the map, but a lot of the previous posts may have been talking about running one in the battle screen after the last foe has been ganked. I'm not certain if all of you were on the same page. I don't even know if it matters, honestly.

That's exactly what I meant.
MZ 1.3.3 behaved this way. Version 1.4.3 not anymore.
I made games with XP, Ace, MV and MZ. They all behaved this way up until MZ 1.4.0 :dizzy:
Jeez I made an ENTIRE MV game specifically using common events this way, OF COURSE I'm correct lol
You have made several posts in this thread where, frankly, you sound like quite a jerk. In fact, much of it was due to insufficient information - when you start by talking about things that are triggered by battle, there is no reason anyone else is going to make the leap to assuming you want those events to then resolve after battle.

If you took a little more time when writing your posts to make sure you're very clear, instead of being insulting to me and Archeia, it's entirely possible this would be in the process of a bug report right now.
"It's a common event that counts how many times the skills has been used. But if said skill is used to kill the last enemy, the common event is ignored."

What don't you understand exactly?

And it's still unclear to me why 1.4.0 stopped behaving like all the other RM always have, MZ included. This is dangerous because we have no way to know unless we stumble into it (like I did, but with another game) and pay attention enough to notice it. You could candidly upgrade thinking it will be better and unwantedly break the gameplay of your game with changes like this.
This is with no plugin whatsoever:
can you provide that test game for download for us to check?

Because you made a lot of claims, but no one had any chance to check them specifically.
and the behaviour in that video is very suspicious, it should not happen that way in any regular event handling (in my opinion), exactly because that window only came after the battle.
What don't you understand exactly?
Well, let me try to get some clarity for everyone else here. Do you want things to work like in your video, where the common event fires after returning to the map, or do you need it to happen before you leave the battle screen?

Like Andar says above, the event handling there is a bit odd.
Well, let me try to get some clarity for everyone else here. Do you want things to work like in your video, where the common event fires after returning to the map, or do you need it to happen before you leave the battle screen?

Like Andar says above, the event handling there is a bit odd.

It's okay in the map. My opening post was specifically about it being ignored, there was no mention of battle or map. It's also how it was handled with my previous MZ game and my MV game, so I was always fine with it just behaving like before.

can you provide that test game for download for us to check?

It's my normal game that I quickly edited. I could put together a demo but I'm not sure what you consider suspicious there and why you would even assume that.
Here is a video showing you all you need to see, version 1.6.2, empty plugin manager, common event, skill and play-testing:

It's my normal game that I quickly edited. I could put together a demo but I'm not sure what you consider suspicious there and why you would even assume that.
then please make that demo.

the problem is that the common event is triggered outside the battlescreen. no skill use from inside the battlescreen should trigger anything outside the battlescreen in my opinion.

I think that you probably made some edits to the core long ago and that you simply have forgotten, or something like that - especially since you now state that it was based on a project which you worked on a long time instead of a new project with nothing else changed.
So please make a new project with only that common event and its parts added to the core that should work according to your statements, and have that for us to see what you did in that common event.
the problem is that the common event is triggered outside the battlescreen. no skill use from inside the battlescreen should trigger anything outside the battlescreen in my opinion.

Personally I'm used to that from MV/MZ and I like it much more than it being ignored altogether.
Of course it'd be even better if it happened still in the battle I guess, but I'd take on the map anytime over... not at all.
And regardless of personal preferences, the core of the issue is that it behaved in one way in 1.3.0 and in another in 1.4.0

I think that you probably made some edits to the core long ago and that you simply have forgotten, or something like that - especially since you now state that it was based on a project which you worked on a long time instead of a new project with nothing else changed.

I wish I was this good that I could edit the core lol
I did the same thing on a brand new project and as expected, it did the exact same thing.
Demo on the way.

Original thread: https://forums.rpgmakerweb.com/threads/skill-common-event-ignored-if-said-skill-kills-the-last-enemy.145152/