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

Storing Orders

Status
Not open for further replies.
Well, I want to improve the current Build - Advanced system on my wc2 map. I searched THW, TH, and WC3C, all I got was about the same system I used and spellbook (Which is bad).

Now, I know everyone knows that when you replace a unit with orders, the unit will stop doing the orders (ie. try replacing a peasant holding gold/lumber with another unit, it will remove the orders) . So, anyone know a nice way to store orders?
 
  • Custom script: set udg_order = (GetUnitCurrentOrder(GetTriggerUnit())
  • Hashtable - Save order as (Key(order)) of (Key(X)) in Hashtable
order is a String variable.
The hashtable action is the Hashtable - Save String action.

Key(X) is where you want to store the order. You can store in "Triggering unit"/"Owner of (Triggering unit)" and any other event response.
 
Status
Not open for further replies.
Top