I'm finally ready to start working on my roguelike's inventory system.
With equipment in games, usually each item has multiple purposes, aspects and attributes. I'm not really certain how to go about adding, removing and accessing them all in the player's inventory, or updating the various stats and whatnot when a piece is equipped or unequipped.
Here's one weapon in the game now:
<<set $WepName = "hatchet">>
<<set $Skill = $AxeMaceSkill>>
<<set $WeaponBon = 0>>
<<set $WepWoundMod = 1.5>>
<<set $Parry = Math.floor(($Skill * 0.5) + 3 + $CombatReflexes + $DB)>>
There will almost certainly need to be more variables before the game goes alpha.
I have a basic understanding of arrays. I use one to take three numeric variables, sort them, and then assign the highest value to another variable. Beyond that, I'm no expert.
Didn't want to reinvent the wheel. If someone has some advice or suggestions before I get too deep into this, I'm certainly open to them!