Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Check actor's MP with a script?

Hello, I want to have a parallel process event that will only be active if an actor's MP = 0. How exactly can I do this by scripting, since it doesn't seem to be an event option.
 

khmp

Sponsor

Well I don't think you need a script for this. Just have a parallel process event and inside of it:

Control Variables:
  Save the actors MP to variable[ x ]
Condition Branch:
  If variable[ x ] == 0
    In here is where you would work if the actor has no mp.
  End
End

Arbiter don't yell at me :wink:

Good luck with it kaze950! :thumb:
 
Hmmm, strange.

I set the variable to the actor's MP, but it always comes up at 0, even when hes at full MP.

Maybe it might be easier to use a script after all.

Its like this for all actor stats as well. I haven't modified the scripts or anything like that, so unless there's something I'm missing, this is strange.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top