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,374
Reaction score
615
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,033
Reaction score
5,334
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,821
Reaction score
7,887
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.
 

Latest Threads

Latest Posts

Latest Profile Posts

I've been using a modified version of a script called Multiple Messages. It makes my text boxes look like a Mario & Luigi game! There is something about it that bothers me a little bit, but I shouldn't worry about that now.

Side note, Mist's walking animation is almost perfectly in sync with Loose Yourself by Eminem.
Starting work on some stuff for the community. Hopefully it will be fun, and useful to somebody.
Searching what to play in my dead times, the nostalgia hit me hard and ended downloading the Patapon trilogy, hope I can avenge my child self and beating all the games hahaha
Finished the frontier and...I apologize to anyone who saw the trailer I posted and actually tried it. Technical marvel, crazy disjointed fetish story hidden inside a cheap milsim skin that has no idea what it's trying to be except sanctimonious and failing at even that. As much as I hate fallout 4's story, even it was better. I guess there just won't be another non-parody fallout after all.
Anyone else having trouble posting in the forum? I have no reply box in posts or in messages. This is the only place I can type. @Archeia?

Forum statistics

Threads
107,767
Messages
1,032,001
Members
139,913
Latest member
EpicLast
Top