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 Proficiency?

Sorry if there's already a script out there that does this, but I couldn't find it here. Anyway, I want to make a script that allows characters to have different proficiencies with different weapons. For example, a character with an "A" in Sword Mastery would get an additional 35% ATK boost while having a sword equipped, while a character with an "E" Sword Mastery would have a -150% to ATK while using a sword.

Additionally, how would you go about linking damage dealt by weapons to stats other than ATK and STR? For example, I would like the damage dealt by Bows and Guns to be dictated by AGI.

Any help would be greatly appreciated!
 
def base_atk
    weapon = $data_weapons[@weapon_id]
    char_atk = 0
    if @actor_id == 1 # Determines ID# of hero in Database; Actor001, or Arshes.
      char_atk = (@level * 6) + 60 + $game_variables[1] # Arshes's Atk. is 60 plus its level x 6.
     
end
end

This is a sample from a script that has been around here (by Photonweapon (?)) and it's used for leveling up attack power. My extra addition: It adds to the atk the value of the variable no1...(this is originally to be found in the game_actor script)

I know this is far from what you want, but I assumed it could be better than nothing(maybe you could do this like with events-e.g. trainers- to increase the variable...) I don't know... I guess for weapon proficiency per se, this is useless, but if you just want to upgrade the weapon system a little in some 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