• 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] QUEST: How to set / make quest to build and amount buildings?

Status
Not open for further replies.
Level 9
Joined
Jul 31, 2007
Messages
124
Hello i am trying make quest that the quest will be completed when 4 buildings are built but those buildings are of 1 kind. They are Farms. So would like you to help me please about it. I can just make quest to let build 1 building, but i need to build 4x farms then the quest will be completed. could someone help me with that? I am kinda rookie , will please to be little detailed . thx
 
Level 8
Joined
Aug 3, 2008
Messages
391
Try this:

  • Farm Building Quest
    • Events
      • Unit - A unit Finishes construction
    • Conditions
      • (Unit-type of (Constructed structure)) Equal to Farm
    • Actions
      • Set NumberofFarms = (NumberofFarms + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • NumberofFarms Equal to 4
        • Then - Actions
          • Quest - Mark YourQuest as Completed
        • Else - Actions
 
Level 8
Joined
Aug 3, 2008
Messages
391
Create a new integer variable. Set the default value to 0. Call it NumberOfFarms.

See they point of the trigger is that everytime a farm is build, NumberOfFarms will be increased by 1. If it reaches 4, the quest is completed.

By the way, you should add a player condition. Right now, NumberOfFarms will increase if other players builds a farm. But if that's not a problem, don't bother.
 
Status
Not open for further replies.
Top