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

[Trigger] Item combination system

Status
Not open for further replies.
Level 3
Joined
Mar 10, 2007
Messages
41
Item combination system.... like it dota You get 2 items ans you buy the "Better one" that requires them both and it turns into that.... Does any one know how this is done in GUI?
(i have only found jass versions)
I would be greatly aprectiated for some help :infl_thumbs_up:
 
Level 6
Joined
Mar 2, 2006
Messages
306
If you found the jass systems, why do you need lower quality GUI ones?
because he wants text on his screen to say "sobi mask" or "claws of attack", not 'gftg' and 'fgbg'; he wants to click on an item name and choose a new item by looking at the nice icons with nice tooltips...

jass can do more than GUI, but not always with less effort...
---
in gui, that would look something like this:
1) you detect "Unit aquires an item" generic event
2) you check for multipart And-condition:
- triggering unit has item of type water
- triggering unit has item of type lemon
- triggering unit has item of type sugar
- triggering unit has item of type lemonade receipe
3) if he has all, remove components and create a new item for him
- item - remove (item of type water) carried by triggering unit
- ...
- hero - create lemonade and give it to triggering unit
4) copy and paste that and edit it to take care of other items...
 
Status
Not open for further replies.
Top