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.

Doing damage based on Stats

This is my third topic here *sigh*
I just need to know how to do Damage based on an Actor's Health (HP).
Now, I know how to do the Variables:
Control Variables: [0023:Actor's HP] = [Aluxes]'s HP
Control Variables: [0023:Actor's HP] /2
Sadly, I can't do this
[Aluxes]'s ATK = Variable [0023:Actor's HP]
Solutions?  :brain:
 
I think what you want to do is make an event for every Troop that looks like this:

@>Change Parameters: [Aluxes], STR + Variable[0001]

"Change Parameters..." is a command on the third event page. You would need, though to make the weapon have a strength of zero or give Aluxes zero strength or something to that extent. Also Variable[0001] can be changed to whatever you're going to call the variable, and, of course, it doesn't have to be the first variable on the list.
 
Unka Josh":2i42u4vj said:
You can, however, Deal Damage at a level equal to a variable.  That might do what you need.
The thing is, the Actor in the Party does the damage when he uses "Attack"
So if he/she has 500 HP, they do 250 Damage (Average)
Rayne Aven":2i42u4vj said:
I think what you want to do is make an event for every Troop that looks like this:

@>Change Parameters: [Aluxes], STR + Variable[0001]

"Change Parameters..." is a command on the third event page. You would need, though to make the weapon have a strength of zero or give Aluxes zero strength or something to that extent. Also Variable[0001] can be changed to whatever you're going to call the variable, and, of course, it doesn't have to be the first variable on the list.
I'll see if that works.
 

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