Item combination

SamYoon

Member
Reaction score
2
My trigger doesn't work :

to make Item C u need 2 Item A and 1 Item B,
but my trigger work like this :
I can just take 1 Item A and B then C is formed...

How should the trigger make?
 

Devrak

New Member
Reaction score
17
My trigger doesn't work :

to make Item C u need 2 Item A and 1 Item B,
but my trigger work like this :
I can just take 1 Item A and B then C is formed...

How should the trigger make?

Why don't you show us your triggers so we can see if there are any errors? People here are not mind readers you know, and if we were I doubt it would work over the internetz. :D
 

Dinowc

don't expect anything, prepare for everything
Reaction score
223
try this:

Trigger:
  • trigger
    • events
      • unit acquires an item
    • conditions
    • actions
      • set count = 0
      • for each (Integer A) from 1 to 6 do actions
        • loop
          • if item-type in item-slot Integer A equal to A then
            • set count = count + 1
      • if <unit> has an item of type B then
        • set count = count + 1
      • if count greater than or equal to 3 then
        • item - remove A
        • item - remove A
        • item - remove B
        • item - give C to <unit>
 

Summoned

New Member
Reaction score
51
try this:

Trigger:
  • trigger
    • events
      • unit acquires an item
    • conditions
    • actions
      • set count = 0
      • for each (Integer A) from 1 to 6 do actions
        • loop
          • if item-type in item-slot Integer A equal to A then
            • set count = count + 1
      • if <unit> has an item of type B then
        • set count = count + 1
      • if count greater than or equal to 3 then
        • item - remove A
        • item - remove A
        • item - remove B
        • item - give C to <unit>
What if you have 3 of item A? :p
 

Dinowc

don't expect anything, prepare for everything
Reaction score
223
What if you have 3 of item A? :p

oh yeah xd

didn't noticed that

well in the the loop check if the count is less than 2

if yes then set count = count + 1

___________________________-

haven't used GUI for ages... I forgot everything lol
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top