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

String to order conversion

Status
Not open for further replies.
Level 4
Joined
Jan 5, 2014
Messages
79
Hello, I use hashtables to somethink and i need this: I have one trigger

  • Order Adding 2
    • Events
      • Unit - A unit Is issued an order targeting an object
    • Conditions
      • ((Ordered unit) is in UnitsBeingKnockbacked) Equal to True
    • Actions
      • Hashtable - Save (String((Issued order))) as IssuedOrder of (Key (Ordered unit)) in KnockbackedUnits
      • Hashtable - Save Handle Of(Target unit of issued order) as Target of (Key (Ordered unit)) in KnockbackedUnits
and than another more difficult. In the second one, i would like to issue a unit an order, which was saved as a string in a hastable by the trigger showed above. Is there any way to do this?
 
Level 4
Joined
Jan 5, 2014
Messages
79
Thank you, but i it gives me "expected a name" error (also, i want the ordered unit to be picked unit, so shloud i put PickedUnit instead of udg_Unit?)
 
Status
Not open for further replies.
Top