1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still haven't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. Ride into the sunset with the 32nd Modeling Contest.
    Dismiss Notice
  4. This adventure has come to an end. Congratulate our heroes in the 16th Mini Mapping Contest Results.
    Dismiss Notice
  5. From the gates of hell, the 5th Special Effect Contest Results have emerged.
    Dismiss Notice
  6. Race against the odds and Reforge, Don't Refund. The 14th Techtree Contest has begun!
    Dismiss Notice
  7. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

String to order conversion

Discussion in 'World Editor Help Zone' started by _MB_, Feb 20, 2014.

  1. _MB_

    _MB_

    Joined:
    Jan 5, 2014
    Messages:
    79
    Resources:
    0
    Resources:
    0
    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?
     
  2. DysfunctionaI

    DysfunctionaI

    Joined:
    Mar 6, 2006
    Messages:
    281
    Resources:
    1
    Tutorials:
    1
    Resources:
    1
    • Custom script: call IssueTargetOrder( udg_Unit, LoadStringBJ(value, value, udg_KnockbackedUnits), udg_Target )
     
  3. Maker

    Maker

    Joined:
    Mar 6, 2006
    Messages:
    9,181
    Resources:
    17
    Maps:
    2
    Spells:
    14
    Tutorials:
    1
    Resources:
    17
    ^
    LoadStr(hash, parentKey, childKey)
    is the native.
     
  4. _MB_

    _MB_

    Joined:
    Jan 5, 2014
    Messages:
    79
    Resources:
    0
    Resources:
    0
    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?)
     
  5. Maker

    Maker

    Joined:
    Mar 6, 2006
    Messages:
    9,181
    Resources:
    17
    Maps:
    2
    Spells:
    14
    Tutorials:
    1
    Resources:
    17