Netruk44/uesp-wiki-content huggingface dataset:
Tes3Mod:XPosition

A function added by MWSE.

xPosition is a wrapper function for the original Position to allow variables.

Syntax
 

Example
 

See Also
xAITravel 
xPlace 
xPositionCell 
xStartCombat
Tes3Mod:XPositionCell

A function added by MWSE.

xPositionCell is a wrapper function for the original PositionCell to allow variables.

Syntax
 

Example
 

See Also
xAITravel 
xPlace 
xPosition 
xStartCombat
Tes3Mod:XRadDeg

A function added by MWSE.

xRadDeg converts a value from radians to degrees.

Syntax
 

Example
 

See Also
xDistance 
xSqrt 
xHypot 
xDegRad 
xCos 
xSin 
xTan 
xArcCos 
xArcSin 
xArcTan
Tes3Mod:XRefID

A function added by MWSE.

xRefID returns the objectid string of the object. This function may crash the game. If it does use xGetBaseID instead.

Syntax
 

Example
 

See Also
xPCCellID 
xMyCellID 
xGetName 
xSetName 
xGetBaseID 
xStringCompare 
xStringLength 
xStringParse 
xStringBuild 
xStringMatch 
xLogMessage 
xMessageFix
Tes3Mod:XRefType

A function added by MWSE.

xRefType gets the four byte record name of the reference.

Syntax
 

Example
 
In this case the variable objtype will be 1346454871, which is the four byte record name WEAP.

Notes
A table for all of the record names retrievable by xRefType.



See Also
xSetRef 
xGetRef 
xGetCombat 
xGetPCTarget 
xFirstNPC 
xFirstItem 
xFirstStatic 
xNextRef
Tes3Mod:XRemoveItem

A function added by MWSE.

xRemoveItem is a wrapper for the original RemoveItem to take variables.

Syntax
 

Example
 

See Also
xInventory 
xNextStack 
xContentList 
xAddItem 
xHasItemEquipped 
xEquip 
xDrop 
xAddSpell 
xRemoveSpell
Tes3Mod:XRemoveSpell

A function added by MWSE.

xRemoveSpell is a wrapper for the original RemoveSpell to take variables.

Syntax
 

Example
 

See Also
xInventory 
xNextStack 
xContentList 
xAddItem 
xRemoveItem 
xHasItemEquipped 
xEquip 
xDrop 
xAddSpell
Tes3Mod:XSetBaseGold

A function added by MWSE.

xSetBaseGold changes the base amount of barter gold assigned to the NPC (or creature). Unfortunately this change won't be saved with the save game so you will need to reset it after each game reload or after the "72-hour bug" affects the merchant.

Syntax
 

Example
 

See Also
xIsFemale 
xIsTrader 
xIsTrainer 
xIsProvider 
xGetService 
xSetService 
xModService 
xGetBaseGold 
xGetGold 
xSetGold
Tes3Mod:XSetCharge

A function added by MWSE.

XSetCharge sets the current charge on a 'cast when used' or 'cast when strikes' enchanted item. May not work if the item has never been used. Returns 1 if succesful, 0 if failed.

Syntax
 

Example
 

See Also
xGetOwner 
xGetWeight 
xGetValue 
xGetQuality 
xGetEncumb 
xGetMaxCondition 
xGetCharge 
xGetMaxCharge 
xSetValue 
xSetWeight 
xSetQuality 
xGetCondition 
xSetMaxCondition 
xSetCondition 
xSetMaxCharge
Tes3Mod:XSetCondition

A function added by MWSE.

XSetCondition sets the current condition of armor and weapons. Armor must not be at 100% or this function will fail. It must have already sustained some damage. Returns 1 if successful, 0 if failed.

Syntax
 

Example
 

See Also
xGetOwner 
xGetWeight 
xGetValue 
xGetQuality 
xGetEncumb 
xGetMaxCondition 
xGetCharge 
xGetMaxCharge 
xSetValue 
xSetWeight 
xSetQuality 
xGetCondition 
xSetMaxCondition 
xSetCharge 
xSetMaxCharge
Tes3Mod:XSetGSlong

A function added by MGE XE.

XSetGSlong sets the value of a string game setting. There are no string game settings in the GMST index that comes with MGE XE. CS can export all game settings but first index number will be 1 not 0. To get the correct index number subtract 1 from the one assigned by CS.

Syntax
 

See Also
xGetGS 
XSetGSfloat
Tes3Mod:XSetGold

A function added by MWSE.

xSetGold changes the current amount of barter gold possessed by the NPC (or creature). This value is stored in save game files so it will survive a game reload. Setting this will have no effect if you haven't recently bartered with the NPC/creature. (But setting both this and the base gold amount at the same time will likely do what you want.)

Syntax
 

Example
 

See Also
xIsFemale 
xIsTrader 
xIsTrainer 
xIsProvider 
xGetService 
xSetService 
xModService 
xGetBaseGold 
xGetGold 
xSetBaseGold
Tes3Mod:XSetMaxCharge

A function added by MWSE.

XSetMaxCharge sets the maximum charge on an enchanted item. Returns 1 if successful, 0 if failed.

Syntax
 

Example
 

See Also
xGetOwner 
xGetWeight 
xGetValue 
xGetQuality 
xGetEncumb 
xGetMaxCondition 
xGetCharge 
xGetMaxCharge 
xSetValue 
xSetWeight 
xSetQuality 
xGetCondition 
xSetMaxCondition 
xSetCondition 
xSetCharge
Tes3Mod:XSetMaxCondition

A function added by MWSE.

XSetMaxCondition sets the maxium condition for armor and weapons and maximum uses for lockpicks, probes, and repair tools. Returns 1 if succesful, 0 if failed.

Syntax
 

Example
 

See Also
xGetOwner 
xGetWeight 
xGetValue 
xGetQuality 
xGetEncumb 
xGetMaxCondition 
xGetCharge 
xGetMaxCharge 
xSetValue 
xSetWeight 
xSetQuality 
xGetCondition 
xSetCondition 
xSetCharge 
xSetMaxCharge
Tes3Mod:XSetName

A function added by MWSE.

xSetName uses the value parameter to change the NPC's name. The values changed by this function are not permanent and may be reset after 72-hours or a game reload. Currently only works for NPCs.

After the MWSE update released by Merzasphor, this function can set lockpick names.
Syntax
 

Example
 

See Also
xPCCellID 
xRefID 
xMyCellID 
xGetName 
xGetBaseID 
xStringCompare 
xStringLength 
xStringParse 
xStringBuild 
xStringMatch 
xLogMessage 
xMessageFix
Tes3Mod:XSetProgressLevel

A function from MWSE update by Merzasphor.

Sets the progress to next level. Returns 1 if successful, 0 otherwise. This function will not trigger level up or any other messages.

There are some limits to what you can do with this, because of how the game handles this
and other values.

Progress is stored in memory as a signed long (32 bits, max value = 2147483647).
Progress is stored in the save file as an unsigned char (8 bits, max value = 255)
Progress is cast to a float before being displayed on the character screen.
This appears to be true for iLevelupTotal as well. 

Syntax
 

Example
 

See Also
xGetProgressLevel
Tes3Mod:XSetQuality

A function added by MWSE.

XSetQuality sets the quality of alchemical apparatus, lockpick, probe, and repair tool items. Returns 1 if succesful, 0 if failed.

In v0.9.4a, this function didn't work with lockpicks. This is fixed in the MWSE update released by Merzasphor.
Syntax
 

Example
 

See Also
xGetOwner 
xGetWeight 
xGetValue 
xGetEncumb 
xGetCondition 
xGetMaxCondition 
xGetCharge 
xGetMaxCharge 
xSetValue 
xSetWeight 
xGetQuality 
xSetCondition 
xSetMaxCondition 
xSetCharge 
xSetMaxCharge



MWSE by Merzasphor
Tes3Mod:XSetRef

A function added by MWSE.

xSetRef provides a way of calling object functions where the syntax does not allow it, e.g. "set myalchemyskill to myobject->GetAlchemy" does not work because the original set statement does not allow the use of variables as objects.

Syntax
 

Example
 

See Also
xRefType 
xGetRef 
xGetCombat 
xGetPCTarget 
xFirstNPC 
xFirstItem 
xFirstStatic 
xNextRef
Tes3Mod:XSetService

A function added by MWSE.

xSetService uses the value parameter to change the NPC to offer the set of services represented by the number. The service number values are used and any old services are ignored, so using a value of 8 will make the NPC a bookseller and a value of 131587 (1+2+512+131072) is typical for smiths. The values changed by this function are not permanent and may be reset after 72-hours or a game reload.

Syntax
 

Example
 

See Also
xIsFemale 
xIsTrader 
xIsTrainer 
xIsProvider 
xGetService 
xModService 
xGetBaseGold 
xGetGold 
xSetBaseGold 
xSetGold
Tes3Mod:XSetSunriseSunset

A function added by MGE XE.

XSetSunriseSunset sets sunrise and sunset time and duration. You can also do it by editing morrowind.ini. 
New values are not stored in savegames and will be lost when you exit the game.

Syntax
 

Example
Tes3Mod:XSetTrap

A function from MWSE update by Merzasphor.

Sets a trap. Returns 1 if successful, 0 if not (no trap/lock installed or invalid spellId). Pass 0 to remove an installed trap. There must be a lock installed to set a trap. To set a trap on an object with no lock installed, call Lock 0 and Unlock on the object first.

Traps that are set this way do not persist through saving and loading. If a trap is
removed its removal persists only if the object is activated or its lock is manipulated
before saving. 

If you want to set a trap on a door/container, first check for an existing lock
(xGetLockLevel). If no lock is already installed, use Lock 0, Unlock to create
the lock/trap record. Set the trap. To make sure the trap is persistent, 
manipulate the lock, but then put it back to its original state. In other words,
if the lock is currently unlocked, lock it (use xGetLockLevel to determine the
correct lock level) then unlock it. Do the reverse if it's currently unlocked.

Syntax
 

Example
 

See Also
xGetTrap
Tes3Mod:XSetValue

A function added by MWSE.

xSetValue sets the gold value of the object. Returns 1 if succesful, 0 if failed.

Syntax
 

Example
 

See Also
xGetOwner 
xGetWeight 
xGetEncumb 
xGetQuality 
xGetCondition 
xGetMaxCondition 
xGetCharge 
xGetMaxCharge 
xGetValue 
xSetWeight 
xSetQuality 
xSetCondition 
xSetMaxCondition 
xSetCharge 
xSetMaxCharge
Tes3Mod:XSetWeatherAmbient

A function added by MGE XE.

XSetWeatherAmbient sets the ambient lighting color. You can also do it by editing morrowind.ini. 
New values are not stored in savegames and will be lost when you exit the game. Setting weather data takes effect immediately.

Syntax
 

Example
 

See Also
XSetWeatherSky 
XSetWeatherFog 
XSetWeatherScattering 
XSetWeatherSun
Tes3Mod:XSetWeatherFog

A function added by MGE XE.

XSetWeatherFog sets the fog color. You can also do it by editing morrowind.ini. 
New values are not stored in savegames and will be lost when you exit the game. Setting weather data takes effect immediately.

Syntax
 

Example
 

See Also
XSetWeatherSky 
XSetWeatherAmbient 
XSetWeatherScattering 
XSetWeatherSun
Tes3Mod:XSetWeatherScattering

A function added by MGE XE.

These are two physical coefficients (RGB, but not colours) that control the atmosphere light scattering physics. Outscatter is a multiplier for colour lost as a light ray travels through atmosphere. Inscatter is secondary light from the sky scattered toward the viewer as a light ray travels through atmosphere.
Defaults: outscatter = (0.07, 0.36, 0.76), inscatter = (0.25, 0.38, 0.48). High quality sky scattering has to be enabled in MGE XE for this function to work.

Syntax
 

See Also
XSetWeatherSky 
XSetWeatherFog 
XSetWeatherSun 
XSetWeatherAmbient
Tes3Mod:XSetWeatherSky

A function added by MGE XE.

XSetWeatherSky sets the sky color. You can also do it by editing morrowind.ini. 
New values are not stored in savegames and will be lost when you exit the game. Setting weather data takes effect immediately.

Syntax
 

Example
 

See Also
XSetWeatherFog 
XSetWeatherAmbient 
XSetWeatherScattering 
XSetWeatherSun
Tes3Mod:XSetWeatherSun

A function added by MGE XE.

XSetWeatherSun sets the sunlight color. You can also do it by editing morrowind.ini. 
New values are not stored in savegames and will be lost when you exit the game. Setting weather data takes effect immediately.

Syntax
 

Example
 

See Also
XSetWeatherSky 
XSetWeatherFog 
XSetWeatherScattering 
XSetWeatherAmbient
Tes3Mod:XSetWeight

A function added by MWSE.

XSetWeight sets the weight of the object. Returns 1 if successful, 0 if failed.

In v0.9.4a, this function didn't work with lockpicks. This is fixed in the MWSE update released by Merzasphor.
Syntax
 

Example
 

See Also
xGetValue 
xGetOwner 
xGetEncumb 
xGetQuality 
xGetCondition 
xGetMaxCondition 
xGetCharge 
xGetMaxCharge 
xSetValue 
xGetWeight 
xSetQuality 
xSetCondition 
xSetMaxCondition 
xSetCharge 
xSetMaxCharge
Tes3Mod:XSin

A function added by MWSE.

xSin returns the sine of the angle (which given in radians).

Syntax
 

Example
 

See Also
xDistance 
xSqrt 
xHypot 
xDegRad 
xRadDeg 
xCos 
xTan 
xArcCos 
xArcSin 
xArcTan
Tes3Mod:XSpellList

A function from MWSE update by Merzasphor.

Iterates through the target's spell list. Call with curr = 0 to retrieve the head of the list. This only works for NPCs and the player.

Syntax
 

totalSpellCount: total number of spells the target knows
 next: reference to the next spell in the list. next = 0 when at the end of the list.

Example
Tes3Mod:XSqrt

A function added by MWSE.

xSqrt returns the square root of the value. (Use Tribunal's GetSquareRoot instead.)

Syntax
 

Example
 

See Also
xDistance 
xHypot 
xDegRad 
xRadDeg 
xCos 
xSin 
xTan 
xArcCos 
xArcSin 
xArcTan
Tes3Mod:XStartCombat

A function added by MWSE.

xStartCombat is a wrapper for the original StartCombat to take variables.

Syntax
 

Example
 

See Also
xAITravel 
xPlace 
xPosition 
xPositionCell
Tes3Mod:XStringBuild

A function added by MWSE.

xStringBuild returns a new string that is constructed based on the format string and any other variable values as needed. The format string is similar to those for MessageBox with % indicating some special character or variable substitution. Some patterns can be used to place special characters into the string: 

%%	a single % sign is placed in the string.

%n	a new line marker (CR/LF) is placed in the string.

%q	a " quotation mark is placed in the string.

The rest are used to insert values from the remaining parameters into the output string. 

%d	a short or long value is inserted as a decimal integer.

%h	a short or long value is inserted as a hexadecimal integer.

%f	a float value is inserted as real decimal number.

%s	a string value is inserted.

%l	a long value is inserted as a four character string.

The uppercase forms %N, %Q, %D, %H, %F, %S, and %L also work. The float specifier takes a precision specifier just like the MessageBox command. The format "%.3f" will print a floating point value with three digits after the decimal point. The string specifier can take two numbers in its specifier. 

%2s	skips the first two characters of the string, but inserts the rest.

%.3s	inserts only three characters of the string.

%4.5s	skips 4 characters, then inserts the next 5 characters of the string.

The compiler doesn't currently support more than 12 parameters at a time.

The format string is limited to 64 characters. 

Following example outputs "Hello, World!" messagebox.

Syntax
 

Example 1
 

Example 2
 

See Also
xPCCellID 
xRefID 
xMyCellID 
xGetName 
xSetName 
xGetBaseID 
xStringCompare 
xStringLength 
xStringParse 
xStringMatch 
xLogMessage 
xMessageFix
Tes3Mod:XStringCompare

A function added by MWSE.

xStringCompare compares the two strings based on alphabetical order and returns 0 if they are equal, a negative number if the first string would appear first, and a postive number if the second string would appear first.

Syntax
 

Example
 

See Also
xPCCellID 
xRefID 
xMyCellID 
xGetName 
xSetName 
xGetBaseID 
xStringLength 
xStringParse 
xStringBuild 
xStringMatch 
xLogMessage 
xMessageFix
Tes3Mod:XStringLength

A function added by MWSE.

xStringLength returns the number of characters in the input string.

Syntax
 

Example
 

See Also
xPCCellID 
xRefID 
xMyCellID 
xGetName 
xSetName 
xGetBaseID 
xStringCompare 
xStringParse 
xStringBuild 
xStringMatch 
xLogMessage 
xMessageFix
Tes3Mod:XStringParse

A function added by MWSE.

xStringParse identifies and extracts data from the source string based on the pattern string. The first return value is a long indicating how much of the pattern matched successfully. The values matched by the pattern will then be returned in order. For example, the following statement will put value of 37 in the long variable lval, a value of 2.4 in the float variable fval, the string "Golden Egg" in the string variable sval, and the value 4 into matches to indicated that all of the pattern successfully matched. For example: 

setx matches lval fval sval to xStringParse "%d %f %s" "37 2.4 Golden Egg"

Following command, however, will put the whole string in the string variable.

setx matches sval lval fval to xStringParse "%s %d %f" "GoldenEgg 37 2.4"

In the pattern string, all of the special features begin with a % symbol. Some, simply match special characters that can't otherwise be typed in the pattern string.
 
The rest return the values matched so they can be stored in variables with setx.
 

The uppercase forms %N, %Q, %D, %H, %F, %S, and %L also work. Only one of these takes a precision specifier, and it is best explained by examples: 

setx matches sval lval to xStringParse "%.0s_%d" "gold_001"

In this case, the special pattern "%.0s" is followed by a "_" character, so only "gold" will be stored in the string sval, a value of 1 will be in lval, and matches will be 3. Matches is normally one more than the number of values returned to indicated that in addition to filling all of the variables the entire pattern was matched successfully. You could use a pattern simply for string comparison. 

setx matches lval to xStringParse "%d Apples" somestring

If the somestring variable really holds the string "43 Apples" then matches will be 2 to indicate that the pattern was matched completely. If somestring were "47 Pears" then matches will be 1 to indicate that the first variable was filled (with 47) but that the rest of the pattern failed to match. If somestring were "Hello" then matches will be 0 to indicate that not even the first variable was filled correctly.
Syntax
 

Example
Following code is replacement for command "set random_number to random var" since function "random" does not accept variables.
 

See Also
xPCCellID 
xRefID 
xMyCellID 
xGetName 
xSetName 
xGetBaseID 
xStringCompare 
xStringLength 
xStringBuild 
xStringMatch 
xLogMessage 
xMessageFix
Tes3Mod:XTan

A function added by MWSE.

xTan returns the tangent of the angle (which given in radians).

Syntax
 

Example
 

See Also
xDistance 
xSqrt 
xHypot 
xDegRad 
xRadDeg 
xCos 
xSin 
xArcCos 
xArcSin 
xArcTan
Tes3Mod:XTextInput

A function added by MWSE.

xTextInput allows you to directly read keyboard input from the user and the results will be returned as a string. Pass a string and a virtual key code to the function. The function will wait for a key to be pressed and then take one of three actions. If the key pressed matches the endcode parameter, the string and its length are returned. If the key pressed is a printable ASCII character, the character is added to the string and the string and the number 0 are returned. If the key is RETURN or BACKSPACE, a new line is started or one character is removed from the string, and the modifed string and a 0 are returned. The function returns after each key press so that the current value of the string can be shown with xMessageFix and MessageBox but the string should only be used normally after the length is returned. Player controls should be disabled while this function is used.

Syntax
 

Example
 

See Also
xKeyPressed 
xTextInputAlt
Tes3Mod:XTextInputAlt

A function added by MWSE.

xTextInputAlt is identical to xTextInput except that the function simply checks the status of keys and returns immediately rather than waiting for a key to be pressed.

Syntax
 

Example
  

See Also
xKeyPressed 
xTextInput
Tes4Mod:3 Special Numbers

3 Special Numbers



Description

Meet the Association of the Crossed Quill. A large organization committed to protecting Tamriel. For the most part they are more of a deal making agency than "big sword" folks. But a recent event has created a need to hire a brave adventurer. Someone willing to travel to new locations. Someone willing to face the kind of danger never before seen. Could it be you?

All you have to do is retrieve 3 special numbers to open a combination chest. Sounds simple right? Guess again....

"3 Special Numbers" adds three significant new adventures; all wrapped around one integrated story line. There are three new locations, three new NPC's to meet and work with, and some of the meanest opponents you're likely to fight. Be careful out there. It also introduces you to a new faction and two new creatures. Completing this quest provides as your final prize a brand new Lightning sword that looks and works fantastic (better damage than Glass, not quite as good as Daedric.. but much lighter than Glass!). 

The concept of this mod is to create a deep roleplay opportunity, with fighting opportunities that are challenging. All opponents you will encounter are leveled, so there will be good confrontation whatever your current playing level is. But be warned, they will all fight much better than you're use to in vanilla Oblivion, so be on your toes!

This mod will provide 3 to 4 hours of play time. Some of that time will be spent quietly figuring out puzzles. Some will be spent intensely slashing and hacking for your very life. Have fun!


Patches/Addons
 

Notes
Tes4Mod:A Bloody Night

A Bloody Night



Description
Kalin Darkmoor has witnessed a mass-assassination by a member of the Black Hand. He escapes the city of Skingrad to hide in an abandoned mine. The player must track down the assassin.


Patches/Addons
 

Notes
This mod makes dirty edits to Brodras and removes the teleport marker from the door between Abandoned Mine and Abandoned Mine 02.
Tes4Mod:A Brotherhood Renewed

A Brotherhood Renewed



Description

"The Cheydinhal Sanctuary is but one of many secret Dark Brotherhood safe havens spread across the Imperial Province."

You've completed your contracts. You rose through the ranks. Lucien entrusted you with his life. After a long and difficult struggle, you saved the Dark Brotherhood from total annihilation. All that remains of the once proud and powerful organization are you, Arquen, and some lowly random murderer the two of you found. After all this you're satisfied with visiting Bravil once a week to collect a pittance of cash? Is there nothing more to be done? The story just ends here, like a bad movie? Not anymore. The time has come to reclaim lost power, to retake lost sanctuaries. To renew the Dark Brotherhood.

This mod adds a short series of quests to the end of the saga of the Dark Brotherhood which takes place after your first visit to Bravil after becoming the Listener. I always felt that Bethesda cut things short at the end of the quest line. You're just supposed to continue on, as though nothing was wrong, after your entire organization was brought to its knees? What about all those sanctuaries out there the game makes a point of mentioning but you never see? This is my answer to that and at least brings things to a more sensible close by the time you are done.

You may install this at any point during the game, it is not necessary to wait for the end of the quest line. In fact, some of the involved characters will exist and be out in the game world prior to everything turning for the worst. You may not even realize who they are when you find them. Once you have made it to the end of the quest line and visit the Night Mother statue in Bravil at least once, the events will begin. You will be approached by a courier to start things off.


Patches/Addons
 

Notes
Not compatible with Dark Brotherhood Chronicles; may or may not be compatible with Return of the Dark Brotherhood.
Tes4Mod:A Change in Management

A Change in Management



Description
Somewhere in Bravil, a scared Khajiit woman needs your help. 

If you need more direction: Look in The Lonely Suitor Lodge for a new guest.

Patches/Addons
 

Notes
This mod deletes Earana's topic about Fingers of the Mountain and the basement (walls/floor/ceiling) in Three Sisters Lodge in Leyawiin (fortunately, these are easy to restore with TES4Edit).