RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
VX Variable Problems [Resolved, cause I'm dumb]

0 Members and 1 Guest are viewing this topic.

*****
Rep:
Level 88
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...

Code: [Select]
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.
« Last Edit: January 16, 2009, 05:11:28 PM by Revo »


*****
Rep:
Level 88
Oh wow. Sorry. I never even noticed that. [Resolved]

Thanks, MA.

*
A Random Custom Title
Rep:
Level 96
wah
Lol I read through the thread. MA, you pointed out something the other guy posted already. XD But it's all good~