• 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 Sets - Question

Status
Not open for further replies.
Level 5
Joined
Nov 29, 2007
Messages
106
Hello!
I made item sets system but I need your help.
Some items/recipes are multipled in some shops with just other X,Y positions. I made that with "And - All" and then "And - Or" and it works but my item set requires 2 items of same type:
To make set you need:

Power Supply (RECIPE 1 OR RECIPE 2)
Mana Battery (1 or 2)
Minor Totem X2

If I aquire minor totem x1 and other components, the set is creating, but I want to requires minor totem x2.
SS
 

Attachments

  • 1.JPG
    1.JPG
    68.7 KB · Views: 102
Level 13
Joined
Jun 1, 2008
Messages
360
Ok first of all you can copy the trigger by selection Edit -> Copy as Text
And then paste it here in [ TRIGGER][ /TRIGGER] tags.

Now for your problem:
You have to check every inventory slot of the hero and count the totems he has in a variable (x: integer).
set x = 0
For each integer A from 1 to 6 do
if item in slot A = totem then x = x + 1

if x=2 and (...) --> create set
 
Status
Not open for further replies.
Top