HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Trigger Item Help

01-23-2005, 12:07 PM#1
Terror-Rpger
I want that a Unit has 4 Items in the Right Order in the Inventory and then a New Item gets created for the 4 Items, you know what i mean ?
I dont know how to do that, plz help
01-23-2005, 02:21 PM#2
oNdizZ
Code:
Item Exchange
    Events
        Unit - A unit Acquires an item
    Conditions
        Or - Any (Conditions) are true
            Conditions
                (Item-type of (Item being manipulated)) Equal to A
                (Item-type of (Item being manipulated)) Equal to B
                (Item-type of (Item being manipulated)) Equal to C
                (Item-type of (Item being manipulated)) Equal to D
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Item-type of (Item carried by (Hero manipulating item) in slot 1)) Equal to A
                (Item-type of (Item carried by (Hero manipulating item) in slot 2)) Equal to B
                (Item-type of (Item carried by (Hero manipulating item) in slot 3)) Equal to C
                (Item-type of (Item carried by (Hero manipulating item) in slot 4)) Equal to D
            Then - Actions
                For each (Integer A) from 1 to 4, do (Actions)
                    Loop - Actions
                        Item - Remove (Item carried by (Hero manipulating item) in slot (Integer A))
                Hero - Create E and give it to (Hero manipulating item)
            Else - Actions



this would work if i understood you correctly.

Now if you think of the inventory like this:
Code:
[color=Red]X[/color]   [color=Blue]X[/color]
[color=Cyan]X[/color]   [color=Purple]X[/color]
[color=Yellow]X[/color]   [color=Orange]X[/color]
then itemslot 1 is the red one. and itemslot 2 is the blue one. and teal the third. Purple = forth, yellow fifth and orange sixth.