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

Need Help With Item

Status
Not open for further replies.
Level 4
Joined
Mar 15, 2009
Messages
70
I need help with this

:fp:how to stacks item in GUI
:fp:how to combine 2 same type in GUI
:fp:how to combine 2 or more item in GUI

Thanks
 
Level 10
Joined
Mar 16, 2009
Messages
354
combining
Event
- Generic unit event - unit obtains (your item)
Condition
- Item type comparision - item carried by triggering unit is equal to (CombiningItem1)
- Item type comparision - item carried by triggering unit is equal to (CombiningItem2)
Action
- Hero - Drop item from hero (CombiningItem1)
- Hero - Drop item from hero (CombiningItem1)
- Item - Remove last droped item
- Item - Remove last droped item
- Item - Create (ResultItem) at Anywhere it doesnt matter where
- Hero - Give last created item to triggering unit

For stacking create the item you want stackable and apply a this system to it so when you have 2 swords it turns into an item that is the same as 2 swords and if you have two potions it turns into a potion that has 2 charges.

Use item classes and variables for that...

  • Events
    • Unit - A unit Acquires an item
  • Conditions
  • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Item-class of (Item being manipulated)) Equal to Permanent
      • Then - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • Weapon[(Player number of (Owner of (Hero manipulating item)))] Equal to False
            • Game - Display to (All players matching ((Matching player) Equal to (Owner of (Hero manipulating item)))) for 8.00 seconds the text: You are already car...
          • Then - Actions
            • Set Weapon[(Player number of (Owner of (Hero manipulating item)))] = True
          • Else - Actions
            • Hero - Drop (Item being manipulated) from (Hero manipulating item)
      • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Item-class of (Item being manipulated)) Equal to Charged
      • Then - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • Shield[(Player number of (Owner of (Hero manipulating item)))] Equal to False
          • Then - Actions
            • Set Shield[(Player number of (Owner of (Hero manipulating item)))] = True
          • Else - Actions
            • Hero - Drop (Item being manipulated) from (Hero manipulating item)
            • Game - Display to (All players matching ((Matching player) Equal to (Owner of (Hero manipulating item)))) for 8.00 seconds the text: You are already car...
      • Else - Actions
In this example:
All weapons are Permanent
All shields are Charged

Variables:
Weapon - boolean - Array = amount of players
Shield - boolean - Array = amount of players



Hope this helps :) if it helped make sure you thank ap0calypse.
 
Status
Not open for further replies.
Top