• 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] very complicated for me

Status
Not open for further replies.
Level 9
Joined
May 30, 2008
Messages
430
i need trigger that pick 1 unit of type who is ordered to patrol and send the picked unit to attack in center of region, and other trigger that when unit of type die in region to activate the first trigger
+rep for the hero who help me with this trigger:witch_doc_sad:
 
Level 28
Joined
Mar 25, 2008
Messages
2,955
  • trig1
    • Events
      • *your event*
    • Conditions
    • Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Playable Map Area) and do:
        • If (Picked Unit)'s order equal to patrol then do Unit Group - Add (Picked Unit) to Partolgroup
      • Set temppoint = (Center of (Region x <gen>))
      • Unit Group - Pick every unit in Partolgroup and do Unit - Order (Picked Unit) to attack [attack/move] temppoint
      • Custom script: call RemoveLocation(udg_temppoint)
      • Unit Group - Remove all units from Patrolgroup
  • trig2
    • Events
      • Unit - A unit dies
    • Conditions
      • Current order of (Triggering Unit) equal to patrol
    • Actions
      • Trigger - Run trig1 <gen> (checking conditions)
Is that, what you want?
One more thing - before you actually give rep, you must have at least 10 yourself
 
Level 9
Joined
May 30, 2008
Messages
430
no for your first trigger i need to pick only 1 (not all like in your trigger) unit of type who is patroling, and for second (trigger who activate the first) need to be a unit of type in region die (not unit who curent order is patrol) grrr :con: and ok i will no give rep for tis trigger :D
 
Level 28
Joined
Mar 25, 2008
Messages
2,955
Then put your questions in proper english and not in "i need help plz help"-style.
  • trig1
    • Events
      • *your event*
    • Conditions
    • Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Playable Map Area) and do:
        • If (Picked Unit)'s order equal to patrol then do Unit Group - Add (Picked Unit) to Partolgroup
      • Set temppoint = (Center of (Region x <gen>))
      • Set rnd_unit = Random unit from Patrolgroup
      • Unit - Order rnd_unit to attack [attack/move] temppoint
      • Custom script: call RemoveLocation(udg_temppoint)
      • Unit Group - Remove all units from Patrolgroup
  • trig2
    • Events
      • Unit - A unit dies
    • Conditions
      • (Region x <gen > contains (Triggering Unit)) equal to true
    • Actions
      • Trigger - Run trig1 <gen> (checking conditions)
And please try to acquire a bit more social thinking.
 
Status
Not open for further replies.
Top