• 🏆 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!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

[Trigger] Destroying a cage is required to complete a side quest

Status
Not open for further replies.
Level 1
Joined
Nov 10, 2021
Messages
2
Hello!
I recently returned to what used to give me incredible joy - mapmaking.

I've been working on my map for a few days now, and I'm having a lot of fun. Unfortunately, I've encountered a problem that I can't solve with my own efforts.

I've created a side quest that requires the player to destroy 4 cages. Unfortunately I don't know how to make destroying those cages a condition to complete the quest.

Only you are left to help me!
 
Level 26
Joined
Sep 26, 2009
Messages
2,439
Make an integer variable that represents how many cages are left.
Detect when specific destructible (one of the cages) dies - when that happens, decrement the integer variable.
When the integer variable reaches 0, mark quest as complete
 
Status
Not open for further replies.
Top