• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Construction Quest

Status
Not open for further replies.
Level 19
Joined
Sep 14, 2007
Messages
1,538
First off I'm a complete noob at Triggering, I just started learning more about it this last week. Anyway I want to create a quest where you must build something and this is what I have so far.

  • Build Pig Farm
    • Events
      • Map initialization
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Pig Farm
    • Actions
      • Quest - Create a Required quest titled Housing and Hunger with the description Construct three Pig..., using icon path ReplaceableTextures\CommandButtons\BTNBasicStruct.blp
      • Set Farm = (Last created quest)
      • Quest - Enable (Last created quest)
      • Quest - Mark (Last created quest) as Discovered
and this is the completion trigger.

  • Build Pig Farm Complete
    • Events
      • Map initialization
      • Unit - A unit owned by Player 1 (Red) Finishes construction
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Pig Farm
    • Actions
      • Set Farm = (Last created quest)
      • Quest - Mark (Last created quest) as Completed
Also I need to know how to end the game in a victory after All required quests are complete.

Thanks.

+rep to anyone who can shed some light on this for me.
 
Level 20
Joined
Jan 6, 2008
Messages
2,627
  • Build Pig Farm
    • Events
      • Map initialization
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Pig Farm
    • Actions
      • Quest - Create a Required quest titled Housing and Hunger with the description Construct three Pig..., using icon path ReplaceableTextures\CommandButtons\BTNBasicStruct.blp
      • Set Farm = (Last created quest)
      • Quest - Enable (Farm)
      • Quest - Mark (Farm) as Discovered

  • Build Pig Farm Complete
    • Events
      • Map initialization
      • Unit - A unit owned by Player 1 (Red) Finishes construction
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Pig Farm
    • Actions
      • Quest - Mark (Farm) as Completed

Didnt i tell you this at chat?
 
Level 20
Joined
Jan 6, 2008
Messages
2,627
  • Events
    • YOUR EVENT
  • Conditions
  • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • And - All (Conditions) are true
          • Conditions
          • -------- THEY ARE BOOLEANS ------------
            • ((Farm) is completed) Equal to True
            • ((Another quest?) is completed) Equal to True
      • Then - Actions
        • Game - Victory Player 1 (Red) (Show dialogs, Show scores)
      • Else - Actions
 
Status
Not open for further replies.
Top