60 — Sell building
Sells every structure whose tag is attached to this trigger, through the ordinary deconstruction.
- Numeric ID
60- Engine ID
TACTION_SELL_ATTACHED- Editor name
- Sell building
- Need token
NEED_NONE- Parameters
- None
- Attachment
- object
[Actions]
<TriggerID>=1,60,0,0,0,0,0,0,What is sold
Section titled “What is sold”The action checks every structure in the scenario and sells each one that meets all of these, in this order:
- It is active.
- It has been placed on the map.
- It is not in limbo.
- It has a tag.
- That tag is attached to this trigger.
Each structure sold plays its construction animation in reverse, like a structure the player sells. The sale refunds RefundPercent of the price to a human player’s house and the full price to a computer house.
Three kinds of structure are not removed by the sale:
- A structure with upgrades installed loses only its most recent upgrade, which is refunded. The structure stays, and each later firing removes one more upgrade before the structure itself is sold.
- A service depot with an object parked on it sells the object instead, and the depot stays.
- A structure that names an
UndeploysInto=vehicle and meets that page’s conditions, such as a deployed tick tank or a mobile war factory, turns back into the vehicle. Nothing is refunded unless the vehicle cannot be placed.
What does not stop a sale
Section titled “What does not stop a sale”Two settings that keep other sales from happening do not apply here:
Unsellable=yesis tested only when the player orders a sale.- The sellable field in a structure’s map record is read only by the computer’s decision to sell a building it cannot afford to repair.
One refusal does apply: a type with no construction artwork cannot be sold by any route, including this one. For such a structure the action does nothing.
A firestorm wall section is the exception. It has no construction artwork either, but the sale takes it off the map at once and refunds nothing. The player can sell a section only while its house’s wall is down; this action sells it even while the wall is raised.
- Every structure in the scenario whose tag is attached to this trigger is sold, not only the structure that sprang it.
- A structure that is already being sold is skipped, and so is one with a demolition charge counting down on it.