• 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] Loading Unit

Status
Not open for further replies.
Level 8
Joined
Jul 15, 2012
Messages
143
Hi
This Is my trigger..

  • Player 4 Call MAU
    • Events
      • Unit - A unit owned by Player 4 (Purple) Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Raider Unit
    • Actions
      • Unit - Unpause UNIT1
      • Unit - Make UNIT1 Vulnerable
      • Unit - Move UNIT1 instantly to (Position of (Casting unit))
      • Wait 1.00 seconds
      • Unit - Order UNIT1 to Load (Casting unit)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Casting unit) is loaded into (Ordered unit)) Not equal to True
        • Then - Actions
          • Unit - Move (Ordered unit) instantly to (Center of Player 4 <gen>)
        • Else - Actions
          • Do nothing
i want to make trigger which function is
if UNIT1 have called to casting unit,casting unit can't move
(so my trigger for "Order UNIT1 to load Casting unit can work")

then if Player 4 exit UNIT1,UNIT1 will be move to "Center of Player 4"
can someone help me fix this trigger?
thanks
 
Last edited by a moderator:
Level 8
Joined
Jul 15, 2012
Messages
143
i set UNIT1 as sold unit
this is the trigger and this trigger already work


  • MAU set
    • Events
      • Unit - A unit Sells a unit
    • Conditions
      • ((Selling unit) is Mechanical) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Buying unit)) Equal to Player 4 (Purple)
        • Then - Actions
          • Set UNI1 = (Sold unit)
          • Unit - Pause (Sold unit)
          • Unit - Move (Sold unit) instantly to (Center of Player 4 <gen>)
          • Unit - Make (Sold unit) Invulnerable
        • Else - Actions
          • Do nothing
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Buying unit)) Equal to Player 5 (Yellow)
        • Then - Actions
          • Set UNIT2 = (Sold unit)
          • Unit - Pause (Sold unit)
          • Unit - Move (Sold unit) instantly to (Center of Player 5 <gen>)
          • Unit - Make (Sold unit) Invulnerable
        • Else - Actions
          • Do nothing
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Buying unit)) Equal to Player 6 (Orange)
        • Then - Actions
          • Set UNIT3 = (Sold unit)
          • Unit - Pause (Sold unit)
          • Unit - Move (Sold unit) instantly to (Center of Player 6 <gen>)
          • Unit - Make (Sold unit) Invulnerable
        • Else - Actions
          • Do nothing
i just want,UNIT1 ordered to load casting unit soon after called then
if loaded unit (exactly casting unit who call this UNIT1 ) exit loading unit (UNIT1),UNIT1 will move instanly to a place..

for move instanly to place when loaded unit exit,i have make a trigger like this
but not work too

  • Player 4 Bail Out Copy
    • Events
      • Unit - A unit owned by Player 4 (Purple) Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Unload (Air Transports)
    • Actions
      • Floating Text - Create floating text that reads Wait for 3 Second! above (Casting unit) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 10.00% transparency
      • Floating Text - Change the fading age of (Last created floating text) to 2.00 seconds
      • Floating Text - Change (Last created floating text): Disable permanence
      • Unit - Make UNIT1 Invulnerable
      • Unit - Pause UNIT1
      • Wait 3.00 seconds
      • Unit - Move UNIT1 instantly to (Center of Player 4 <gen>)
      • Game - Display to Bellato the text: ((Name of Player 4 (Purple)) + has return his UNIT back to HQ.)
 
Status
Not open for further replies.
Top