Can I make an event based on Variable

Joined
Dec 7, 2016
Messages
11
Reaction score
0
First Language
English
Primarily Uses
Im trying to make an event that only appears when a characters MP is under a certain amount. So far ive been able to make an HP drain system using the Variable system to first drain mp. Tried using this for the event but it appears no matter what unless i change to autorun which locks player movement. This is for MZ but i didnt see a MZ thread...

For more details I have a variable set to character MP and for some reason the events I'm making won't hide the monster unless it's on autorun. I want the monsters to appear when x character MP reaches x or lower value. For example Reid has 75 mp I want a monster to appear on the map when he has 50 or less mp.

Edit: what estriole suggested worked great. Thanks for the help. Once I have some screenshots I will post the events that are relevant to the situation.

Kinda new issue involved with this idea. Need to make the event appear and disappear based on mp value. It stays after appearing even if the mp value is outside its required area...
 
Last edited:

estriole

Veteran
Veteran
Joined
Jun 27, 2012
Messages
1,367
Reaction score
603
First Language
indonesian
you need parallel process event to keep track of your character MP...
in that parallel change variable -> game data -> actor MP...
(don't forget to add at least 1 frame Wait event command to avoid fps drop)

then in your monster event add blank page (for when monster not appearing) with condition that variable >= certain value (somehow the event page only have variable >= condition)...

hope this help.
 
Joined
Dec 7, 2016
Messages
11
Reaction score
0
First Language
English
Primarily Uses
So make the event have a variable check for 100 since there will be no leveling. That works I hope. Thanks for the help in advance.

I did forget to mention I have the variable set to check actor mp as a common event as I'm adapting it to be a sanity meter.

It worked after a few tries but now i can copy the 3 events that i made based off of this and put them where ever
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
8,010
Reaction score
5,321
First Language
Dutch
Primarily Uses
RMXP

I've moved this thread to MZ Support. Please be sure to post your threads in the correct forum next time. Thank you.

 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,735
Reaction score
7,852
First Language
German
Primarily Uses
RMMV
we need to see screenshots of the current events to check why they don't work.
if done correctly the effect should work as described, and that means either you're doing something wrong or something is interfering with the commands - in both cases we need to see what is in your project to help.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

I'm posting a commission art soon! :kaoswt2:
So here's a fun/tragic fact about me: I have an awful memory. But to be correct, I have memory "leaks". My memory is actually amazing, my issue is I can't keep memories for long, in fact, I once forgot my name. :kaoswt2:
The neighbourhood cats brought me a kitten today. They sat him on the step and semi-circled him. He's adorable, but now I gotta find somewhere for him.
So basically, I added strings to my musics and BAM, it doesn't sound empty anymore.
Been a while. New jam coming up on RMN. Let's press Continue, my lovelies.

Forum statistics

Threads
107,439
Messages
1,029,713
Members
139,569
Latest member
r042896
Top