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

[Trigger] Need Trigger help !! More Inside..

Status
Not open for further replies.
Level 9
Joined
Jan 11, 2009
Messages
282
Hey Guys I need a little bit help:
I've got this Inventory System, it should give you up to 10 Item-Places

  • Inventory 1
  • Events
  • Unit - A unit Uses an item
  • Conditions
  • (Item-type of (Item being manipulated)) Equal to Inventory 2
  • Actions
  • For each (Integer Loop[10]) from 1 to 6, do (Actions)
  • Loop - Actions
  • Set Inventory1[((Player number of (Owner of (Hero manipulating item))) + (10 x Loop[10]))] = (Item-type of (Item carried by (Hero manipulating item) in slot Loop[10]))
  • Hero - Drop (Item carried by (Hero manipulating item) in slot Loop[10]) from (Hero manipulating item)
  • Item - Remove (Last dropped item)
  • Hero - Create Inventory2[((Player number of (Owner of (Hero manipulating item))) + (10 x Loop[10]))] and give it to (Hero manipulating item)
  • Inventory 2
  • Events
  • Unit - A unit Uses an item
  • Conditions
  • (Item-type of (Item being manipulated)) Equal to Inventory 1
  • Actions
  • For each (Integer Loop[11]) from 1 to 6, do (Actions)
  • Loop - Actions
  • Set Inventory2[((Player number of (Owner of (Hero manipulating item))) + (10 x Loop[11]))] = (Item-type of (Item carried by (Hero manipulating item) in slot Loop[11]))
  • Hero - Drop (Item carried by (Hero manipulating item) in slot Loop[11]) from (Hero manipulating item)
  • Item - Remove (Last dropped item)
  • Hero - Create Inventory1[((Player number of (Owner of (Hero manipulating item))) + (10 x Loop[11]))] and give it to (Hero manipulating item)
but It won't do anything except that all my items are away and i can't get them back :( Neeed Help
 
Status
Not open for further replies.
Top