item combo question.

BlightWarden

New Member
Reaction score
6
i was looking for the post with this trigger but cant find. must be blind tonight.

i need the trigger to combine two of the same items.

exsample.
Orb lvl1 +Orb lvl1 +recipe = Orb lvl 2

ty for any and all help.
 

Mahucharn

I wear a fez now, fezzes are cool.
Reaction score
173
a trigger would look something like this:

Code:
Events

A player steps into waygate1 (gen)

Conditions

Player has item a and item b in inventory

Actions

remove target items from target player's inventory
give triggering player x item
 

BlightWarden

New Member
Reaction score
6
i only need the condition.

the trigger would look like this

event- unit aquires item

condition ( need this and location in editor)

action - remove orb lvl 1
remove orb lvl 1 (second)
create orb lvl 2
create special effect

i dont understand using a building at all.
 

Demonwrath

Happy[ExtremelyOverCommercializ ed]HolidaysEveryon
Reaction score
47
Well lets see...2 items combining...while in a certain area right? And you jsut need the condition? Okay here you go :D

Code:
Condition
     And - All (Conditions) are True
          Conditions
     ((Hero manipulating item) has (Item carried by (Hero manipulating item) of type [item] Equal to True
     ((Hero manipulating item) has (Item carried by (Hero manipulating item) of type [item] Equal to True
     ((Hero manipulating item) has (Item carried by (Hero manipulating item) of type [recipe] Equal to True
     (([Area]) Contains (Hero manipulating item)) Equal to True

That should work :D
If it does please +rep :D
 

BlightWarden

New Member
Reaction score
6
i'm beyond lost. i know where the All-And is located, but where do i find the others?

sorry but my mind has a hard time with this.
 

Demonwrath

Happy[ExtremelyOverCommercializ ed]HolidaysEveryon
Reaction score
47
Yes they are all booleans, you can tell because what each value is equal to is true or false. :D
 

BlightWarden

New Member
Reaction score
6
k so far lemme say tyvm to demonwrath for the trigs and thedude for pointing out the path. i still have a few more issues i need help with. sorry for all the posts but i would very much like to finish this 1 trigger so i can go to sleep.

heres what my trigger looks like.
events-Unit - A unit Acquires an item

conditions-(((Hero manipulating item) has an item of type Orb of Power (Level 1)) Equal to True) and (((Hero manipulating item) has an item of type Orb of Power (Level 1)) Equal to True)

Action-Item - Remove (Item carried by (Triggering unit) of type Orb of Power (Level 1))
Hero - Create Orb of Power (Level 2) and give it to (Triggering unit)
Special Effect - Create a special effect at (Position of (Triggering unit)) using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl

two questions. how to i find the Area part of the trigger
(([Area]) Contains (Hero manipulating item)) Equal to True (never mind on this part, i found it.)

and also a problem im having is. when i buy one orb lvl1 it creates a lvl2 orb automatically without me having to buy two lvl1 orbs. (this is still happening, i need it to not create the next lv orb automatically.)

what have i done wrong and how can i correct it?

tyvm for all the help. sorry for the trouble.
 
T

thedude

Guest
Sorry it took so long, i've never had to do this before lol... Here it is:

Code:
Test
    Events
        Unit - A unit Acquires an item
    Conditions
        ((Hero manipulating item) has an item of type Potion of Greater Healing) Equal to True
        ((Triggering unit) has (Item carried by (Hero manipulating item) in slot (Min(1, 6)))) Equal to True
        ((Triggering unit) has (Item carried by (Hero manipulating item) in slot (Min(2, 6)))) Equal to True
    Actions
        Item - Remove (Item carried by (Hero manipulating item) of type Potion of Greater Healing)
        Item - Remove (Item carried by (Hero manipulating item) of type Potion of Greater Healing)
        Hero - Create Replenishment Potion and give it to (Hero manipulating item)
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
> conditions-(((Hero manipulating item) has an item of type Orb of Power (Level 1)) Equal to True) and (((Hero manipulating item) has an item of type Orb of Power (Level 1)) Equal to True)


This condition isn't working.
If you have that item, you have that item...

Instead, you need to count them:
Code:
Combine Identical Items
    Events
        Unit - A unit Acquires an item
    Conditions
        ((Hero manipulating item) has an item of type Cheese) Equal to True
    Actions
        Set TempInteger = 0
        For each (Integer A) from 1 to 6, do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to Cheese
                    Then - Actions
                        Set TempInteger = (TempInteger + 1)
                    Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                TempInteger Greater than or equal to 2
            Then - Actions
                Item - Remove (Item carried by (Hero manipulating item) of type Cheese)
                Item - Remove (Item carried by (Hero manipulating item) of type Cheese)
                Hero - Create Mogrin's Report and give it to (Hero manipulating item)
            Else - Actions
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
> Set TempInteger = 0

That's the action "set variable".
It assumes you already created a variable, called TempInteger, of type Integer.
No, it's not an array.
 
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