• 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.

what is the easiest way to create the war wind 2 unit training system in warcraft 3

Status
Not open for further replies.
Level 21
Joined
Mar 27, 2012
Messages
3,232
It's possible to be triggered. Perhaps something like this:
  • TrainingInit
    • Events
      • Unit - A unit Is issued an order targeting an object
    • Conditions
      • (Owner of (Target unit of issued order)) Equal to (==) (Owner of (Triggering unit))
      • (Issued order) Equal to (==) (Order(order_string_of_your_training_ability))
    • Actions
      • Unit - Add Locust to (Triggering unit)
      • Unit Group - Add (Triggering unit) to TrainingGroup
      • Custom script: Set udg_TempHandle = GetTriggerUnit()
      • Hashtable - Save Handle Of(Position of (Target unit of issued order)) as (Key Trainer) of (Key TempHandle) in (Last created hashtable)
      • Custom script: Set udg_TempHandle = null
  • TrainingLoop
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in TrainingGroup and do (Actions)
        • Loop - Actions
          • Set TempLocA = (Position of (Picked unit))
          • Custom script: set udg_TempHandle = GetEnumUnit()
          • Set TempLocB = (TempLocA offset by 16.00 towards (Angle from TempLocA to (Load (Key Trainer) of (Key TempHandle) in (Last created hashtable))) degrees)
            • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
              • If - Conditions
                • (Distance between TempLocA and TempLocB) Less than or equal to (<=) 16.00
              • Then - Actions
                • Unit - Replace (Picked unit) with a Footman using The old unit's relative life and mana
              • Else - Actions
                • Unit - Move (Picked unit) instantly to TempLocB
This is in no way a complete way of doing this. It's just to give an idea of how you could do it. If you are not able to, then you should ask someone to make it. It's a bit too much work for me to do.
 
Status
Not open for further replies.
Top