Difference between revisions of "OBSE Wish List"

Jump to navigation Jump to search
13,019 bytes removed ,  10:39, 6 January 2010
Moved a lot of stuff to the wishlist
imported>Argomirr
imported>Shademe
(Moved a lot of stuff to the wishlist)
Line 13: Line 13:
Tweaks to functions already present in the scripting language:
Tweaks to functions already present in the scripting language:


*'''SetDebugMode''' - This function currently accepts the mod index to enable debugging on, and a boolean value as to whether debugging should be enabled or disabled.  Changing the boolean value to an integer would provide greater functionality, such that 0 = turn off debugging, 1 = debug to console only, 2 = debug to log file only (see below), and 3 = debug to console and log file.  In short, it would provide the ability to write mod-generated debug text to a log file.  Perhaps the log file could be called "OBSE<ModIndex><Date><Time>.log", and would be created in the OBSE subdirectory of the Oblivion\Data\ folder, but these are just suggestions, this format can and should be altered to meet with OBSE standards and conventions.  Also, each entry in the log file should have a timestamp written before each line.
*'''PlayMagicShaderWeapon''' - Similar to the standard "PlayMagicShaderVisuals", but plays a magic shader only on an actor's equipped weapon; Not the body, not the scabbard, just the weapon.  Like an enchantment shader.  Could be abbreviated to "pmsw", much like how the template can be shortened to "pms".  May require a contingency for when the equipped weapon are unarmed/fists (IE: nothing happens).
*'''PlayMagicShaderWeapon''' - Similar to the standard "PlayMagicShaderVisuals", but plays a magic shader only on an actor's equipped weapon; Not the body, not the scabbard, just the weapon.  Like an enchantment shader.  Could be abbreviated to "pmsw", much like how the template can be shortened to "pms".  May require a contingency for when the equipped weapon are unarmed/fists (IE: nothing happens).
*'''StopMagicShaderWeapon''' - The counterpart to the above command, it acts like "StopMagicShaderVisuals".  Like its template, and like the counterpart requested function, it could be shortened to "smsw" for convenience.
*'''StopMagicShaderWeapon''' - The counterpart to the above command, it acts like "StopMagicShaderVisuals".  Like its template, and like the counterpart requested function, it could be shortened to "smsw" for convenience.
Line 19: Line 18:
*'''castNoAnim''' - When called on an actor, the actor casts the spell without playing the casting animation.
*'''castNoAnim''' - When called on an actor, the actor casts the spell without playing the casting animation.


*'''messageNoDelay''' - causes the message to be displayed immediately, even if another message is currently being displayed.
*'''castut''' - when called, the actor casts a spell in the direction he/she is facing without needing a target.
*'''castut''' - when called, the actor casts a spell in the direction he/she is facing without needing a target.
*'''[ref].On[blocktype] [ObjectID]''' Would be used as a block type in quest scripts which would run as if the block type is used in the reference or object's script.
*'''[ref].On[blocktype] [ObjectID]''' Would be used as a block type in quest scripts which would run as if the block type is used in the reference or object's script.
*'''GetPlayerCameraAngle''' - Like GetAngle Z except detects the angle the player is looking instead of the angle the horse is heading when the player is on horseback.
** player.getHeadingAngle horseRef could be useful here.
*'''DeleteClonedForm''' - Delete the reference and base object of a cloned form like DeleteFullActorCopy
*'''DeleteClonedForm''' - Delete the reference and base object of a cloned form like DeleteFullActorCopy
*'''SetObjectAlpha''' - Just like SetActorAlpha except works on any object, not just actors.
*'''SetObjectAlpha''' - Just like SetActorAlpha except works on any object, not just actors.
Line 32: Line 28:
*'''EnablePlayerControls2/DisablePlayerControls2''' - Acts like the original functions but without hiding UI.
*'''EnablePlayerControls2/DisablePlayerControls2''' - Acts like the original functions but without hiding UI.
*'''Resurrect2''' - Like Resurrect but doesn't remove all of your abilities when called on the player.
*'''Resurrect2''' - Like Resurrect but doesn't remove all of your abilities when called on the player.
*'''GetDisease''' - Return if the calling actor gets diseased.
*'''Activate2''' - Exactly like Activate but with an unlimited nesting limit (currently only 4-5 scripts started with '''Ref.Activate player, 1''' will run at once while there is no limit on result scripts). Would be great if it was also bug free - [[Crashes#Activating_a_Container_.28including_NPC.29|safely use the ''RunOnActivate'' flag with containers]] and [[Activate#Buggy Bug Bug of a Weird Weird Bug|using the ''RunOnActivate'' flag on any object without an onActivate block won't stop it from being normally activated]].
* (projectile:ref) '''Cast2''' - a [[Cast]] function which simultaneously returns the projectile of the spell just launched.
* '''CastByPlayer''' - combine a [[Cast]] call with [[SetPlayerProjectile]] call on the projectile fired by the Cast, to avoid having to loop through references to find the projectile cast.
* '''PushActorAway2''' - just like [[PushActorAway]] except that the calling ref don't have to be an [[Actor]]
* '''PushActorAway2''' - just like [[PushActorAway]] except that the calling ref don't have to be an [[Actor]]


==Modifications/Extensions of OBSE Functions==
==Modifications/Extensions of OBSE Functions==
*Add the ''Simple'' Quality to Spells and enchantments.  The ''SetIconPath'' function could be used to make custom script effects less monotonous.
 
*'''GetModVersion/fModVersion''' - fModVersion is a variable that is available uniquely to any mod, and can be set from any script in that mod (thinking along the lines of fQuestDelayTime for quest scripts).  Then, any mod (including the original) can call GetModVersion, passing the esp ID or the mod's filename, to return the version of that plugin (though it's artificial; the modder explicitly sets the version by defining the fModVersion variable).  This would greatly aid in creating mods that are meant to be compatible with multiple versions of another mod.  If fModVersion is too difficult to implement, SetModVersion could be a function that has the same effect as setting fModVersion manually.
*'''GetUnusedLabel''' - Return an unused label number. If we run out of label numbers, return -1. Looping is absolutely great, but when using ''label'' & ''goto'' in stage functions, I found it would be a problem that I had to specify the label number. I couldn't assure that label numbers I used were unused. So I think it'd be helpful to this kind of situation.
**NOTE: It is rare that two scripts will be running at the same time: result/stage scripts, and scripts started with '''Ref.Activate player, 1''' are the only known scripts that can run while another script is running. There was a brief discussion in an OBSE thread, starting from [http://www.bethsoft.com/bgsforums/index.php?s=&showtopic=670186&view=findpost&p=9667117 this post].
*'''GetMouseX/GetMouseY''' - Returns current mouse position.
*'''MagicItemHasEffectAndActorValue(/Code/Count/CodeCount)''' - Returns whether the magic item has the specific effect and actor value (i.e., the magic item has "Fortify Intelligence", rather than the magic effect "Fortify Attribute"). Also accepts 256/No Actor Value. (This would really help for effect sorting scripts --[[User:Haama|Haama]] 17:15, 13 November 2007 (EST))
*'''CopyName for Magic Effects''' - Copies the name of the magic effect unto an item. Might also be able to get around this by making a function that returns the reference of the magic effect, and feeding that reference to the standard CopyName.
*'''IsKeyPressed2+3''' - IsKeyPressed2 can pick up tapped keys, IsKeyPressed3/IsControlPressed can pick up disabled keys. Combining them into one IsKeyPressed4 function would be nice, but more to the point being able to do both with an IsControlPressed2 would make coding much easier.
*'''IsKeyPressed2+3''' - IsKeyPressed2 can pick up tapped keys, IsKeyPressed3/IsControlPressed can pick up disabled keys. Combining them into one IsKeyPressed4 function would be nice, but more to the point being able to do both with an IsControlPressed2 would make coding much easier.
*'''MessageBoxEx Force Upper/Lower case''' - Add two new commands - %u and %l - to force the first character of a variable to be either upper or lower case. For example, using %u %pp at the start of a sentence would print as His, Her ot Its, instead of his, her or its.
*'''MessageBoxEx Force Upper/Lower case''' - Add two new commands - %u and %l - to force the first character of a variable to be either upper or lower case. For example, using %u %pp at the start of a sentence would print as His, Her ot Its, instead of his, her or its.
Line 51: Line 37:
*'''SetRaceNthSpell''' - Sets the race's Nth spell. Useful for adding spells to races without conflicting with other mods, when used in combination with GetRaceSpellCount.
*'''SetRaceNthSpell''' - Sets the race's Nth spell. Useful for adding spells to races without conflicting with other mods, when used in combination with GetRaceSpellCount.
*'''MessageBoxEx Silent Menu''' - Add a way to set the box to silent, so no sound plays when the menu pops up and no sound plays when you click a button. Useful for mods where you want to play your own custom sound for just one menu, or want to play a sound while the menu is there, without being cut off by the sound the MessageBox makes.
*'''MessageBoxEx Silent Menu''' - Add a way to set the box to silent, so no sound plays when the menu pops up and no sound plays when you click a button. Useful for mods where you want to play your own custom sound for just one menu, or want to play a sound while the menu is there, without being cut off by the sound the MessageBox makes.
*'''SetNthActiveEffectCaster''' - If we can set the caster, we could use activator to cast spells then set the caster to which ever actor we wish and achieve a total silent spell with out any casting animation.


==Console Functions==
Existing console functions made available in scripts, or useful new console functions:
*'''AutosaveSlot [Slot Number]''' - An alternative to SaveGame, saves the game to the name "autosave #" where # is the integer given by Slot Number. This way someone can make a mod where you can press a button to autosave, cycling through 5/10/15 slots. It's safer than SaveGame and more convenient.
*'''PRID [referenceID]''' - This function would be hugely useful in scripts, allowing you to specify the reference on which subsequent functions would be run.
*'''TM''' - toggles the HUD/Interface.  Can be useful in cut scenes.
*'''GetFormID/GetObjectID [formID|objectID]''' - In the console, converts a formID to an objectID and vice-versa. Mainly useful for debugging.
*'''EnableConsoleMessage/DisableConsoleMessage''' - While disabling console messages, no incoming messages will be shown. Useful for debug to filter the console messages. And can be used to avoid the spam sent by some functions like ''RemoveSpell'' and ''GetNumItems''. I hope it can be also used in scripts.


==Language Enhancements==
==Language Enhancements==
Line 72: Line 50:
Functions dealing with music and sound:
Functions dealing with music and sound:
*'''stopSound''' - stops a looping sound from playing.
*'''stopSound''' - stops a looping sound from playing.
*<s>'''PlayMusic''' - [[StreamMusic]] is horribly buggy. A cleaner version which overrides combat music would be ideal.</s> - Fixed with the plugin SoundCommands
*'''StopMusic''' - stops a mp3 file played with the above or with [[StreamMusic]].
*'''GetMusicPlaying''' - returns the filename of the currently playing track?
*'''PlayEffectSound Effect SoundType''' - Plays the sound effect of a spell effect. SoundType is an integer that determines if it plays the cast, bolt, hit, or area sound.
*'''EnableTrivialSound/DisableTrivialSound''' - While disabling trivial sounds, the sounds played by the functions in scripts like ''AddItem, RemoveItem, EquipItem, Activate'' (while picking up items), and even for the actions done by the player like while equiping or picking up items. Mainly for script writers to avoid these interface sounds with a simple way when they want something to be done in the background.
*'''EnableTrivialSound/DisableTrivialSound''' - While disabling trivial sounds, the sounds played by the functions in scripts like ''AddItem, RemoveItem, EquipItem, Activate'' (while picking up items), and even for the actions done by the player like while equiping or picking up items. Mainly for script writers to avoid these interface sounds with a simple way when they want something to be done in the background.


Line 81: Line 55:
Functions dealing with combat, crime, detection, and AI:
Functions dealing with combat, crime, detection, and AI:
*'''setHitBy''' ''actorID, damage'' - damages the actor and updates AI as if the calling actor had attacked them. The [[Kill]] function might provide a shortcut to implementing this function, as it allows an actorID parameter to be specified as the attacker.
*'''setHitBy''' ''actorID, damage'' - damages the actor and updates AI as if the calling actor had attacked them. The [[Kill]] function might provide a shortcut to implementing this function, as it allows an actorID parameter to be specified as the attacker.
*'''getCaster''' - in a scripted spell, returns a reference to the object or actor which cast the spell.
*'''getBodyPartHit''' - returns the body part hit by an attack - hands, torso, head, etc. The game engine apparently randomly picks one, then checks the armor rating of that body part to calculate damage.
*'''SetHostile''' - would force the calling actor to behave as if they perceived a hostile threat, assuming such states can be imposed in the absence of real combat.
*'''SetHostile''' - would force the calling actor to behave as if they perceived a hostile threat, assuming such states can be imposed in the absence of real combat.
*'''actor1.VirtualAttack actor2''' - Makes actor2 react like he's attacked by actor1 without suffering from any damage.
 


==Animation and Graphics Functions==
==Animation and Graphics Functions==
Functions dealing with animations or game rendering:
Functions dealing with animations or game rendering:
*'''getCurrentAnim''' - Returns the currently playing animation.
 
*'''changeAnimFilepath''' - Changes the filepaths used for the player anims by script effect, so he/she e.g. floats like a lich always when a "Lichdom"-effect effects him/her.
*'''forceDismount''' - Forces a mounted actor to dismount.
*'''forceDismount''' - Forces a mounted actor to dismount.
*'''setCameraDistance''' - In third person view, adjusts the camera's distance from the player.
*'''fadeIn/fadeOut''' ''duration'' - Fades the screen to or from black over the given duration.
*'''closeMenu''' - Closes all open menus.
*'''ReloadCell''' or '''UpdateLighting''' - Reloads the cell as if the player had just entered or as if he were moved out of and then back into the cell; or updates the illumination of lights on static objects. Kind of a specific request to eliminate issues with disabled and re-enabled lights not illuminating properly.
*'''ReloadCell''' or '''UpdateLighting''' - Reloads the cell as if the player had just entered or as if he were moved out of and then back into the cell; or updates the illumination of lights on static objects. Kind of a specific request to eliminate issues with disabled and re-enabled lights not illuminating properly.
*'''Get/SetFacialData''' - Returns/sets facial data of the calling actor.
*'''Get/SetFacialData''' - Returns/sets facial data of the calling actor.
*'''GetShader''': Returns shader(s) active on PC camera (e.g. nighteye, hitshader/blur, etc).
*'''GetShader''': Returns shader(s) active on PC camera (e.g. nighteye, hitshader/blur, etc).
*'''TriggerShader''':  Adds a shader to the PC camera, the shader could be defined in an INI or via another function (see talk: Custom Shaders).
*'''ForcePickIdle''' - force an Idle to be played even if the player is not on the ground or under any other circumstance that would usually block pickidle.
*'''ForcePickIdle''' - force an Idle to be played even if the player is not on the ground or under any other circumstance that would usually block pickidle.
*'''PlaceCinematicCamera''': Enter tfc mode & Place the camera at any xyz location or xmarker, set elevation & rotation angle, or track a reference object.
*'''FlyingCinematicCamera''': enter tfc and script the camera motion between reference points while tracking another reference.  Also able to set speed of movement.
*'''SetCellAmbientLight''': Accepts 3 integer values that set the red, green, and blue ambient light values in an interior cell. A GetCellAmbientLight function would also be nice.
*'''SetCellAmbientLight''': Accepts 3 integer values that set the red, green, and blue ambient light values in an interior cell. A GetCellAmbientLight function would also be nice.
*'''PlayAnimationSourceFile''': Plays animations directly from a source file on the specified actor.
 
*'''PlayAnimationSourceFileFP''': Plays first person animations directly from a source file on the specified actor.


==Functions Returning a Reference==
==Functions Returning a Reference==
Functions that return a reference:
Functions that return a reference:
*'''GetFirstRefInContainer''' - Like GetFirstRef, but returns a reference to first item in a container.
 
*'''getLastAttacked''' - Returns a reference to the actor last attacked by the calling actor.
*'''getLastAttacked''' - Returns a reference to the actor last attacked by the calling actor.
*'''getLastActivated''' - Returns a reference to the last object activated by the player or calling actor.
*'''getLastActivated''' - Returns a reference to the last object activated by the player or calling actor.
*'''getNearest ''integer'' ''type'''''  - Returns a reference to the nearest object to the calling reference.  ''Type'' specifies which type of reference - Actor, Activator, etc.  So, for example, ''player.getNearest 6 NPC'' will return the sixth closest NPC to the player.
*'''getTelekinesisItem''' - Returns reference of the object player is currently targeting with telekinesis.
*'''GetTeleportMarker''' - Return teleport marker associated with the door that called the function
*'''(reference).GetLastKilled''' - Returns the reference of the last actor killed by the player/an actor.
*'''(reference).GetLastKilled''' - Returns the reference of the last actor killed by the player/an actor.


Line 118: Line 79:
Functions which read or alter the state of an actor:
Functions which read or alter the state of an actor:
*'''SetRace''' - Allows you to change the race of an actor
*'''SetRace''' - Allows you to change the race of an actor
*'''IsStill''' - Returns true if the actor is not moving any of its body parts - providing that it has body parts - by itself at all (e.g. standing still, flying still, jumping still, swimming still, falling still, being crashed or limbs moved by only other actors - not the actor himself, etc).
*'''GetIsSummon''' - Returns true if the calling actor is a summoned creature (a normal summon associated with one of the "Summon" spell effects). This would allow scripters to avoid issues where the reference is destroyed when the spell effect ends or creature is killed.
*'''Open [Reference]''' - Makes the calling actor open the given door or container with his or her keys. Even suitable for a calling container.
*'''GetActorMagicEffectMagnitude [Effect]''' - Returns the total magnitude of a particular magic effect from all spells/abilities/etc affecting an actor.
*'''DropEquipped [slot]''' - Drops the equipped item according to the given equipment slot. This function keeps the item's statuses like RemoveMe or disarmament.
*'''DropEquipped [slot]''' - Drops the equipped item according to the given equipment slot. This function keeps the item's statuses like RemoveMe or disarmament.
*'''CancelInvisibility''' - If the player is invisible through a spell, cancel the spell and make the player visible.
*'''GetKilledBy''' - Get the reference by whom the actor was killed. Should be available in blocks like ''actorId.GetDead == 1''.
*'''GetKilledBy''' - Get the reference by whom the actor was killed. Should be available in blocks like ''actorId.GetDead == 1''.
*'''GetHitBy''' - Returns the reference whom just hit the actor.
*'''GetHitBy''' - Returns the reference whom just hit the actor.
Line 130: Line 86:


==UI Functions==
==UI Functions==
*'''GetDialogID''' - retrieve the ID of the dialog currently shown.
*'''GetTextFromDialog''' - retrieve dialog text, manually entered text, or the answer options that the user can choose /this would make only sense if we had string manipulation routines, too, such get Trim(), Substr(), Compare(), Catenate()/. Would be great for some puzzles...
*'''SelectDialogResponse''' - Choose a particular answer in a dialog (e.g. Yes, No, Cancel, Optionx, etc.)
*'''SelectDialogResponse''' - Choose a particular answer in a dialog (e.g. Yes, No, Cancel, Optionx, etc.)
*'''ShowMap2 (FastTravelFlag)''' - Unlike ShowMap, this function just bring the map menu on the screen and the player can fast-travel or close the menu. If the ''FastTravel'' flag is true, the player can fast-travel whether the cell is set as unable to travel from here.
 
*'''ShowInventory (PageNumber)''' - Bring the player inventory menu on the screen. If ''PageNumber'' is given, show the corresponding page. Otherwise, show the last page the player opened.
*'''ShowMagic (PageNumber)''' - Bring the player magic menu on the screen. If ''PageNumber'' is given, show the corresponding page. Otherwise, show the last page the player opened.


==Other Functions==
==Other Functions==
Line 149: Line 101:
*'''RevertName''' - Called on a reference or base object with the 'Named' property to revert its name to its original definition in the construction set.  Examples: if setname or setnameex is used on Shadowmere to name her "Darkness", calling RevertName on 'ShadowmereRef' or 'Dark10Horse' would reset her name to "Shadowmere".  Likewise, if a mod is loaded that explicitly sets the name property of Shadowmere to "Black Beauty" using the CS (and assuming her name is then set (in game) to "Darkness" using setname or setnameex), calling RevertName on her should set her name to "Black Beauty".  I.E. The name should be set to whatever is defined in the construction set, with regard to installed mods.   
*'''RevertName''' - Called on a reference or base object with the 'Named' property to revert its name to its original definition in the construction set.  Examples: if setname or setnameex is used on Shadowmere to name her "Darkness", calling RevertName on 'ShadowmereRef' or 'Dark10Horse' would reset her name to "Shadowmere".  Likewise, if a mod is loaded that explicitly sets the name property of Shadowmere to "Black Beauty" using the CS (and assuming her name is then set (in game) to "Darkness" using setname or setnameex), calling RevertName on her should set her name to "Black Beauty".  I.E. The name should be set to whatever is defined in the construction set, with regard to installed mods.   
*'''GetModRecords''' - With the advent of arrays in OBSE v17, this request seems possible.  The function returns an array of the records introduced by a particular mod.  For example, the first level of the array would store an array for each of Actors, Items, Magic, Miscellaneous, and WorldObjects.  The contents of each subarray would be the records that each CS category contains that are new/introduced by the mod.  For example, If there is a mod loaded that adds 5 books to the game, and the mod is 8th in this imaginary load order, calling GetModRecords, passing 08 as the mod index, should return an array, and let's call it arItems.  arItems[Actors], arItems[Magic], etc. would be empty, but arItems[Items] would contain 5 records (numeric keys are used as opposed to labels, this is just for illustration).  These 5 records should be the FormID's of the five books.  In this way, one could search a mod for records, and make use of them in-game using placeatme or additem.   
*'''GetModRecords''' - With the advent of arrays in OBSE v17, this request seems possible.  The function returns an array of the records introduced by a particular mod.  For example, the first level of the array would store an array for each of Actors, Items, Magic, Miscellaneous, and WorldObjects.  The contents of each subarray would be the records that each CS category contains that are new/introduced by the mod.  For example, If there is a mod loaded that adds 5 books to the game, and the mod is 8th in this imaginary load order, calling GetModRecords, passing 08 as the mod index, should return an array, and let's call it arItems.  arItems[Actors], arItems[Magic], etc. would be empty, but arItems[Items] would contain 5 records (numeric keys are used as opposed to labels, this is just for illustration).  These 5 records should be the FormID's of the five books.  In this way, one could search a mod for records, and make use of them in-game using placeatme or additem.   
*'''Get/Set/ModWaterHeight''' - change the height of water in an Interior cell
*'''SetIsPersistent''' -  allows persistence to be toggled via script.*
*'''SetIsPersistent''' -  allows persistence to be toggled via script.*
*'''(reference.)SetNthVariable''' ''integer'' ''type'' ''quest(optional)'' - Sets the value of the Nth variable in the given script. This would let everyone use arrays without using an array type into the Oblivion scripting language. See [[Talk:OBSE_Wish_List#Arrays | Discussion]].
*'''[optional reference].AutocalSpellMagickaCost spellID''' - autocalculates spell cost including area factor, duration factor, and range factor based on the formula in [[FMagicCasterSkillCostMult]]. If optional reference is included, also calculates in the skill factor for that actor (including luck).  
*'''[optional reference].AutocalSpellMagickaCost spellID''' - autocalculates spell cost including area factor, duration factor, and range factor based on the formula in [[FMagicCasterSkillCostMult]]. If optional reference is included, also calculates in the skill factor for that actor (including luck).  
*'''IsPCUnderArrest''' - return a boolean indicating whether the player is chased by any guard.
*'''GetScriptStage''' - Returns the stage index of the calling result script. If the calling script is not a stage result script, then return -1. Very handy for those using stage functions to create arrays.
*'''LoadObject''' - Forcibly cache/load an object, or '''LoadCellBuffer''' which would load/cache an entire cell, sort of opposite to [[PurgeCellBuffers]]
*'''LoadObject''' - Forcibly cache/load an object, or '''LoadCellBuffer''' which would load/cache an entire cell, sort of opposite to [[PurgeCellBuffers]]
*'''GetDifficulty''' - Returns current game difficulty.
*'''EquipMe''' - Makes the actor holding the calling reference equips it. Even better if it can trigger OnEquip blocks.
*'''EquipMe''' - Makes the actor holding the calling reference equips it. Even better if it can trigger OnEquip blocks.
*'''GetPoison''' - Returns the poison applied to the calling weapon reference.
*'''WallCollision''' - Returns true if the player is colliding with a wall. If that is not feasible, then returning true if the player is colliding with any solid object that isn't a floor would be more helpful than what we've got.
*'''Get/SetCellFogNear''' & '''Get/SetCellFogFar''' - Get and set interior cell fog distance.
*'''Get/SetCellFogNear''' & '''Get/SetCellFogFar''' - Get and set interior cell fog distance.
*'''GetStartingCell''' ''CellID'' - Returns true if editor cellID is the same a the parameter specified.
*'''GetStartingCell''' ''CellID'' - Returns true if editor cellID is the same a the parameter specified.
*'''GetGroundPos''' - Returns the groundlevel co-ordinate of the current cell.
*'''GetGroundPos''' - Returns the groundlevel co-ordinate of the current cell.
*'''IsOnGround''' - Returns true of the calling object of at ground level.
*'''Add/RemoveMajorSkill''' - Adds or removes major skill on calling actor.
*'''Add/RemoveMajorSkill''' - Adds or removes major skill on calling actor.
*'''Add/RemoveClassSkill''' - Adds or removes class skill for indicated class (If above request is prohibitive)
*'''Add/RemoveClassSkill''' - Adds or removes class skill for indicated class (If above request is prohibitive)
*'''SetCurrentCharge''' - Sets the charge of the calling reference (getcurrentcharge already exists)
*'''SetCurrentHealth''' - Sets the health of the calling reference - for objects,not actors (getcurrenthealth already exists)
*'''GetDimension [x|-x|y|-y|z|-z] ''' - returns the distance from the object 'origin' to its outer limit in the requested axis and direction - very useful when moving/placing/aligning/spacing references by script. (a typical NPC with the origin at the feet would return 125 to Z (origin to top) and 0 to -Z (origin to bottom)
*'''GetDimension [x|-x|y|-y|z|-z] ''' - returns the distance from the object 'origin' to its outer limit in the requested axis and direction - very useful when moving/placing/aligning/spacing references by script. (a typical NPC with the origin at the feet would return 125 to Z (origin to top) and 0 to -Z (origin to bottom)
*'''IsColliding  reference:ref''' - returns true if any part of the calling object occupies the same space as the provided reference:ref.
*'''GetCollidingRefs''' - returns an array of the references colliding with the calling reference.  <OR>  '''GetFirst/NextCollidingRef''' - returns one at a time.
*'''GetCollidingRefs''' - returns an array of the references colliding with the calling reference.  <OR>  '''GetFirst/NextCollidingRef''' - returns one at a time.


==Non-Functions (Game Tweaks)==
*'''Non-Spoken Dialog Teaks:'''
:When mods add dialog for which there is there is no voice file, it would be very useful if: 1) subtititles were automatically displayed, whether the dialog display setting is on or not, and 2) the subtitle would stay up until the user clicked to dismiss it. (Or at least stayed up for longer than than 1-2 seconds it currently displays.) Lacking these functions, 1) the player has to turn subtitles on all the time, which is annoying; and 2) the modder has to create empty voice files just to get the dialog to display for a long enough period of time, which is both annoying and immensely wasteful of resources and disk space.
:If OBSE included a tweak to fix this behavior, it would make it much more practical for mods to add dialog, and IMO would be enough reason in itself to install OBSE. --[[User:Wrye|Wrye]] 23:25, 14 January 2008 (EST)
==Documentation==
*'''A small tutorial to the source code''' - A Tutorial for these who want to create new OBSE functions. I now understand it mostly, but it takes some time to figure it all out (for example you could explain what CommandInfo does, how you can create ParamInfo structures, etc, and also maybe some build instructions).


==Questionable Requests==
==Questionable Requests==
Anonymous user

Navigation menu