• 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.

Couple of Trigger Questions WorldEdit

Status
Not open for further replies.
Level 9
Joined
May 28, 2007
Messages
365
I'm trying to change the UI Interface section that gives that slightly black backdrop on all the tooltips, items, etc so that you can read the text better. What is this under labelled as in the Game Interface section?

How do you make stackable items?

How do you make item recipes with 2 or more of the same item?
 
Level 19
Joined
Apr 25, 2006
Messages
1,309
Stackable item system can be made by one trigger easily.

Event:
Unit/Hero receives an item.

Actions:
Set Itemtype_variable=received item
Set Integer_Charges=charges remaining in last received item
Remove last received item.

If hero/unit has an item of type equal to Itemtypevariable

then set charges remaining in this item equal to charges remaining in
this item+Integer_Charges

else create on item of type Itemtype_variable to Unit/Hero
receiving an item.
Set charges remaining in last created item equal to
Integer_Charges

Basically something like this. I have a trigger like this but I'm too bothered to open up WE map since my computer is so damn slow. I also saw a tutorial for this in Clan CBS, but the site is down these few days.

With item recipes you need to count that the hero has at least two items of the required type in inventory. It's an integer condition. Then remove two items of this type from inventory and create the new item.
 
Status
Not open for further replies.
Top