Main Menu
  • Welcome to The RPG Maker Resource Kit.

VX Variable Problems [Resolved, cause I'm dumb]

Started by Revo, January 16, 2009, 06:24:01 AM

0 Members and 1 Guest are viewing this topic.

Revo

Alright, so here is the problem. I've been trying to set up this common event where when your character has 0 MP, his spriteset will change to an "exhausted" spriteset.

My event runs like so...

Control Variables: [0001: Actor1 MP] = [Name]'s MP
Conditional Branch: Variable [Actor1 MP] == 0
  Change Actor Graphic: [Blah blah blah]
Branch End


I have it set on Parallel Process. The problem is, when I activate the switch for this common event, the character changes spritesets, even when his MP is at max. I went into the debug menu and the problem is that even though I told it to, the Variable isn't setting to the Character's MP. It stays at 0.

I was curious, so I did the exact same event in RMXP, and got an error sorta like it. The Variable still stays at 0, but the character won't change his spriteset.

The same set-up gets different errors in different engines. Someone please tell me what I'm doing wrong. I'm not the best at variables, so I'm sure I screwed it up somewhere.

modern algebra


Revo

Oh wow. Sorry. I never even noticed that. [Resolved]

Thanks, MA.

Kokowam

Lol I read through the thread. MA, you pointed out something the other guy posted already. XD But it's all good~