Command List for TESCS
Work in progress, but you knew that, didn't you?
Largely stolen from the
Official Morrowind Forums
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.
Render Window Keys
Multiple objects can be selected for these operations.
- Space+Mouse : Pan world.
- Shift+Mouse : Rotate world.
- A : Toggles lights between normal and full.
- C : Snap to isometric view of selected object.
- D : Deselect object.
- F : Selected object falls to object below, such as a floor.
- L : Toggle visible light radii.
- T : Snap to a top-down view of selected object.
- V : Hold to allow mouse-zoom on selected object.
- W : Toggle wireframe mode.
- X : Restrict object mouse movement to the X-axis.
- Y : Restrict object mouse movement to the Y-axis.
- Z : Restrict object mouse movement to the Z-axis.
- S+Mouse : Resize object.
- F4 : Show collision detection.
- Arrow keys : Pan world.
- Shift+Arrow keys : Rotate world on Y-axis(?).
- PageUp/Home : Rotate world on Z-axis.
Preview Window
- A : Pan view left.
- D : Pan view right.
- S : Pan view down.
- W : Pan view up.
- Insert : Rotate object on ? axis.
- Home : Rotate object on ? axis.
- PageUp : Zoom in.
- PageDown : Zoom out.
- Arrow Keys : Rotate object.
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:
- Only use once, multiple calls do nothing good.
- Does not work for great distances, possibly over 4000 units.
- Use GetAiPackageDone to determine when the actor arrives at the destination.
- Sleep, teleporting or fasttraveling will make the actor warp
to destination and GetAiPackageDone will not return true.
- Approximate z-coord is fine.
- Coordinates must be literals, no variables.
- Path grid helps but is not required.
- Probably works better within the same exterior cell.
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.
- GetInterior
- PayFineThief, alias for PayFine?
- EnableStatReviewMenu
- GetFactionReaction
- ShowMap
- EnableBirthMenu
- EnableClassMenu
- EnableRaceMenu
- EnableNameMenu
- RemoveEffects
- EnableMagicMenu
- EnableMapMenu
- EnableInventoryMenu
- EnableStatsMenu
- GetLineOfSight, alias for GetLOS?
- GetWindSpeed
- ModPCCrimeLevel
- SetPCCrimeLevel
- GetPCCrimeLevel
- GetCurrentTime
- OutputObjCounts
- OutputRefCounts
- ResetActors, alias for ra
- OutputRefInfo
- Help
- ToggleScripts
- ShowAnim
- PurgeTextures
- BetaComment
- ToggleWater
- MoveOneToOne, alias for MOTO?
- MenuTest
- ToggleScriptOutput
- ToggleLights
Documented : Actual
- GetHealthRatio : GetHealthGetRatio
- GetInvisible : GetInvisibile
- SetInvisible : SetInvisibile
- ModInvisible : ModInvisibile
- GetSecundusPhase : GetSecundaPhase
- GetPlayerViewSwitch
- OnRepair
- UsedOnMe
- Name
- Equip?