Quest with multiple requirements

Enzyte

New Member
Reaction score
1
Hello again!
Sorry for posting every day with some noobish question, but probably this will be my last one since this is the last quest on my map! :)

Soo the last quest is about receiving 3 items. I have a quest and it has 3 requirements (one for one item ofc)
Every time the player receives one of them, it should complete the requirement for that item.
I've tried it, and it worked fine but only with 1 item.
Well that's not a big problem because I can do each item a trigger (it works like that)
The more important thing is. How can I set that if ALL the 3 conditions (the quest requirements are received) are true, then complete the main quest?

I've tried it with and/or/any...

Here is how my trigger looks like:
Trigger:
  • Trigger qMainAdd
    • Events
    • Map initialization
    • Conditions
    • Actions
    • Quest - Create a Required quest titled Test with the description One Two Three, using icon path ReplaceableTextures\CommandButtons\BTNAmbush.blp
    • Set qMain = (Last created quest)
    • Quest - Create a quest requirement for qMain with the description Req1
    • Set qShimmerweed = (Last created quest requirement)
    • Quest - Create a quest requirement for qMain with the description Req2
    • Set qOrb = (Last created quest requirement)


And the complete part:
Trigger:
  • Trigger qMainP1C
    • Events
    • Unit - A unit Acquires an item
    • Conditions
    • (Item-type of (Item being manipulated)) Equal to Shimmerweed
    • Actions
    • Quest - Mark qShimmerweed as Completed

It's working like this but I can't figure out how can I complete the whole quest after the unit finished the reqirements.
Hope someone can help.
Again sorry for the noobish code maybe there is a easiest way but I'm a newbie...
 

Accname

2D-Graphics enthusiast
Reaction score
1,464
Is the player supposed to keep all 3 items in his inventory to complete the quest?
If so you should create a trigger like this:
Code:
Events
  Unit acquires an item
Conditions
  or - any of the below
    Item type of (Item being manipulated)) == ItemA
    Item type of (Item being manipulated)) == ItemB
    Item type of (Item being manipulated)) == ItemC
  ((Triggering unit) has an item of type ItemA) == True
  ((Triggering unit) has an item of type ItemB) == True
  ((Triggering unit) has an item of type ItemC) == True
Actions
  Complete Quest...
This is pseudo code but I hope you get the idea.

Please note; the "or" has only 3 conditions inside, the other 3 conditions come after the "or".
 

Enzyte

New Member
Reaction score
1
Is this supposed to work if the received items are not visible in the inventory?
If it's not, well I'll change the items and I'm done.
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
Reaction score
613
Trigger:
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • (qShimerweed is completed) Equal to True
      • (qOrb is completed) Equal to True
      • (qThirdItem is completed) Equal to True
    • Then - Actions
      • Quest - Mark qMain as Completed
    • Else - Actions

This would complete the quest regardless of items.
 

Enzyte

New Member
Reaction score
1
What do you mean with "visible" in the inventory?

When I pick up the item, it disappears from the ground but it's not in my inventory.
The three quest items are: Shimmerweed, Skull of Gul'dan and Shadow Orb Fragment
The orb and the weed aren't visible in my inventory after received.
Maybe that's why the code above isn't working.
Edit: Thanks, KaerfNomekop, I'll try that.
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
Reaction score
613
The conditions are Boolean - Quest Requirement is Completed, just so you know.
 

Accname

2D-Graphics enthusiast
Reaction score
1,464
You mean the items are instantly used and gone, like runes and tomes?
 

Enzyte

New Member
Reaction score
1
Nevermind, it's working. For some reason World Editor changed some of the conditions D:
Thank you guys!
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top