• 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] Can Someone Help Me? I Have A Trigger Problem

Status
Not open for further replies.
Level 2
Joined
Sep 1, 2008
Messages
8
I really need help with this so if you can help itd be MUCH appreciated:grin:
I dont get what I did wrong, im trying to make an escape map and the escaping units are 'SkeletalMages'
2dqv7gh.jpg

If you find a flaw or bug or something PLEASE post and help me THANKS IN ADVANCED :cute:
 
Level 2
Joined
Sep 1, 2008
Messages
8
Do you mean like this? and if so, how do i kill the unit that i just unselected from the unit group? [sorry this is only my 2nd map in WE :sad:]
2nhhymc.jpg
 
Level 18
Joined
Aug 23, 2008
Messages
2,319
No. He means that you need to drag everything under 'Unit Group - Pick every unit...'. Like this:

  • Unit Group - Pick every unit in tempGroup and do (Actions)
    • Loop - Actions
      • If (All Conditions are True) then do (Then Actions) alse do (Else Actions)
        • If - Conditions
        • Then - Actions
        • Else Actions
ps: If you post a trigger, don't make a screenshot of it, but right-click the name of the trigger (the one above Events) and select 'Copy As Text'. Then use the [ TRIGGER ][ /TRIGGER ] command and paste the trigger between.
 
Level 16
Joined
Feb 22, 2006
Messages
960
  • Events
    • Time - Every 0.12 seconds of game time
  • Conditions
  • Actions
    • Set tempGroup = (Units of type Skeletal Mage)
    • Unit Group - Pick Every unit in tempGroup and do (Actions)
      • Loop - Actions
        • Set tempPoint = (Position of (Picked unit))
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • ((Picked unit) is alive) Equal to True
            • Or - Any (Conditions) are True
              • Conditions
                • Terrain type at tempPoint Equal to Lordaeron Winter - Snow
                • Terrain type at tempPoint Equal to Northrend - Snow
                • Terrain type at tempPoint Equal to Icecrown Glacier - Snow
          • Then - Actions
            • Unit Group - Remove (Picked Unit) from tempGroup
          • Else - Actions
            • Custom script: call DestroyGroup(udg_tempGroup)
            • Custom script: call RemoveLocation(udg_tempPoint)
 
Level 28
Joined
Mar 25, 2008
Messages
2,955
  • Events
    • Time - Every 0.1 seconds
  • Conditions
  • Actions
    • Custom script: set bj_wantDestroyGroup = true
    • Unit Group - Pick every unit in (Units of Type Skeletal Mage) and do
      • Set temppoint = Position of (Picked Unit)
      • If-Conditions
        • Terrain-type at temppoint equal to x / y / z
      • Then-Actions
        • Unit - Kill (Picked Unit)
      • Else-Actions
      • Custom script: call RemoveLocation(udg_temppoint)
 
Last edited:
Level 2
Joined
Sep 1, 2008
Messages
8
Thank.....You.....Squig.....gy....A.....LOT!.....:grin:
i dont know what the [fudge] (is swearing allowed on the hive? cause i know theres A LOT of requirements) 'set bj_wantDestroyGroup = true' does but it works =D
p.s. could you elaborate what it does?
p.s.s dude, just spectating im new at this shit so dont give me any:hohum:
 
Level 2
Joined
Sep 1, 2008
Messages
8
Can someone also help me with an 'Ice Sliding' trigger?
[I know theres some online but they all SUCK! i want one like from the game 'SlideSpongebobSlide' because u only have to click ONCE for him to fully turn around]
 
Level 29
Joined
Jul 29, 2007
Messages
5,174
You simply make the unit turn towards the angle between him and the clicked point at X rate.

And Squiggy, you failed to not leak.

Also, didn't you open this thread before some time? I remember someone opened it right after someone else opened it. You guys are so very smart that you can't even use the search button.
 
Status
Not open for further replies.
Top