- 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
Neeed 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)