region vs. multiple target

feistaghelm

New Member
Reaction score
2
I have a quest to kill multiple targets. They are all in the same area. The quest code sems to work for 1 target type but not for multiples. Should I make the quests a (kill all creeps in a region) or is ther a way to make multiple targets work?

I can post my code if needed. I haven't written the region one yet.
 

Bankde

Member
Reaction score
20
You may use this trigger.

Trigger:
  • Unit Group
    • Events
      • Unit - A unit owned by Neutral Hostile Dies
      • -------- Recommend to use "Specific player" instead of generic event --------
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Number of units in UnitGroup) Greater than 0
        • Then - Actions
          • Unit Group - Remove (Triggering unit) from UnitGroup
        • Else - Actions
          • -------- Your quest function --------


Make sure to add the CreepsGroup into UnitGroup Variable at first.

Don't use function-check dying units in region as the units can always enter and leaving the area.
 

feistaghelm

New Member
Reaction score
2
Used your trigger Bankde but the quest is completed after 1 kill. How do I make it have 9 units killed before it completes?

Did you create a UnitGroup and add all the units for the quest to it in an init trigger?


I should have made my name NoobyNoobsome. I have no idea how to do that Ash. I am still fixing quest giver triggers that I seem to maul quite effectively.
 

Ashlebede

New Member
Reaction score
43
Did you create a UnitGroup and add all the units for the quest to it in an init trigger?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top