Command List for TESCS

Work in progress, but you knew that, didn't you?

Largely stolen from the Official Morrowind Forums

Notes

Be sure to try Help->Contents, select Index tab and find Functions.

Global scripts can only have one target at a time. No error is produced when using StartScript a second time, however the script will not start.

To create a .esm master file, in Morrowind.ini find WHO CAN MERGE and add "Username=1" where Username is your Windows login name. Also set AllowMultipleEditors=1. Finally, you can start with a mostly-empty .esp and get started on ten years of work.

Editor Commands
Render Window Keys

Multiple objects can be selected for these operations.

Preview Window
Script commands
PositionCell
target->PositionCell, x-coord, y-coord, z-coord, z-rot, cell name

PositionCell will send an object to a specified x,y,z,z-rot in a specified cell. z-rot might take minutes rather than degrees as a value.
Example to send player to the small swampy pond in Seyda Neen and face north:
Player->PositionCell, -12432.038, -71190.727, 45.127, 0, "Seyda Neen -2,-9"

AITravel
Actor->AITravel, x-coord, y-coord, zcoord

Causes an actor to walk to a location. Notes:

sv

Returns all global variables. Use set to modify them.

set
set VarName to Value

Used to set a variable. Example: set DaysPassed to 365

PCJoinFaction
PCJoinFaction "FactionID"

FactionID is optional and defaults to the faction of the calling actor.
Example: PCJoinFaction "Thieves Guild"

GetMasserPhase, GetSecundaPhase

These should return the phases of each moon. Note the second one is not GetSecundusPhase as the help file says. Does not work indoors; returns phase of last time player was outside.

GetInterior

Returns 1 if player is in an interior cell. Undocumented.

GetHealthGetRatio

Listed as GetHealthRatio. Returns a float value for an actor's health.

AIEscort, AIFollow

Differences between these two commands are not apparent.

enableracemenu

Pop up race selection menu from character creation.

enablebirthmenu

Pop up birthsign selection menu from character creation.

enableclassmenu

Pop up class selection menu from character creation.

ra

Reset actors in current cell to original spawn location.

SetDelete [Tribunal]
SetDelete 0|1

You should allow a few frames of inactivity, say ten, before using this to delete objects.

Undocumented Commands
Misspelled Commands
Documented : Actual
Non-working Commands