• 🏆 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!

Help

Status
Not open for further replies.
Level 2
Joined
Mar 21, 2020
Messages
14
Hello again guys. I have problem with completing quest. So when I destroy those Farms it should mark quest requirement and quest 1 as completed. If I put any units instead farms (buildings) my quest requirement and full quest are completed. So what should I do? I though Event "UNIT" is the same thing as the building. Thanks for the answers!


  • QuestCompleted3
    • Events
      • Unit - Farm 1178 <gen>'s life becomes Equal to 0.00
      • Unit - Farm 1179 <gen>'s life becomes Equal to 0.00
      • Unit - Farm 1180 <gen>'s life becomes Equal to 0.00
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
      • ((questrequ1 is completed) Equal to True) and (((questrequ2 is completed) Equal to True) and ((questrequ3 is completed) Equal to True))
    • Actions
      • Quest - Mark questrequ4 as Completed
      • Quest - Mark quest1 as Completed
      • Quest - Display to (All players) the Quest Completed message: |c00FFFF00MAIN QUES...
      • Wait Campaign quest delay seconds
      • Game - Victory Player 1 (Red) (Show dialogs, Show scores)
 
Level 2
Joined
Mar 21, 2020
Messages
14
Thanks for you answer Planetary! I tried both things. Same thing. Question is still not completed. With units everything works great, but with buildings no answer. I don't know why.
 

Uncle

Warcraft Moderator
Level 64
Joined
Aug 10, 2018
Messages
6,534
This should work:
  • Example
    • Events
      • Unit - A unit Dies
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Triggering unit) Equal to Farm1178
          • (Triggering unit) Equal to Farm1179
          • (Triggering unit) Equal to Farm1180
      • (Farm1178 is alive) Equal to False
      • (Farm1179 is alive) Equal to False
      • (Farm1180 is alive) Equal to False
    • Actions
      • -------- Do Stuff --------
So when a unit dies, check if it was 1 of your 3 Farms, and then check if all 3 Farms are dead.
 

Attachments

  • Farm Example.w3m
    16.6 KB · Views: 14
Status
Not open for further replies.
Top