• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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.
 

Chaosy

Tutorial Reviewer
Level 41
Joined
Jun 9, 2011
Messages
13,239
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: http://www.hiveworkshop.com/forums/...que-summoning-278518/index12.html#post2820498

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.
Top