• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] MEOW i have a strange problem

Status
Not open for further replies.
Level 4
Joined
Jan 3, 2013
Messages
69
The question may be obvious :grin:, but there is a part in here that isnt working :eekani:, and i think is the targeting unit part. The dummy ability has no mana and no cooldown btw. I really know im missing something :vw_sad:
  • Events
    • Time - Every (Random real number between 8.00 and 20.00) seconds of game time
  • Conditions
  • Actions
    • Custom script: set bj_wantDestroyGroup = true
    • Unit Group - Pick every unit in (Units in Fight Arena <gen> matching ((((Matching unit) is A Hero) Equal to True) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of Player 11 (Dark Green)) Equal to True)))) and do (Actions)
      • Loop - Actions
        • Set Setback_Group = (Last created unit group)
        • Set Setback_Unit = (Random unit from Setback_Group)
        • Set Setback_Point = (Position of Setback_Unit)
        • Unit - Create 1 Dummy Unit for Player 11 (Dark Green) at Setback_Point facing Default building facing degrees
        • Unit - Add Curse (Setback 5 secs) to Setback_Dummy
        • Unit - Add a 1.50 second Generic expiration timer to Setback_Dummy
        • Unit - Order Setback_Dummy to Undead Banshee - Curse Setback_Unit
    • Custom script: call RemoveLocation (udg_Setback_Point)
 
Level 4
Joined
Jan 3, 2013
Messages
69
You are damn right man! thanks a lot, but what would be te correct way?
EDIT: I figured it out, but here is another noob problem plis related to the target unit :D
  • Boss 2 Action 1
    • Events
      • Time - Every 3.00 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Boss_Loop Equal to 5
        • Then - Actions
          • Trigger - Turn off (This trigger)
          • Set Boss_Groups[1] = (Units in Move2 Heroes <gen> matching ((((Matching unit) is A Hero) Equal to True) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of Player 11 (Dark Green)) Equal to True))))
          • Unit - Unhide Boss2_Unit
          • Unit - Move Boss2_Unit instantly to (Center of Boss 2 Zone <gen>)
          • Unit - Order Boss2_Unit to Night Elf Druid Of The Claw - Night Elf Form
          • Unit - Order Boss2_Unit to Attack (First unit from Boss_Groups[1])
          • Custom script: call DestroyGroup(udg_Boss_Groups[1])
          • Wait 14.00 seconds
          • Set Boss_Action = (Random integer number between 2 and 5)
          • Trigger - Turn on Boss 2 Check <gen>
        • Else - Actions
          • Set Boss_Loop = (Boss_Loop + 1)
          • Set Boss_Groups[1] = (Units in Move2 Heroes <gen> matching ((((Matching unit) is A Hero) Equal to True) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of Player 11 (Dark Green)) Equal to True))))
          • Set Boss_RandomPoint = (Position of (Random unit from Boss_Groups[1]))
          • Special Effect - Create a special effect at Boss_RandomPoint using war3mapImported\SandExplosion.mdx
          • Unit Group - Pick every unit in (Units within 250.00 of Boss_RandomPoint matching ((((Matching unit) is A Hero) Equal to True) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of Player 11 (Dark Green)) Equal to True)))) and do (Actions)
            • Loop - Actions
              • Set Boss_Groups[2] = (Last created unit group)
              • Set Boss_TempLoc[1] = (Position of (Picked unit))
              • Unit - Create 1 Dummy Unit for Player 11 (Dark Green) at Boss_TempLoc[1] facing Default building facing degrees
              • Set Boss_Dummy = (Last created unit)
              • Unit - Add Entangling Roots Boss 2 to Boss_Dummy
              • Unit - Order Boss_Dummy to Night Elf Keeper Of The Grove - Entangling Roots (Picked unit)
              • Unit - Add a 2.00 second Generic expiration timer to Boss_Dummy
              • Custom script: call RemoveLocation (udg_Boss_TempLoc[1])
          • Custom script: call DestroyGroup(udg_Boss_Groups[2])
          • Custom script: call DestroyGroup(udg_Boss_Groups[1])
          • Custom script: call RemoveLocation (udg_Boss_RandomPoint)
  • [/hidden]
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
Actually, it's exactly the same problem as the one in your original post :p.

"Pick all units in region" does not create a "last created unit group".

  • Custom script: set bj_wantDestroyGroup = true
  • Set SetBack_Unit = (Random unit from (Units in Fight Arena <gen> matching (Your Conditions Here)
Then create the dummy and make it cast curse on that unit. Don't use Group-actions here.
jot0017 said:
  • Unit Group - Pick every unit in (Units within 250.00 of Boss_RandomPoint matching (Conditions)) and do (Actions)
    • Loop - Actions
      • Set Boss_Groups[2] = (Last created unit group)
I hope you see the problem. I already gave you the solution.
 
Level 4
Joined
Jan 3, 2013
Messages
69
Soo, it won't leak if i dont use the variables implicating regions right? You are cool brah, thanks for giving this noob some time of your own
 
Status
Not open for further replies.
Top