• 🏆 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!

Load 2 specific unit-types

Status
Not open for further replies.
Level 8
Joined
Sep 30, 2012
Messages
205
I want that a unit can only load two specific unit types..

So abort the order "load" doesn't seem to happen fast enough.
And instantly unloading the unit isn't very smooth either..

Any ideas?

Giving a unit two times "Battle Station" is of course buggy - only one will work.

Thanks in advance

  • Untitled Trigger 001
    • Events
      • Unit - A unit Is loaded into a transport
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • (Unit-type of (Triggering unit)) Equal to Archer
              • (Unit-type of (Triggering unit)) Equal to Militia
          • Or - Any (Conditions) are true
            • Conditions
              • (Unit-type of (Transporting unit)) Equal to Town Hall
              • (Unit-type of (Transporting unit)) Equal to Keep
              • (Unit-type of (Transporting unit)) Equal to Castle
        • Then - Actions
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Or - Any (Conditions) are true
                • Conditions
                  • (Unit-type of (Transporting unit)) Equal to Town Hall
                  • (Unit-type of (Transporting unit)) Equal to Keep
                  • (Unit-type of (Transporting unit)) Equal to Castle
            • Then - Actions
              • Set TempUnit = (Triggering unit)
              • Set TempUnit2 = (Transporting unit)
              • Set TempPoint = (Position of TempUnit)
              • Game - Display to (Player group((Triggering player))) the text: |cffffcc00Can't loa...
              • Unit - Order (Transporting unit) to Unload All At TempPoint
              • Set TempUnit2 = No unit
              • Set TempUnit = No unit
              • Custom script: call RemoveLocation( udg_TempPoint )
            • Else - Actions


  • rdd
    • Events
      • Unit - A unit Is issued an order targeting an object
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Issued order) Equal to (Order(load))
          • (Unit-type of (Triggering unit)) Equal to Town Hall
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Or - Any (Conditions) are true
                • Conditions
                  • (Unit-type of (Target unit of issued order)) Equal to Milita
                  • (Unit-type of (Target unit of issued order)) Equal to Archer
                  • (Unit-type of (Target unit of issued order)) Equal to Peasant
            • Then - Actions
            • Else - Actions
              • Set TempUnit = (Triggering unit)
              • Set TempUnit2 = (Target unit of issued order)
              • Set TempPoint = (Position of TempUnit2)
              • Unit - Order TempUnit to Stop
              • Unit - Order TempUnit2 to Move To TempPoint
              • Unit - Order TempUnit2 to Stop
              • Game - Display to (Player group((Triggering player))) the text: |cffffcc00Can't loa...
              • Set TempUnit = No unit
              • Set TempUnit2 = No unit
              • Custom script: call RemoveLocation( udg_TempPoint )
        • Else - Actions
 
Status
Not open for further replies.
Top