This webpage contains a listing of Script commands, their required version, and effects in game (For Darwinia)
Back to crapmods
Command | Description | Param 1 | Param 2 | Param 3 | Param 4 |
---|---|---|---|---|---|
Say | Causes avatar to say a string from language/strings_default file | Key name of string | |||
ShutUp | Instantly completes any say commands in progress | ||||
PermitEscape | Makes return instantly exit the script, skipping any unfinished commands | ||||
CamMove | Moves to a camera name over a period of time (some innacuracy) | Target camera name | Seconds to arrival | ||
CamCut | Instantly cuts to a camera name (doesn't require camreset | Target camera name | |||
CamReset | Restores camera control to player | ||||
CamFOV | Changes the camera's FOV (such as when in cutscene mode | Field of view | Slow or Instant flag | ||
CamBuildingFocus | Focuses the camera on a building | Building ID to focus on | Some number | Some other number | |
CamLocationFocus | Focuses the camera on a worldmap location | Name of location to focus on | Some number | ||
CamBuildingApproach | Unknown | ? | ? | ? | ? |
CamGlobalWorldFocus | Does a short external tour of Darwinia (don't use in a map) | ||||
Wait | Waits for specified number of seconds | Seconds to wait | |||
WaitSay | Waits for any say commands to finish before running next command | ||||
WaitCam | Waits for any camera events to finish for running next command | ||||
WaitFade | Waits for the fading transitions between entering/leaving a location before running next command | ||||
WaitPlayerNotBusy | Supposedly waits until the player isn't doing anything before running next command | ||||
WaitRocket | Used by demo 2 to sync scripts with rocket events | Does nothing? | Rocket event | Does nothing? | |
EnterLocation | Enters a game location (World map only?) | Name of location to enter | |||
ExitLocation | Exits the current location | ||||
SetMission | Allows you to change the mission file of a location | Name of location to change mission of | Full name of mission file | ||
ActivateTrunkPort | Graphically turns on a trunk port | ID of trunk port to activate | |||
ActivateTrunkPortFull | Turns on a trunk port and makeavailables it's target location | ID of trunk port to activate | |||
Highlight | Shines god rays at a building (Persists between levels) | Building ID to highlight | |||
ClearHighlights | Clears all building highlights | ||||
DestroyBuilding | Destroys a building by ID and creates a damaging explosion | ID of building to destroy | Radius of explosion | ||
TriggerSound | Starts a sound playing (typically music) | Name of sound to trigger | |||
StopSound | Stops a sound playing | Name of sound to stop | |||
GiveResearch | Gives version 1.0 of the specified research name | Name of research to aquire | |||
ResetResearch | Resets Darwinian research to 1.0 (for temple cutscene) | ||||
RestoreResearch | Restores Darwinian research to original value if called in same instance of game as when resetresearch was called | ||||
GodDishActivate | Turns on the god dish | ||||
GodDishDeactivate | Turns off the god dish | ||||
GodDishSpawnResearch | Spawns dummy research from the god dish | ||||
GodDishSpawnSpam | Spawns spam from the god dish | ||||
TriggerSpam | Makes any spam emit doom ribbons | ||||
DemoGesture | Draws a gesture from the demo gestures folder | Name of gesture to demo (including .txt) | |||
ShowDarwinLogo | Shows a logo with some text | ||||
ShowDemoEndSequence | Does the fade to white with spinny DGs seen at the end of demo2 |