HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

cant find this trigger:

07-31-2004, 01:33 AM#1
martingo
i want t make that when a hero enters a region while carrying a specific item a quest will be marked as completed... i dont know how to make the condition so that hes got to carry the specific item.. plz help!!
07-31-2004, 01:50 AM#2
HexenLordX
Quote:
Originally Posted by martingo
i want t make that when a hero enters a region while carrying a specific item a quest will be marked as completed... i dont know how to make the condition so that hes got to carry the specific item.. plz help!!

Here's a basic way of doing it. You'll have to edit it to fit your liking.

Code:
Entering
    Events
        Unit - A unit enters (Quest Region1)
    Conditions
    Actions
        For each (Integer A) from 1 to 6, do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Item-type of (Item carried by (Entering unit) in slot (Integer A))) Equal to Wirts Leg
                    Then - Actions
                        Quest - Mark (Quest 1) as Completed
                    Else - Actions
                        Do nothing

For the condition you needed, use the Item-Type Comparison.