• 🏆 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] Bugged Trigger ?

Status
Not open for further replies.
Level 5
Joined
Jan 5, 2019
Messages
108
Can someone help me fix this trigger, for some reason it affects my whole map even tho it only needs to affect a specific region ?

And by that i mean every time a unit dies from player 12 who ain't matching the region the hero gets instant moved to baseRegion, and it needs to only affects the region area which is the fightRegion

  • AllUnitsAreDead
    • Events
      • Unit - A unit owned by Player 12 (Brown) Dies
    • Conditions
    • Actions
      • Set tempGroup = (Units in fightRegion matching ((((Matching unit) is alive) Equal to True) and ((Owner of (Matching unit)) Equal to Player 12 (Brown))))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Number of units in tempGroup) Equal to 0
        • Then - Actions
          • Set tempPoint = (Center of baseRegion)
          • For each (Integer A) from 0 to 10, do (Actions)
            • Loop - Actions
              • Unit - Move hero[4] instantly to tempPoint
          • Custom script: call RemoveLocation(udg_tempPoint)
        • Else - Actions
      • Custom script: call DestroyGroup(udg_tempGroup)
  • SettingUpVariables
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set baseRegion = Carmara 2 <gen>
      • Set fightRegion = Fighting Region <gen>
      • Set hero[1] = Alexandra 0019 <gen>
      • Set hero[2] = Thomas 0004 <gen>
      • Set hero[3] = Carsten 0005 <gen>
      • Set hero[4] = Malte 0001 <gen>
      • Set hero[5] = Ian 0000 <gen>
      • Set hero[6] = Joe 0006 <gen>
      • Set hero[7] = Echolicious 0007 <gen>
      • Set hero[8] = Martin 0020 <gen>
      • Set hero[9] = Sam 0008 <gen>
      • Set hero[10] = Niklas 0002 <gen>
      • Set hero[1] = Alexandra 0019 <gen>
      • Set hero[2] = Thomas 0004 <gen>
      • Set hero[3] = Carsten 0005 <gen>
      • Set hero[4] = Malte 0001 <gen>
      • Set hero[5] = Ian 0000 <gen>
      • Set hero[6] = Joe 0006 <gen>
      • Set hero[7] = Echolicious 0007 <gen>
      • Set hero[8] = Martin 0020 <gen>
      • Set hero[9] = Sam 0008 <gen>
      • Set hero[10] = Niklas 0002 <gen>
 

Attachments

  • Test.w3x
    332.7 KB · Views: 28
Level 5
Joined
Jan 5, 2019
Messages
108
So... you should make it if the amount of units are greater than 0 then do the actions not equal to 0, it's activating when there's no units in the region at the moment

Not gonna comment on everything else because without this doesn't make much sense

It is meant to activate when the hero kills the last player 12 unit. But its not meant to be affecting the whole map after killing a unit inside the region.
 
Status
Not open for further replies.
Top