• 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.

[Trigger] Simple Building Quest Help

Status
Not open for further replies.
Level 3
Joined
Sep 13, 2009
Messages
25
Ok... so I have learned a lot now... but there is still something I can not figure out. Say you wanted to make a quest like in the original warcraft 3 where you have to build 5 farms.... how do I duplicate this quest?

I have tried many things but I need some help! Thanks
 
Level 5
Joined
May 3, 2009
Messages
129
somthing like so
  • Melee Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Quest - Create a Required quest titled farms with the description you must build 5 fa..., using icon path ReplaceableTextures\CommandButtons\BTNAmbush.blp
      • Set quest = (Last created quest)
      • Quest - Enable quest
  • Untitled Trigger 001
    • Events
      • Unit - A unit Finishes construction
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Farm
    • Actions
      • Set farms1 = (farms1 + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • farms1 Equal to 5
        • Then - Actions
          • Quest - Display to (All players) the Quest Completed message: build 5 farms |cfff...
          • Quest - Mark quest as Completed
          • Quest - Change the description of quest to you must build 5 fa...
        • Else - Actions
 
Last edited:
Level 5
Joined
May 3, 2009
Messages
129
If you want more requirements in the same quest then you would do it somthing like this
  • Melee Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Quest - Create a Required quest titled Quset with the description needs to be complet..., using icon path ReplaceableTextures\CommandButtons\BTNAmbush.blp
      • Set quest = (Last created quest)
      • Quest - Create a quest requirement for quest with the description build 5 farms
      • Set quest_requirement[1] = (Last created quest requirement)
      • Quest - Create a quest requirement for quest with the description build 2 towers
      • Set quest_requirement[2] = (Last created quest requirement)
      • Quest - Enable quest

  • Untitled Trigger 001
    • Events
      • Unit - A unit Finishes construction
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Farm
    • Actions
      • Set farms1 = (farms1 + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • farms1 Equal to 5
        • Then - Actions
          • Quest - Display to (All players) the Quest Requirement message: build 5 farms |cfff...
          • Quest - Mark quest_requirement[1] as Completed
          • Set quest_complete = (quest_complete + 1)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • quest_complete Equal to 2
        • Then - Actions
          • Quest - Display to (All players) the Quest Completed message: Quest |cffffcc00Com...
          • Quest - Mark quest as Completed
        • Else - Actions

  • Untitled Trigger 002
    • Events
      • Unit - A unit Finishes construction
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Scout Tower
    • Actions
      • Set towers = (towers + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • towers Equal to 2
        • Then - Actions
          • Quest - Display to (All players) the Quest Requirement message: build 2 towers |cff...
          • Quest - Mark quest_requirement[2] as Completed
          • Set quest_complete = (quest_complete + 1)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • quest_complete Equal to 2
        • Then - Actions
          • Quest - Display to (All players) the Quest Completed message: Quest |cffffcc00Com...
          • Quest - Mark quest as Completed
        • Else - Actions
 
Status
Not open for further replies.
Top