HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How can I find the Order string for building a specific building?

02-19-2006, 04:29 PM#1
Fulla
Basically what titles says.

Need to be able to cancel a build order.

Thank you

EDIT: Perhaps to be more clear Id like to this

Events - a unit is issued an order

Conditions - order = (the build order)

Actions - cancel order
02-19-2006, 11:28 PM#2
PerfectlyInsane
well I got around this way by removing the building and refunding the money the second a building type begins construction.
02-20-2006, 01:46 PM#3
Naakaloh
Trigger:
Building
Collapse Events
Unit - A unit Begins construction
Collapse Conditions
(Unit-type of (Constructing structure)) Equal to [Unit-type]
Collapse Actions
Custom Script: call IssueImmediateOrderById( [Unit], [CancelID] )

Do you think this might be easier? I'm not sure what the order-ID for Cancel is, but I think I saw it floating around somewhere in the forum recently.
02-20-2006, 05:22 PM#4
Fulla
would that be

[unit] = unit-type e.g. Barracks (the code)

[cancelID] = ???
Is that code 851796 ? CancelId
02-20-2006, 06:00 PM#5
Naakaloh
[Unit] would be Constructed Unit

[Unit-type] would be the type of building that you want cancelled; you can select it through the GUI

[CancelID] would be the orderID for Cancel; I think what you have is correct