Alkaline

Veteran
Veteran
Joined
Jun 30, 2020
Messages
55
Reaction score
9
First Language
English
Primarily Uses
RMMV
I want to get a Game Over when my character runs out of items in the inventory during a battle. So far I'm trying with just one potion, but I use it in battle and nothing happens.
This is how the troop events look like:
1669769263359.png
And the Common Event:
1669769279504.png

I tried making a parallel event to check the inventory too but it did not work.
How do I get the check to work in battle?
 

TheAM-Dol

Randomly Generated User Name
Veteran
Joined
Feb 26, 2022
Messages
424
Reaction score
535
First Language
English
Primarily Uses
RMMV
Change the condition from "Don't Run" to a turn condition.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
5,782
Reaction score
5,597
First Language
English
Primarily Uses
RMMZ
I want to get a Game Over when my character runs out of items in the inventory during a battle. So far I'm trying with just one potion, but I use it in battle and nothing happens.
This is how the troop events look like:
View attachment 246220
And the Common Event:
View attachment 246221

I tried making a parallel event to check the inventory too but it did not work.
How do I get the check to work in battle?
This is something that seems to confuse a lot of users, so I promise you I'm saying this to be helpful even though to some it might read as being a smartass: if your condition for a troop event is set to "don't run" which it is by default, the event doesn't run. It needs a condition to do anything.
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
6,982
Reaction score
4,821
First Language
English
Primarily Uses
RMMV
That's absolutely how I tried to use it when I first went into troop events - I thought it meant as long as the player hadn't run from the battle.

Even though mousing over it provides a tooltip that explains it *shrug*

Also, @Alkaline unless you also use that other places there's really no sense in having the troop event call a common event - just slap that event code directly in there.
 

Alkaline

Veteran
Veteran
Joined
Jun 30, 2020
Messages
55
Reaction score
9
First Language
English
Primarily Uses
RMMV
I changed it to "Turn end" and it still doesn't work :kaoeh:
I thought it meant as long as the player hadn't run from the battle.
I thought the same thing
 

Alkaline

Veteran
Veteran
Joined
Jun 30, 2020
Messages
55
Reaction score
9
First Language
English
Primarily Uses
RMMV
So I figured it out... I needed to set the variable in the event before the conditional branch.

Now it works as it should!!
 

Latest Profile Posts

So I managed to scare my chief. Between shifts I had an appointment with my psychiatrist, so prior to it I'd told him "If I ain't coming today, they've kept me there.". Then as I was asleep, my phone died. So I overslept and through the entire time I was unreachable.
I spent so much time toiling in VX Ace frankensteining scripts together only for MV to come along and just... have everything.

The overworld tool system in particular I thought was gonna take me a million years to recreate, but nope. Thanks Moghunter.
Going to go live way earlier than usual tonight, pretty much in 20 minutes, purely because I'm bored. :LZSlol:

So... I'm gonna be a parent... XD

Forum statistics

Threads
128,378
Messages
1,194,061
Members
168,877
Latest member
eternaldes
Top