Radr
Member
Hey all, I'm just getting very excited now that I've got some of the framework behind my Diablo-style item generation and inventory going and felt the need to share it.
I've been working on this project in my spare time for the last couple of weeks, and I've got a small few things working nicely now including:
-The ability to click to move the character around, and pick up items. You can cast your active spell at enemies if you hold shift and click or just click an enemy. You can change your active spell in the spellbook when you have learned it.
-The inventory allows you to move items around between any slots you want and drop items out of the inventory onto the ground, all the while remember what is located in which slot, and transferring variables to objects on the ground and back to the inventory when you pick them up again.
The enemies randomly generate an item drop and when the item drops it calculates a random rarity based on your player's magic find % and the other monster's chance to drop a magical item. From there you can get:
- a normal (white) base item with no extra stats
- a magical (blue) item with 2 extra random stats and a prefix and suffix that correlate with the each property ex. +11 to strength and +6% life steal might be "Strong Leather Armor of the Leech" as opposed to "Leather Armor"
- a rare (yellow) item with 3 extra random stats and a randomly generated name like "Vicious Grasp Leather gloves"
- a unique (brown) item with predetermined stats and it's own specific name
- a set(green) item with predetermined stats, it's own specific name and (eventually) set bonuses.
Armor slots get an armor rating, weapon slots get a min damage and max damage and attack speed and all items can have requirements of level, strength, dexterity etc. as well as any attribute in the game as long as their quality is high enough! Here it is below, feedback is appreciated!
I've been working on this project in my spare time for the last couple of weeks, and I've got a small few things working nicely now including:
-The ability to click to move the character around, and pick up items. You can cast your active spell at enemies if you hold shift and click or just click an enemy. You can change your active spell in the spellbook when you have learned it.
-The inventory allows you to move items around between any slots you want and drop items out of the inventory onto the ground, all the while remember what is located in which slot, and transferring variables to objects on the ground and back to the inventory when you pick them up again.
The enemies randomly generate an item drop and when the item drops it calculates a random rarity based on your player's magic find % and the other monster's chance to drop a magical item. From there you can get:
- a normal (white) base item with no extra stats
- a magical (blue) item with 2 extra random stats and a prefix and suffix that correlate with the each property ex. +11 to strength and +6% life steal might be "Strong Leather Armor of the Leech" as opposed to "Leather Armor"
- a rare (yellow) item with 3 extra random stats and a randomly generated name like "Vicious Grasp Leather gloves"
- a unique (brown) item with predetermined stats and it's own specific name
- a set(green) item with predetermined stats, it's own specific name and (eventually) set bonuses.
Armor slots get an armor rating, weapon slots get a min damage and max damage and attack speed and all items can have requirements of level, strength, dexterity etc. as well as any attribute in the game as long as their quality is high enough! Here it is below, feedback is appreciated!