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.

Weapon ATK based on actor stats?

Is there a way, for instance, to change a weapons static ATK value to something more dynamic like a formula? like DEX + STR, or INT + (DEX*2) or anything like that? (of the actor wearing it)
I'm fairly new to RGSS and any guidance would be appreciated.
 

Atoa

Member

on class Game_Actor look for:

Code:
  def base_atk

    weapon = $data_weapons[@weapon_id]

    return weapon != nil ? weapon.atk : 0

  end

 
return weapon != nil ? weapon.atk : 0
This is where you should edit.
Now just add the other status to the code.
 

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