Communauté

Notifications
Retirer tout

Premier pas !

2 Posts
2 Utilisateurs
4 Likes
41 Vu
Raphael Reybaud
(@raphael-reybaud)
Active Member
Inscription: Il y a 4 semaines
Posts: 1
Début du sujet  

Et voici le personnage de RPG, qu'en pencez vous ?

CharacterRPG = {}
-- Character name
CharacterRPG.nom = "Gerard des Rivieres"

-- Inventory
CharacterRPG.inventory = {}

CharacterRPG.inventory.slot = 10

CharacterRPG.inventory.weight = 60

CharacterRPG.inventory.equipment = {}

CharacterRPG.inventory.equipment.EquipedWeapon = {}

CharacterRPG.inventory.equipment.EquipedWeapon.name = "Wooden Sword"

CharacterRPG.inventory.equipment.EquipedWeapon.damage = 3

CharacterRPG.inventory.equipment.EquipedArmor = {}

CharacterRPG.inventory.equipment.EquipedArmor.name = "Old Rags"

CharacterRPG.inventory.equipment.EquipedArmor.res = 1

--Character Stats
CharacterRPG.vies = 10

CharacterRPG.stamina = 100

CharacterRPG.mana = 100

CharacterRPG.MagicArmor = {}

CharacterRPG.MagicArmor.resistance = CharacterRPG.vies + CharacterRPG.mana

CharacterRPG.strength = 1

CharacterRPG.DamageMultiplier = CharacterRPG.strength * CharacterRPG.inventory.equipment.EquipedWeapon.damage

CharacterRPG.physicalArmor = CharacterRPG.vies * CharacterRPG.inventory.equipment.EquipedArmor.res

-- Character Leveling
CharacterRPG.levels = {}
CharacterRPG.levels.constitution = 1 --Add 10% more vies per level

CharacterRPG.levels.agility = 1 -- Adds 20% more stamina pers level

CharacterRPG.levels.Misticity = 1 -- Adds 50% more man per level

CharacterRPG.levels.stockness = 1 --add 1 to the strength status per level

CharacterRPG.levels.PocketDimmention = 1 --adds 5 inventory slots and 10% more weight to the inventory capacity



print("Nom = ", CharacterRPG.nom)
print("Vies = ", CharacterRPG.vies)
print("Stamina = ", CharacterRPG.stamina)
print("Mana = ", CharacterRPG.mana)
print("Magical Armor Resistance = ", CharacterRPG.MagicArmor.resistance)
print("Strength = ", CharacterRPG.strength)
print("Damage Multiplier = ", CharacterRPG.DamageMultiplier)
print("Physical Armor ", CharacterRPG.physicalArmor)
print("Constitution = ", CharacterRPG.levels.constitution)
print("Agility =", CharacterRPG.levels.agility)
print("Misticity = ", CharacterRPG.levels.Misticity)
print("Stockness = ", CharacterRPG.levels.stockness)
print("Pocket Dimension = ", CharacterRPG.levels.PocketDimmention)
print("Inventory Slots = ", CharacterRPG.inventory.slot)
print("Weight = ", CharacterRPG.inventory.weight)
print("Weapon Name = ", CharacterRPG.inventory.equipment.EquipedWeapon.name)
print("Weapon Damages = ", CharacterRPG.inventory.equipment.EquipedWeapon.damage)
print("Armor Name = ", CharacterRPG.inventory.equipment.EquipedArmor.name)
print("Armor Resistance = ", CharacterRPG.inventory.equipment.EquipedArmor.res)





   
Ketbiwan, Cyril, David de Gamecodeur and 1 people reacted
Citation
David de Gamecodeur
(@david)
Membre Admin
Inscription: Il y a 7 ans
Posts: 79
 

Bravo et merci pour ton partage.


   
RépondreCitation
Share:

Dialoguez avec les autres membres de la gamecodeur school.

Accédez maintenant à notre serveur Discord privé : Entraide, Game Jams, Partage de projets, etc.

Vous devez être membre de la Gamecodeur School Premium pour être autorisé à accéder au serveur.