Can I make an event based on Variable

Joined
Dec 7, 2016
Messages
9
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.
 
Last edited:

estriole

Veteran
Veteran
Joined
Jun 27, 2012
Messages
1,309
Reaction score
531
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
9
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
7,842
Reaction score
5,225
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,365
Reaction score
7,675
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: 2, Guests: 1)

Latest Threads

Latest Profile Posts

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD

Forum statistics

Threads
105,868
Messages
1,017,070
Members
137,577
Latest member
SadaSoda
Top