• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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