• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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