Item Set bonus

Status
Not open for further replies.
Level 9
Joined
Feb 20, 2014
Messages
409
Hi everyone I want to create set item but....it's hard to find how..
For example a set of 3 items :
-If you have 2 items of the set in your inventory you have +20 agility
-If you have 3 items of the set you have +20 agility and +2000 life
And if you unequip one of these item you lose the set bonus ofc.
The stats are just an example.
 
If you want to make it easy to use it's somewhat complicated.

I'd take quite a while to explain so I'll just advise you to download an existing system from the spell section, I'd be surprised if there isn't a system for that yet.

If you really want to create your own I suggest that you look at item recipe systems because they use the same concept, they look at items in the inventory and check for pre-set combinations. At its core it's the same.

I made my own item recipe system here: https://www.hiveworkshop.com/threads/zephyr-contest-14-unique-summoning.278518/post-2820498

As you can see it's not quite simple.

You can always use the noob way and do something like:
if unit cairries items A, B and C apply bonus 1
if unit carries items D, E and F apply bonus 2

but for a large map it'll be super long and inefficient code.
 
Status
Not open for further replies.
Back
Top