OrderId

Parameters
orderIdString string
bug

Do not use this in a global initialisation (map init) as it returns 0 there.

bug

Orders: humainbuild / orcbuild / nightelfbuild / undeadbuild are totally broken, don't issue them.

comment

Returns an internal ID for the unit order string.

Example (Lua):

OrderId("humanbuild") == 851995 -- this order opens the human build menu
note

See: OrderId2String

pure
This function is pure. For the same values passed to it, it will always return the same value.
return type
integer
Source code
constant native OrderId                     takes string  orderIdString     returns integer
Source
common.j
wc3modding.com
OrderId