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.

Simple Re-request

I remember someone making a request for a script :
Player walks on map while gaining HP-SP/steps.
I had the small script, but I recently had to reinstall everything so I lost pretty much everything after I got it.
I'd do a search, but after the recent attempt of 'hacking' it probably wont be found.

~thanks.
 
@ultramarine: Please, don't ever ever just post that. It's rather annoying, and has no valid point. You didn't say how. If I were to go in the General support forum, I could easily say 90% of the crap in there could be done with scripts, and walk out. But because it offers nothing, I don't.


Find this method in Game_Party
Code:
  #--------------------------------------------------------------------------
  # * Increase Steps
  #--------------------------------------------------------------------------
  def increase_steps
    @steps = [@steps + 1, 9999999].min
  end

Make the changes to make it look like so:
Code:
  #--------------------------------------------------------------------------
  # * Increase Steps
  #--------------------------------------------------------------------------
  def increase_steps
    @steps = [@steps + 1, 9999999].min
    @actors.each do |actor|

      # Choose 1 of the following:      

      # Direct Number
      actor.hp += X
      # Percent
      actor.hp *= (1 + x)


    end
  end

To Add a direct amount, use the direct amount line and change the X with what amount you wish to restore.

To Add a percent, use the percent line, and the change the x with the decimal equal to the percent (30% = .3)

Let me know if you need anything.
 
ok im sorry i wans't thinking

so anyway, just make a conditional branch where if one of the directional keys is pressed, add a number to your hp

just put that in a comment event and even add a switch if you want

however, you will probably want to use the script sephirothspawn made since it'll be easier.

but if u really do want to use events, just ask me and i'll code everythign out and make a demo if necessary
 
Thanks both of you for the help.
I knew I could do it with events, but that would just increase the uses of switches. I try to keep things to a minimum. But thanks either way.
 

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