Getting permadeath working/getting a common event to run at the end of every turn

Mihnea

C++ adept
Member
Joined
Sep 30, 2018
Messages
24
Reaction score
4
First Language
Romanian
Primarily Uses
RMMV
So, title explains all of it. I have this common event with conditional branches for if a character enters the knockout state (reaches 0 hitpoints) some dialouge will be shown and then the member will be removed from the party. However I have trouble getting it to work past turn 1. (If I run the event page with the "End turn" condition)
This is the common event:
1597264204491.png
And this is what I tried doing for battles so far, to no avail:
1597264255610.png
1597264290114.png
The names of actors were not changed. My idea of doing permadeath is simply running the common event after each turn. I had no luck doing that so far. If anyone has any ideas or can provide any help I'd be deeply grateful.
 

Xane

Veteran
Veteran
Joined
Jun 5, 2020
Messages
67
Reaction score
357
First Language
(US) English
Primarily Uses
RMVXA
It's cause you have the span set to battle. You need to change the span to turn. By default it's only going to check once per battle.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
30,906
Reaction score
7,447
First Language
German
Primarily Uses
RMMV
your problem is the wrong span.
the span of the troop event determines how often the condition is checked and the event run:

once per battle, once per turn or once per moment/action

edit: ninja'd
 

Crusha

Veteran
Veteran
Joined
Jul 28, 2020
Messages
56
Reaction score
25
First Language
English
Primarily Uses
RMMV
Can confirm what has been suggested works. Not to derail this, but when the conditional is set to Don't Run, is there a reason it works when condition is set to Turn-End, but not for Don't Run? My thought-process is that the game would check if the player has not Ran away.
 

ScorchedGround

Blizzards most disappointed fan
Veteran
Joined
Apr 12, 2020
Messages
279
Reaction score
431
First Language
German
Primarily Uses
RMMV
@Crusha
the "don't run" mentioned in the troop event has nothing to do with "running away from battle".

It just means that the event-page is not active and will not execute any commands.
 

Crusha

Veteran
Veteran
Joined
Jul 28, 2020
Messages
56
Reaction score
25
First Language
English
Primarily Uses
RMMV
@Crusha
the "don't run" mentioned in the troop event has nothing to do with "running away from battle".

It just means that the event-page is not active and will not execute any commands.
Ah -- I interpreted its meaning differently then. Thank you for answering this Scorched.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
30,906
Reaction score
7,447
First Language
German
Primarily Uses
RMMV
that "don't run" comes from the technical term "to run a program". As said above it has nothing to do with escaping.
 

Bex

Veteran
Veteran
Joined
Aug 2, 2013
Messages
1,492
Reaction score
408
First Language
German
Primarily Uses
RMMV
In your first Picture you see the Word "Span", go with your Mouse to it stay still there for 2 to 3 Seconds, than a Helpwindow Pops Up that explains the Terms for the Span.
That also works with Textbox and many other Editor Eventcommands. Its not just very obvious, but when one knows about it, its useful.
 

Mihnea

C++ adept
Member
Joined
Sep 30, 2018
Messages
24
Reaction score
4
First Language
Romanian
Primarily Uses
RMMV
Thanks everyone for helping! It works now. I have set the span to turn and the condition to turn end, and now it works as good as one might want! (Also modified the common event to check if the actor is in the party prior to them saying their death line since else they would say it every turn after their death)
 
Last edited:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
30,906
Reaction score
7,447
First Language
German
Primarily Uses
RMMV
common event the instant someone reaches 0 hitpoints?
not as a common event for everyone, but you can make troop events to react to specific battler HP.
you would need one troop event for every actor instead of a single common event, and that would either have to be copied into every troop manually or by using a base troop event plugin for automatic copy
 

Mihnea

C++ adept
Member
Joined
Sep 30, 2018
Messages
24
Reaction score
4
First Language
Romanian
Primarily Uses
RMMV
not as a common event for everyone, but you can make troop events to react to specific battler HP.
you would need one troop event for every actor instead of a single common event, and that would either have to be copied into every troop manually or by using a base troop event plugin for automatic copy
Thanks for the advice, I fortunately got the common event to run at the end of every turn, which is good enough.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

So I'm having issues with my steam account... so I can't use MZ right now, so I can't work on my game until its solved, so it be harder to be ready for 31... guess I'll get ice cream :kaopride:
Motivation! Inspiration! There you are. I was worried you guys weren't going to show up today. Let's get this thing going!
Made these new little isles yesterday, to test my new tiles. Guess they're look pretty chill...
Are your bodies ready for spoopy? 0 w0
Made a lot of progression today with my next chapter. It helps that I wrote an outline of what will happen. :)

Forum statistics

Threads
104,212
Messages
1,004,726
Members
135,722
Latest member
ProtoPropski
Top