Debug Commands

From SC2Mapster Wiki
Jump to: navigation, search

Contents

StarCraft 2 Debug Cheats[edit | edit source]

The following commands can be used while testing your map through the Editor and can help you debug your map. Descriptions can be found at the bottom of this page.


SetCurriculumScore[edit | edit source]

CommandHandlerSetCurriculumScore

[{score}]

EndGame[edit | edit source]

CommandHandlerEndGame

[{condition}]

SetUnitValueByTag[edit | edit source]

CommandHandlerSetUnitValueByTag

[{value}]

Cooldown[edit | edit source]

CommandHandlerCooldown

[{playerId}]

Defeat[edit | edit source]

CommandHandlerDefeat

[{playerId}]

FastBuild[edit | edit source]

CommandHandlerFastBuild

[{playerId}]

FastHeal[edit | edit source]

CommandHandlerFastHeal

[{playerId}]

Food[edit | edit source]

CommandHandlerFood

[{playerId}]

Free[edit | edit source]

CommandHandlerFree

[{playerId}]

Gimme[edit | edit source]

CommandHandlerResourceAll

[{amount}] [{playerId}]

God[edit | edit source]

CommandHandlerGod

[{playerId}]

Minerals[edit | edit source]

CommandHandlerResourceMinerals

[{amount}] [{playerId}]

NoDefeat[edit | edit source]

CommandHandlerNoDefeat

[{playerId}]

NoVictory[edit | edit source]

CommandHandlerNoVictory

[{playerId}]

ResourceCustom[edit | edit source]

CommandHandlerResourceCustom

[{amount}] [{playerId}]

Showmap[edit | edit source]

CommandHandlerShowmap

None

TechTree[edit | edit source]

CommandHandlerTechTree

[{playerId}]

Terrazine[edit | edit source]

CommandHandlerResourceTerrazine

[{amount}] [{playerId}]

TimeOfDay[edit | edit source]

CommandHandlerTimeOfDay

[hh:mm:ss]

Upgrade[edit | edit source]

CommandHandlerUpgrade

[{upgradeId} {count} {playerId}]

Vespene[edit | edit source]

CommandHandlerResourceVespene

[{amount}] [{playerId}]

Victory[edit | edit source]

CommandHandlerVictory

[{playerId}]

Ally[edit | edit source]

CommandHandlerAlliance

[{sourcePlayerId} {targetPlayerId} {state}]

AllianceDefeat[edit | edit source]

CommandHandlerAlliance

[{sourcePlayerId} {targetPlayerId} {state}]

AllianceControl[edit | edit source]

CommandHandlerAlliance

[{sourcePlayerId} {targetPlayerId} {state}]

AllianceFriend[edit | edit source]

CommandHandlerAlliance

[{sourcePlayerId} {targetPlayerId} {state}]

AllianceGiveHelp[edit | edit source]

CommandHandlerAlliance

[{sourcePlayerId} {targetPlayerId} {state}]

AlliancePassive[edit | edit source]

CommandHandlerAlliance

[{sourcePlayerId} {targetPlayerId} {state}]

AlliancePower[edit | edit source]

CommandHandlerAlliance

[{sourcePlayerId} {targetPlayerId} {state}]

AlliancePushable[edit | edit source]

CommandHandlerAlliance

[{sourcePlayerId} {targetPlayerId} {state}]

AllianceSeekHelp[edit | edit source]

CommandHandlerAlliance

[{sourcePlayerId} {targetPlayerId} {state}]

AllianceSpend[edit | edit source]

CommandHandlerAlliance

[{sourcePlayerId} {targetPlayerId} {state}]

AllianceTrade[edit | edit source]

CommandHandlerAlliance

[{sourcePlayerId} {targetPlayerId} {state}]

AllianceVision[edit | edit source]

CommandHandlerAlliance

[{sourcePlayerId} {targetPlayerId} {state}]

BehaviorAdd[edit | edit source]

CommandHandlerBehavior

{behaviorId} [{duration}] [{count}]

BehaviorDuration[edit | edit source]

CommandHandlerBehavior

{behaviorId} [{duration}] [{count}]

BehaviorRemove[edit | edit source]

CommandHandlerBehavior

{behaviorId} [{duration}] [{count}]

Charges[edit | edit source]

CommandHandlerToggle

[{playerId}]

Creep[edit | edit source]

CommandHandlerCreep

[{radius} {permanent}]

DamageDealt[edit | edit source]

CommandHandlerDamage

[{factor} {playerId}]

DamageTaken[edit | edit source]

CommandHandlerDamage

[{factor} {playerId}]

DeathAll[edit | edit source]

CommandHandlerDeathAll

[{deathType}]

DeathAllType[edit | edit source]

CommandHandlerDeathAllType

[{unittypename}]

DeathExcept[edit | edit source]

CommandHandlerDeathExcept

[{deathType}]

DeathSide[edit | edit source]

CommandHandlerDeathSide

[{deathType} {playerId}]

DeathUnit[edit | edit source]

CommandHandlerDeathUnit

[{deathType}]

DestroyPersistent[edit | edit source]

CommandHandlerDestroyPersistent

{radius} [{count} {effectId}]

Effect[edit | edit source]

CommandHandlerEffect

{effectId} [{casterTag}]

Fidget[edit | edit source]

CommandHandlerFidget

[{type}]

GlobalTimeScale[edit | edit source]

CommandHandlerGlobalTimeScale

[{scale}]

KillUnitByTag[edit | edit source]

CommandHandlerKillUnitByTag

[{deathType}]

KineticApply[edit | edit source]

CommandHandlerKinetic

None

KineticRemove[edit | edit source]

CommandHandlerKinetic

None

Loot[edit | edit source]

CommandHandlerLoot

{id} {playerId}

MakeUnit[edit | edit source]

CommandHandlerMakeUnit

[{unitId} {count} {playerId} {select}]

Move[edit | edit source]

CommandHandlerMove

[{unitTag}]

Owner[edit | edit source]

CommandHandlerOwner

[{playerId}]

SetAll[edit | edit source]

CommandHandlerSetUnitValue

[{value}]

SetEnergy[edit | edit source]

CommandHandlerSetUnitValue

[{value}]

SetLife[edit | edit source]

CommandHandlerSetUnitValue

[{value}]

SetShields[edit | edit source]

CommandHandlerSetUnitValue

[{value}]

SetResource[edit | edit source]

CommandHandlerSetResource

[{amount}]

Speed[edit | edit source]

CommandHandlerSpeed

[{scale}]

Tie[edit | edit source]

CommandHandlerResult

[{playerId}]

TimeOfDayRate[edit | edit source]

CommandHandlerTimeOfDay

[hh:mm:ss]

TrigRun[edit | edit source]

CommandHandlerTrigger

{trigger}

Uncreep[edit | edit source]

CommandHandlerCreep

[{radius} {permanent}]

Undecided[edit | edit source]

CommandHandlerResult

[{playerId}]

XP[edit | edit source]

CommandHandlerXP

{Amount}

Order[edit | edit source]

CommandHandlerOrder

{abil} [{index} {unitTag or point}]

TrigDebug[edit | edit source]

CommandHandlerTriggerWindow

[toggle]

ActorBroadcast[edit | edit source]

CommandHandlerActorBroadcast

msg

ActorBroadcastTo[edit | edit source]

CommandHandlerActorBroadcastTo

refName msg

ActorCreateAt[edit | edit source]

CommandHandlerActorCreate

None

ActorCreateAtCursor[edit | edit source]

CommandHandlerActorCreate

None

ActorDumpLive[edit | edit source]

CommandHandlerActorDump

None

ActorDumpClassMem[edit | edit source]

CommandHandlerActorDumpClassMem

None

ActorDumpAutoCreates[edit | edit source]

CommandHandlerActorDumpAutoCreates

None

ActorDumpCreates[edit | edit source]

CommandHandlerActorDumpCreates

[{catalog} {key}]

ActorDumpEvents[edit | edit source]

CommandHandlerActorDumpEvents

None

ActorDumpLeakRisks[edit | edit source]

CommandHandlerActorDumpLeakRisks

ageRequirement

ActorFrom[edit | edit source]

CommandHandlerActorFrom

actorName

ActorInfoDisplay[edit | edit source]

CommandHandlerActorInfoDisplay

None

ActorInfoDisplayPortraits[edit | edit source]

CommandHandlerActorInfoDisplayPortraits

None

ActorKillAll[edit | edit source]

CommandHandlerActorKillGlobal

None

ActorKillClass[edit | edit source]

CommandHandlerActorKillGlobal

None

ActorKillLink[edit | edit source]

CommandHandlerActorKillGlobal

None

ActorOverlayLock[edit | edit source]

CommandHandlerActorOverlayLock

1 (on) or 0 (off)

ActorSend[edit | edit source]

CommandHandlerActorSend

msg

ActorSendAutoTargetingSet[edit | edit source]

CommandHandlerActorSendAutoTargetingSet

1 (on) or 0 (off); no parameter turns on

ActorSendTo[edit | edit source]

CommandHandlerActorSendTo

refName msg

ActorScopeDumpLive[edit | edit source]

CommandHandlerActorScopeDump

None

ActorScopeFrom[edit | edit source]

CommandHandlerActorScopeFrom

scopeFrom

ActorScopeKill[edit | edit source]

CommandHandlerActorScopeKill

None

ActorScopeOrphan[edit | edit source]

CommandHandlerActorScopeOrphan

None

ActorScopeSend[edit | edit source]

CommandHandlerActorScopeSend

msg

ActorUsersDump[edit | edit source]

CommandHandlerActorUsersDump

None

ActorUsersFromHoverTarget[edit | edit source]

CommandHandlerActorUsersFromHoverTarget

None

ActorUsersFromPortraitGame[edit | edit source]

CommandHandlerActorUsersFromPortraitGame

None

ActorUsersFromSelection[edit | edit source]

CommandHandlerActorUsersFromSelection

None

ActorWorldParticleFXDestroy[edit | edit source]

CommandHandlerActorWorldParticleFXDestroy

None


Debug commands - descriptions[edit | edit source]

  • Ally - Changes all alliance states between the selected players. By default, if you just type Ally, then all players share all alliance states with you.
  • AllianceDefeat - Changes the Defeat alliance state between the selected players. By default, if you just type AllianceDefeat, all players will share defeat with you.
  • AllianceControl - Changes the Control alliance state between the selected players. By default, if you just type AllianceControl, then all players share control with you.
  • AllianceGiveHelp - Changes the GiveHelp alliance state between the selected players. By default, if you just type AllianceGiveHelp, all players will respond to calls for help from your units.
  • AlliancePassive - Changes the Passive alliance state between the selected players. Players that you are not passive with will be considered hostile for attacking purposes.
  • AlliancePushable - Changes the Pushable alliance state between the selected players. This controls whether a player’s units will move through another player’s units, pushing them out of the way.
  • AllianceSeekHelp - Changes the SeekHelp alliance state between the selected players. Controls whether a player’s units call for help to the specified target player. The target player can choose to respond or not, depending on its GiveHelp alliance setting.
  • AllianceSpend - Changes the Spend alliance state between the selected players. Players that you are sharing resources with are allowed to spend your money to purchase things.
  • AllianceTrade - Changes the Trade alliance state between the selected players. Players that you are trading with can be sent resources.
  • AllianceVision - Changes the Vision alliance state between the selected players.
  • BehaviorAdd - Adds the requested behavior to the selected units.
  • BehaviorDuration - Sets the duration of the requested behavior.
  • BehaviorRemove - Removes the requested behavior from the selected units.
  • Charges - Toggles spell charge validation.
  • Cooldown - Toggles spell cooldown validation.
  • Creep - Adds creep at the cursor position given the requested radius.
  • DamageDealt - Multiplies the amount of damage dealt by a player's units by the specified value. By default, this will multiply the damage dealt by 10 for the cheating player.
  • DamageTaken - Multiplies the amount of damage taken by a player's units by the specified value. By default, this will reduce all damage taken to 0 for the cheating player.
  • DeathAll – Kills all units on the map.
  • DeathExcept - Kills all units on the map except the selected units.
  • DeathSide - Kills all units owned by the selected player.
  • DeathUnit - Kills the selected units. The type of death can be specified as a parameter.
  • Defeat - Ends the game in defeat for the selected player.
  • DestroyPersistent - Destroys all persistent effects within the specified radius of the cursor.
  • Effect - Executes the requested effect from the selected units.
  • FastBuild - Toggles fast building, research, and training times.
  • FastHeal - Toggles fast healing times.
  • Fidget - Forces selected units to perform the specified fidget type.
  • Food - Toggles food usage validation.
  • Free - Toggles resource cost validation and expenditure.
  • God - Turns on god mode for the selected player. Units owned by players that are in god mode will deal amplified damage, and take no damage.
  • Loot - Drops a type of loot for the specified player.
  • MakeUnit - Creates N units for the specified player. Units will be created around the cursor position, or in the center of the map if the cursor position is invalid.
  • Minerals - Adds the specified amount of minerals to the selected player.
  • Move - Moves the selected units to the cursor position.
  • NoDefeat - Disables defeat conditions.
  • NoVictory - Disables victory conditions.
  • Order - Orders the selected units to use an ability.
  • Owner - Changes ownership for the selected units to the selected player.
  • ResourceCustom - Adds the specified amount of a custom resource to the selected player.
  • SetAll - Sets the life, shields, and energy of the selected units to the specified value. By default, this will set these values to the maximum amount.
  • SetLife – Sets the life of the selected units to the specified value.
  • SetEnergy - Sets the energy of the selected units to the specified value.
  • SetLife - Sets the life of the selected units to the specified value.
  • SetShields - Sets the shields of the selected units to the specified value.
  • SetResource - Sets the harvestable resources contained by the selected units to the specified value.
  • ShowMap - Toggles fog of war display and validation.
  • TechTree - Toggles tech tree dependency validation.
  • Terrazine - Adds the specified amount of terrazine to the specified player.
  • Tie - Marks all undecided players with the tie result.
  • TimeOfDay - Sets the time of day to the specified time.
  • TimeOfDayRate – Sets the rate that the time of day changes to the specified value.
  • TrigDebug - Opens the trigger debug window.
  • TrigRun - Runs the specified trigger.
  • Uncreep - Removes creep at the cursor position given the requested radius.
  • Undecided - Marks the selected player's result as undecided.
  • Upgrade - Applies the selected upgrade to the selected player.
  • Vespene - Adds the specified amount of vespene gas to the specified player.
  • Victory - Ends the game in defeat for all players that don't share the defeat alliance state with the selected player.
  • XP - Adds a relative amount of XP to the selected units. This can be used to change veterancy levels.