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.

Customizable weapons

Hi i had a quick look through the script database and couldn't find one (maybe i'm blind)

What i want is a script that allows the character to use items to make their weapon stronger. the project i'm working on involves guns and is kind of in the future, but i want to be able to use parts of some sort to increase the stats of the gun so that it gets stronger.
i'm using Taryns Weapon amunition, the relies on bullets which make the damage my weapon does based on the item.

I would also like a script that rewrite the stats for a character:

Strength:
This determines the physical attack power of a unit
and how much damage he/she can do while equipped with a physical weapon
(swords, axes, etc.)
Magic:
This determines the magical attack power of a unit and
how much damage he/she can do while equipped with a magical tome (Wind,
Fire, Thunder, etc.)
Skill:
Skill determines the accuracy of a weapon and it also
determines the critical hit rate of a unit. The higher the Skill, the
better the chance a unit will hit the enemy.
Speed
Speed is incredibly important. First, it determines the
avoidability of a unit, meaning how well he/she will be able to dodge
attacks. Second, it determines if a unit will be able to perform what
is known as a double-attack in one round. If a unit's Speed is 4+
points higher than the enemy's, he/she will strike twice in one round
Luck
This stat determines the hit rate, the dodge rate, the
rate a unit can critical, and how much an enemy's critical rate will be
lowered by.
Defense
Defense determines how well a unit can protect
him/herself from a unit's Strength. The higher the Defense the less
damage a unit using a physical weapon will do. If a unit's Defense is
higher than his/her enemy's Strength and weapon Strength, then he/she will
take no damage. However, Defense in no way is able to protect one from
Magic attacks.
Resistance
Resistance protects from magic attacks and not physical weapon attacks. If
Resistance is higher enough than an enemy's magic power and weapon Strength, no damage dealt to the character.
Weapon strength
This is the power of a weapon. This in conjunction with
Strength and Magic determines how much damage a character will do. The
combined numbers must be higher than the enemy's Defense or Resistance
to do any damage.

Damage= Weapon strength +[STRENGTH] or [MAGIC] - Enemy's [DEFENCE] or [Resistance]
if hit is a positive number than there is a 80% chance of hitting if it is a negative number there is a 20% chance of hitting
If Critical Hit is higher than hit there is a 64% chance of performing a critical hit if it is lower than there is 2% chance of performing a critical hit
Hit= SKILL +LUCK - Enemy's SPEED
Critical Hit= [SKILL +LUCK +SPEED - Enemy's SPEED]/20

If i haven't provided enough information tell me k
Thanks in advance
 

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