Help with triggers involving items

Kosire

New Member
Reaction score
0
here's the run-down.
I have a map that I want to do a ouple thigns with the items purchasable in shops.
1: i want certain items to ony be purchasable by certain heroes.
2: I want, when heroes aquire a certain combination of items it becomes something else.

Ive seen both of these done in many maps and It can be something as simple as just having a hero NOT able to keep items its not allowed to in the inventry (Like in the diablo duels maps). And for the other one id liek it liek angel arena. where when certain items are in inventory and you go to a region they combine into the new item.

Regards,
Kosire
 

Metaldrummer

New Member
Reaction score
11
1:
Trigger:
  • Events
    • A unit Aquires an item
    • Conditions
      • (Unit-type of (Triggering Unit) Not equal to <allowed hero>
    • Actions
      • Item - Remove (Item being manipulated)
      • Player - Set Player 1 (Red) Current gold to ((Player 1 (Red) Current gold) + (<cost of item>)


As for the items, I've attached a file I found that contains really useful triggers.
 

Attachments

  • Item Recipes.w3x
    17.9 KB · Views: 70

Kosire

New Member
Reaction score
0
Thanks alot imma give this a try and see how it works :) thanks for the advice
edit: Would I have to make this trigger for each individual player on each item? Or can i make the set gold action to work for all players?
Just brought back all this stuff form what i learned over the summer so. going back to a few basics
edit2: Nvm found that lol just had text search narrowed down too far
Won't this trigger make <allowed hero> the only one able to have any items? because aquired event refers to all items?
 

Metaldrummer

New Member
Reaction score
11
I should have been a bit more specific. Here is a better trigger:
Trigger:
  • Events
    • A unit Aquires an item
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • (Item-type of (Item being manipulated) Equal to &lt;allowed item&gt;
          • (Unit-type of (Triggering Unit) Not equal to &lt;allowed hero&gt;
    • Actions
      • Item - Remove (Item being manipulated)
      • Player - Set (Owner of (Triggering unit)) Current gold to (((Owner of (Triggering unit)) Current gold) + (&lt;cost of item&gt;)
 

Kosire

New Member
Reaction score
0
It worked :) Item cant be bought by any hero cept allowed two and. Doesnt waste money. Thanks so much.

Now I have to figure out the variables and trigger for the recipe. : /
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top