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

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