Ok so im trying to add a game to my discord bot and im adding certain items and they would have stats and I would like to do something to be able to do something like:
Hp = dictionary.get[armor, “hp”]
Defense = dictionary.get[armor, “defense”]
And i know this probably looks horrible because its wrong but what I am trying to say is that i want to be able to grab the defense or hp from an item
Anyone know how i would write the dictionary so it would work(if it would be a dictioanary) and how i would get the hp or defense from that item