MWSE

From OpenMW Wiki
Jump to: navigation, search

This page contains a list of all functions added by the Morrowind Script Extender (MWSE) and their current status in OpenMW. There are no plans to implement any MWSE functions before the 1.0 release, and we may even completely skip their integration into our engine in order to avoid doubled functions and additional bug-fixing.

You may also want to check out one of the following pages:

Function list

Function Syntax Variables Category OpenMW Status Comments
xAITravel ref->xAITravel x y z float x, y, z AI & Movement Not started Wrapper for the original function to allow variables.
xPlace new_object: xPlace objectID reference new_object
string objectId
AI & Movement Not started
xPosition ref->xPosition x y z rotation float x, y, z, rotation AI & Movement Not started Wrapper for the original function to allow variables.
xPositionCell ref->xPositionCell x y z rotation cellName float x, y, z, rotation
string cellName
AI & Movement Not started Wrapper for the original function to allow variables.
xStartCombat ref->xStartCombat target reference target AI & Movement Not started Wrapper for the original function to allow variables.
xGetBaseAgi agility: ref->xGetBaseAgi float agility Attributes Not started
xGetBaseEnd endurance: ref->xGetBaseEnd float endurance Attributes Not started
xGetBaseInt intelligence ref->xGetBaseInt float intelligence Attributes Not started
xGetBaseLuc luck: ref->xGetBaseLuc float luck Attributes Not started
xGetBasePer personality: ref->xGetBasePer float personality Attributes Not started
xGetBaseSpe speed: ref->xGetBaseSpe float speed Attributes Not started
xGetBaseStr strength: ref->xGetBaseStr float strength Attributes Not started
xGetBaseWil willpower: ref->xGetBaseWil float willpower Attributes Not started
xFileReadFloat I/O Not started
xFileReadLong I/O Not started
xFileReadShort I/O Not started
xFileReadString I/O Not started
xFileReadText I/O Not started
xFileWriteFloat xFileWriteFloat "fileName" value string fileName
float value
I/O Not started
xFileWriteLong xFileWriteLong "fileName" value string fileName
long value
I/O Not started
xFileWriteShort xFileWriteShort "fileName" value string fileName
short value
I/O Not started
xFileWriteString xFileWriteString "fileName" "text" string fileName, text I/O Not started
xFileWriteText xFileWriteText "fileName" "text1" "text2" … string fileName, text1, text2, … I/O Not started
xFileRewind xFileRewind "fileName" string fileName I/O Not started
xFileSeek xFileSeek "fileName" offset string fileName
long offset
I/O Not started
xAddItem ref->xAddItem objectId count string objectId
long count
Inventory Not started Wrapper for the original function to allow variables.
xAddSpell ref->xAddSpell spellId count string spellId
long count
Inventory Not started Wrapper for the original function to allow variables.
xContentList Inventory Not started
xDrop ref->xDrop objectId count string objectId
long count
Inventory Not started Wrapper for the original function to allow variables.
xEquip ref->xEquip objectId string objectId Inventory Not started Wrapper for the original function to allow variables.
xHasItemEquipped equipped: ref->xHasItemEquipped objectId long equipped
string objectId
Inventory Not started
xInventory Inventory Not started
xNextStack Inventory Not started
xRemoveItem ref->xRemoveItem objectId count string objectId
long count
Inventory Not started Wrapper for the original function to allow variables.
xRemoveSpell ref->xRemoveSpell spellId count string spellId
long count
Inventory Not started Wrapper for the original function to allow variables.
xGetCharge charge: ref->xGetCharge float charge Item Properties Not started
xGetCondition condition: ref->xGetCondition long condition Item Properties Not started
xGetEncumb encumbrance: ref->xGetEncumb float encumbrance Item Properties Not started
xGetMaxCharge charge: ref->xGetMaxCharge float charge Item Properties Not started
xGetMaxCondition condition: ref->xGetMaxCondition long condition Item Properties Not started
xGetOwner owner: ref->xGetOwner string owner Item Properties Not started
xGetOwnerInfo Item Properties Not started
xGetQuality quality: ref->xGetQuality float quality Item Properties Not started
xGetValue value: ref->xGetValue long value Item Properties Not started
xGetWeight weight: ref->xGetWeight float weight Item Properties Not started
xSetCharge success: ref->xSetCharge charge long success, charge Item Properties Not started
xSetCondition success: ref->xSetCondition charge long success, condition Item Properties Not started
xSetMaxCharge success: ref->xSetMaxCharge charge long success, charge Item Properties Not started
xSetMaxCondition success: ref->xSetMaxCondition charge long success, condition Item Properties Not started
xSetQuality success: ref->xSetQuality quality long success
float quality
Item Properties Not started
xSetValue success: ref->xSetValue value long success, value Item Properties Not started
xSetWeight success: ref->xSetWeight weight long success
float weight
Item Properties Not started
xKeyPressed Keyboard Input Not started
xTextInput Keyboard Input Not started
xTextInputAlt Keyboard Input Not started
xArcCos radian: xArcCos cosine float radian, cosine Math Not started
xArcSin radian: xArcSin sine float radian, sine Math Not started
xArcTan radian: xArcSin tangent float radian, tangent Math Not started
xCos cosine: xCos radian float cosine, radian Math Not started
xDegRad radian: xDegRad degree float radian, degree Math Not started
xDistance distance: ref->xDistance target float distance
reference target
Math Not started
xHypot hypotenuse: xHypot a b float hypotenuse, a, b Math Not started
xRadDeg degree: xRadDeg radian float degree, radian Math Not started
xSin sine: xSin radian float sine, radian Math Not started
xSqrt root: xSqrt x float root, x Math Not started
xTan tangent: xTan radian float tangent, radian Math Not started
xGetBaseGold gold: ref->xGetBaseGold long gold NPCs Not started
xGetGold gold: ref->xGetGold long gold NPCs Not started
xGetService NPCs Not started
xIsFemale female: ref->xIsFemale long female NPCs Not started
xIsProvider provider: ref->xIsProvider long provider NPCs Not started
xIsTrader trader: ref->xIsTrader long trader NPCs Not started
xIsTrainer trainer: ref->xIsTrainer long trainer NPCs Not started
xModService NPCs Not started
xSetBaseGold ref->xSetBaseGold gold long gold NPCs Not started
xSetGold ref->xSetGold gold long gold NPCs Not started
xSetService NPCs Not started
xFirstItem reference: xFirstItem long reference References Not started
xFirstNPC reference: xFirstNPC long reference References Not started
xFirstStatic reference: xFirstStatic long reference References Not started
xGetCombat reference: ref->xGetCombat long reference References Not started
xGetPCTarget reference: xGetPCTarget long reference References Not started
xGetRef reference: ref->xGetRef objectId long reference
string objectId
References Not started
xNextRef reference: xNextRef current reference/long current References Not started
xRefType type: ref->xRefType long type References Not started
xSetRef xSetRef reference long reference References Not started
xGetBaseID objectId: ref->xGetBaseID string objectId Strings Not started
xGetName name: ref->xGetName string name Strings Not started
xLogMessage xLogMessage "text1" "text2" … string text1, text2, … Strings Not started
xMessageFix Strings Not started
xMyCellID cellId: ref->xMyCellID string cellId Strings Not started
xPCCellID cellId: xPCCellID string cellId Strings Not started
xRefID objectId: ref->xRefID string objectId Strings Not started
xSetName ref->xSetName newName string newName Strings Not started
xStringBuild Strings Not started
xStringCompare order: xStringCompare s1 s2 long order
string s1, s2
Strings Not started
xStringLength length: xStringLength text long length
string text
Strings Not started
xStringMatch match: xStringMatch source pattern long match
string source, pattern
Strings Not started
xStringParse Strings Not started
MGEDisableShader MGE XE Not started
MGEEnableShader MGE XE Not started
MGEShaderSetFloat MGE XE Not started
MGEShaderSetLong MGE XE Not started
MGEShaderSetVector MGE XE Not started
XGetGS gameSetting: XGetGS IndexNumber float gameSetting
long indexNumber
MGE XE Not started
XSetGSfloat XSetGSfloat indexNumber gameSetting long indexNumber
float gameSetting
MGE XE Not started
XSetGSlong XSetGSlong indexNumber text long indexNumber
string text
MGE XE Not started
XSetSunriseSunset XSetSunriseSunset sunriseTime sunriseDuration sunsetTime sunsetDuration float sunriseTime, sunriseDuration
float sunsetTime, sunsetDuration
MGE XE Not started
XSetWeatherAmbient XSetWeatherAmbient weatherId timeEnum red green blue float weatherId, timeEnum
float red, green, blue
MGE XE Not started
XSetWeatherFog XSetWeatherFog weatherId timeEnum red green blue float weatherId, timeEnum
float red, green, blue
MGE XE Not started
XSetWeatherScattering XSetWeatherScattering out_red out_green out_blue in_red in_green in_blue float out_red, out_green, out_blue
float in_red, in_green, in_blue
MGE XE Not started
XSetWeatherSky XSetWeatherSky weatherId timeEnum red green blue float weatherId, timeEnum
float red, green, blue
MGE XE Not started
XSetWeatherSun XSetWeatherSun weatherId timeEnum red green blue float weatherId, timeEnum
float red, green, blue
MGE XE Not started
xExplodeSpell ref->xExplodeSpell spellId string spellId Merzasphor's Update Not started
xFloatsToLong value: xFloatsToLong val1 val2 long value
float val1, val2
Merzasphor's Update Not started
xGetBaseAcrobatics value: ref->xGetBaseAcrobatics float value Merzasphor's Update Not started
xGetBaseAlchemy value: ref->xGetBaseAlchemy float value Merzasphor's Update Not started
xGetBaseAlteration value: ref->xGetBaseAlteration float value Merzasphor's Update Not started
xGetBaseArmorer value: ref->xGetBaseArmorer float value Merzasphor's Update Not started
xGetBaseAthletics value: ref->xGetBaseAthletics float value Merzasphor's Update Not started
xGetBaseAxe value: ref->xGetBaseAxe float value Merzasphor's Update Not started
xGetBaseBlock value: ref->xGetBaseBlock float value Merzasphor's Update Not started
xGetBaseBluntWeapon value: ref->xGetBaseBluntWeapon float value Merzasphor's Update Not started
xGetBaseConjuration value: ref->xGetBaseConjuration float value Merzasphor's Update Not started
xGetBaseDestruction value: ref->xGetBaseDestruction float value Merzasphor's Update Not started
xGetBaseEnchant value: ref->xGetBaseEnchant float value Merzasphor's Update Not started
xGetBaseHandToHand value: ref->xGetBaseHandToHand float value Merzasphor's Update Not started
xGetBaseHeavyArmor value: ref->xGetBaseHeavyArmor float value Merzasphor's Update Not started
xGetBaseIllusion value: ref->xGetBaseIllusion float value Merzasphor's Update Not started
xGetBaseLightArmor value: ref->xGetBaseLightArmor float value Merzasphor's Update Not started
xGetBaseLongBlade value: ref->xGetBaseLongBlade float value Merzasphor's Update Not started
xGetBaseMarksman value: ref->xGetBaseMarksman float value Merzasphor's Update Not started
xGetBaseMediumArmor value: ref->xGetBaseMediumArmor float value Merzasphor's Update Not started
xGetBaseMercantile value: ref->xGetBaseMercantile float value Merzasphor's Update Not started
xGetBaseMysticism value: ref->xGetBaseMysticism float value Merzasphor's Update Not started
xGetBaseRestoration value: ref->xGetBaseRestoration float value Merzasphor's Update Not started
xGetBaseSecurity value: ref->xGetBaseSecurity float value Merzasphor's Update Not started
xGetBaseShortBlade value: ref->xGetBaseShortBlade float value Merzasphor's Update Not started
xGetBaseSneak value: ref->xGetBaseSneak float value Merzasphor's Update Not started
xGetBaseSpear value: ref->xGetBaseSpear float value Merzasphor's Update Not started
xGetBaseSpeechcraft value: ref->xGetBaseSpeechcraft float value Merzasphor's Update Not started
xGetBaseUnarmored value: ref->xGetBaseUnarmored float value Merzasphor's Update Not started
xGetClass Merzasphor's Update Not started
xGetEnchant Merzasphor's Update Not started
xGetEnchantEffectInfo Merzasphor's Update Not started
xGetEnchantInfo Merzasphor's Update Not started
xGetLockLevel lockLevel: ref->xGetLockLevel short lockLevel Merzasphor's Update Not started
xGetOwnerInfo type id rankVar: ref->xGetOwnerInfo long type, id, rankVar Merzasphor's Update Not started
xGetProgressLevel value: ref->xGetProgress long value Merzasphor's Update Not started
xGetSpell result: ref.>xGetSpell spellId short result
string/long spellId
Merzasphor's Update Not started
xGetSpellEffectInfo Merzasphor's Update Not started
xGetSpellInfo Merzasphor's Update Not started
xGetTrap spellId name cost: ref->xGetTrap long spellId, name
short cost
Merzasphor's Update Not started
xLongToFloats val1 val2: xLongToFloats value float val1, val2
long value
Merzasphor's Update Not started
xSetProgressLevel ref->xSetProgess value long value Merzasphor's Update Not started
xSetTrap success: ref->xSetTrap spellId short success
string/long spellId
Merzasphor's Update Not started
xSpellList Merzasphor's Update Not started

Legend

Not started Work on this function has not started yet.
Placeholder This function has been implemented but the engine feature which is controlled by it is not available yet. See the entry's comment for more information.
Implemented This function has already been implemented.
Removed This function will not be implemented because either OpenMW provides a better solution to achieve the same functionality or it has no purpose in OpenMW. See the entry's comment for more information.