- Joined
- Mar 25, 2010
- Messages
- 187
So i am trying to make an item recovery quest where the player needs to find 4 items in order to complete the quest. I have an item stacking system and so am not sure how to do this trigger, normal item recovery with only 1 item works fine however.
Here's what i got so far.
Here's what i got so far.
-
Cold Nights
-
Events
- Unit - Ballista Engineer 0160 <gen> Is selected
- Conditions
-
Actions
- Trigger - Turn off (This trigger)
- Trigger - Turn on Cold Nights Count <gen>
- Game - Display to (All players) the text: |c0000FF40Ballista ...
- Special Effect - Destroy Quest_GiverSFX[6]
- Quest - Create a Required quest titled Cold Nights with the description I met a ballista en..., using icon path ReplaceableTextures\CommandButtons\BTNPeasant.blp
- Set Cold_Nights = (Last created quest)
- Quest - Create a quest requirement for Cold_Nights with the description Find 4 Brown bear p...
- Set Find_BearPelts = (Last created quest requirement)
- Quest - Display to (All players) the Quest Discovered message: |c008080C0New Quest...
-
Events
-
Cold Nights Count
-
Events
- Unit - A unit Acquires an item
-
Conditions
- (Item-type of (Item being manipulated)) Equal to Brown Bear Pelt
-
Actions
- Set BearPeltCount = (BearPeltCount + 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- BearPeltCount Greater than or equal to 4
-
Then - Actions
- Quest - Mark Find_BearPelts as Completed
- Quest - Display to (All players) the Quest Update message: Objective Completed...
- Quest - Create a quest requirement for Cold_Nights with the description Return to the engin...
- Set Return_To_Engineer = (Last created quest requirement)
- Trigger - Turn on Cold Nights Complete <gen>
- Trigger - Turn off (This trigger)
- Else - Actions
-
If - Conditions
-
Events
-
Cold Nights Complete
-
Events
- Unit - Ballista Engineer 0160 <gen> Is selected
-
Conditions
- (Charges remaining in (Item carried by Player1 of type Brown Bear Pelt)) Greater than or equal to 4
-
Actions
- Trigger - Turn off (This trigger)
- Game - Display to (All players) the text: |c0000FF40Ballista ...
- Quest - Mark Return_To_Engineer as Completed
- Quest - Mark Cold_Nights as Completed
- Quest - Display to (All players) the Quest Completed message: Quest Completed
- Hero - Add 500 experience to Player1, Show level-up graphics
-
Events