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.

Changing a self-defined value for an actor?

kkxkn

Member

Alright, I've tried looking through the code and doing a couple of searches here but I can't find anything.
So.
I've defined a few new variables for each actors - @mdef, @pdef, @acc and @eva (I initialize them from the level and EXP values since I won't be using those in my game - this works fine). In, for example, the battle damage formulas, they work just fine (for example, as attacker.acc and self.eva), however, I can't find how to change them using Run Script in events,,, or from any script that hasn't already got the actor in it somehow... At the moment I'm just wanting this to help test things, but I will be needing it for part of my game eventually... so can anyone inform me on how to change them from there without causing an error?

Thanks. :)
 

kkxkn

Member

Nevermind, found the answer with a bit more looking through the defaults.

If anyone else is wondering the same, you have to go in Game_Battler1, find where it has the "def maxhp=" and stuff, and make ones for your custom stats
 

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