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

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