So ive been playing Aion recently to kill some time when one of the original aspects of my equipment system popped back into my head.. Although its a generic idea it still proves a nice addition to any game i reckon.
Which is Set Bonuses and Item Bonuses.
As it stands i currently have my equipment system setup that has a single list inside the items. Then when you want to add a bonus you simply add the corresponding player var directly as it would be in the player vars and its bonus. Then on equip it launches that stats datum proc for adding or subtracting stats.
Thats all good and works as it should as far as i know but now what i want to do is bring in "Set Bonuses" which is where lets say for the sake of example a Greek God Set, named Poseidon's Battlegear this consists of Leggings, Boots, Gloves and a Trident. Now lets say with 2 pieces they gain a bonus of 5 str and all 4 is 10 strength.
How would i go about this in the most effective manner?
As it stands i was thinking of doing it like this.
Inside every item it has a "set reference var" which is a link to the set it belongs to. the var is a link to a datum which contains all the different sets. so inside that datum it would hold a link to every single item that belongs to its set. (to be checked with that of what is currently equipped by the player) and handles all that.. So would this method work and be the effective approach or is there a better way?
quick reference. naturally its dodged and doesnt have any of the procs cause i havnt came up with how im gonna do them yet :D
items/equipment
var/setlink
possytrident
setlink = "itemsets/poseidonsbgear"
itemsets
poseidonsbgear
var/list/setitems = list("possytrident" = "items/possytrident", "possyboots" = "items/possyboots")
~Midget