• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Question reguarding Quests

Status
Not open for further replies.
Hello :)

I am wondering how to create a quest that requires the hero to collect different items to complete.

For example, the hero takes the quest and in the quest requirement desc. it is said:
Resources Needed:
R1: 0/2
R2: 0/2
R3: 0/1

But how do I make the requirement change to, let's say when the hero acquires 1 resource, the quest description changes prior to the acquired resource. So for example if the hero acquires one R1, then the description will become:
Resources Needed:
R1: 1/2
R2: 0/2
R3: 0/1

I tried doing this using the trigger wherein the unit acquires an item, condition filters what item, then a counter is increased by 1. That integer counter will then be used as a concatenated string, but if I use concatenated strings, I can only change on line of the quest req. desc. at a time; and, if I do change the description without using concatenate strings, how will I know if the hero already collected the other resources needed?

Please help.

EDIT: Solved!
 
Quest - Create Quest Requirement then add the description. as for the items u need to trigger this urself. so like this

Trig 1
events
unit picks up item
conditions
unit has item 1
unit has item 2
unit has item 3
actions
call quest complete

now to make the quest guide show these u need to trigger it also so

trig 2
events
unit picks up item
conditions
actions
if item picked up == item 1
then
quest set description item 1 = 1 / 2
else

note i didnt do the math as tht should be relatively easy to do
 
Quest - Create Quest Requirement then add the description. as for the items u need to trigger this urself. so like this

Trig 1
events
unit picks up item
conditions
unit has item 1
unit has item 2
unit has item 3
actions
call quest complete

now to make the quest guide show these u need to trigger it also so

trig 2
events
unit picks up item
conditions
actions
if item picked up == item 1
then
quest set description item 1 = 1 / 2
else

note i didnt do the math as tht should be relatively easy to do

Woah! Of course.. of course... I can't believe I didn't think of that!
At first I thought I should create an item called checklist and like trigger what it's supposed to do... but the answer was right here all along!

Thanks deathismyfriend!

Solved.
 
Wow wait...

I did it like this:
I did the first trigger like you said, and the Quest Complete really works. But now the problem is: the second trigger...
  • Item Acquire It
    • Events
      • Unit - A unit Acquires an item
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Item-type of (Item being manipulated)) Equal to Construction Lumber
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Wood_Counter[2] Less than 1
            • Then - Actions
              • Set Wood_Counter[2] = (Wood_Counter[2] + 1)
              • Quest - Change the description of Quest_Requirement[6] to Resources Collected...
            • Else - Actions
              • Quest - Change the description of Quest_Requirement[6] to Resources Collected...
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Item-type of (Item being manipulated)) Equal to Metal
            • Then - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Metal_counter Less than 1
                • Then - Actions
                  • Set Metal_counter = (Metal_counter + 1)
                  • Quest - Change the description of Quest_Requirement[6] to Resources Collected...
                • Else - Actions
                  • Quest - Change the description of Quest_Requirement[6] to Resources Collected...
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Item-type of (Item being manipulated)) Equal to Gem of Strength
                • Then - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • Gem_Counter Less than 1
                    • Then - Actions
                      • Set Gem_Counter = (Gem_Counter + 1)
                      • Quest - Change the description of Quest_Requirement[6] to Resources Collected...
                    • Else - Actions
                • Else - Actions
But now the quest description isn't changed at all. It stays like R1: 0/2, R2: 0/2 R3: 0/1!

Please help (again)...
 
Status
Not open for further replies.
Top