LogicCommand - TM-Modding-Wiki

LogicCommand

From TM-Modding-Wiki

Jump to: navigation, search

Contents

LogicCommands are defines of all the buttons you see ingame like Build-, Upgrade-, SpecialPower-Buttons.

LogicCommand

Values are set to 1.09 default values.

<LogicCommand
id="" Required Sets the LogicCommand´s name for reference in other Assets; must be unique in the mod; String
Type="NONE" Optional Sets the type of the LogicCommand; LogicCommandType
Options="" Optional Sets Options for this LogicCommand; LogicCommandOptions
<SpecialPower></SpecialPower> Optional Reference to activated SpecialPower; SpecialPowerTemplateRef
<Upgrade></Upgrade> Optional Reference to upgrade; UpgradeTemplateRef
<Object></Object> Optional Reference to Object; GameObjectRef
</LogicCommand>

Example LogicCommand's

SpecialPower

<LogicCommand
Type="SPECIAL_POWER"
id="Command_ConstructTMExampleSpecialPower">
<SpecialPower>TMExampleSpecialPower</SpecialPower>
</LogicCommand>

Upgrade

<LogicCommand
Type="OBJECT_UPGRADE"
id="Command_ConstructTMExampleUpgrade">
<Upgrade>TMExampleUpgrade</Upgrade>
</LogicCommand>

Object

<LogicCommand
Type="UNIT_BUILD"
id="Command_ConstructTMExampleObject">
<Object>TMExampleObject</Object>
</LogicCommand>
Personal tools
languages