// nwscript.nss for DAO PC v1.05 (script.ldf as per patch.003) // 2014-08-03 12:06:49 D:\DEV\FUN\DAO\TEST\MAKE_NWSCRIPT_NSS.FXP // // Some types - any, function, resource, arrays - had to be replaced with something else // in order to make the script.ldf declarations palatable for nwnnsscomp. Default values // where stripped since nwnnsscomp ignores them anyway. The parameters were kept for the // benefit of other tools. Five of the engine structures haven't been identified yet. #define ENGINE_NUM_STRUCTURES 10 #define ENGINE_STRUCTURE_0 event #define ENGINE_STRUCTURE_1 location #define ENGINE_STRUCTURE_2 command #define ENGINE_STRUCTURE_3 effect #define ENGINE_STRUCTURE_4 engine4 #define ENGINE_STRUCTURE_5 player #define ENGINE_STRUCTURE_6 engine6 #define ENGINE_STRUCTURE_7 engine7 #define ENGINE_STRUCTURE_8 engine8 #define ENGINE_STRUCTURE_9 engine9 /*000*/ void PrintInteger (int nInteger, int bPrepend); /*001*/ void PrintFloat (float fFloat, int nWidth, int nDecimals, int bPrepend); /*002*/ void PrintString (string sString, int bPrepend); /*003*/ void PrintObject (object oObject, int bPrepend); /*004*/ void PrintVector (vector vVector, int bPrepend); /*005*/ void PrintToLog (string sMessage); /*006*/ void AssignFunction (object oTarget, action fnFunction); // not declared in script.ldf (patch.003): COMMAND_ASSIGNFUNCTION /*007*/ void DelayFunction (float fSeconds, action fnFunction); // not declared in script.ldf (patch.003): COMMAND_DELAYFUNCTION /*008*/ void Deprecated_ExecuteScript (string rScript, object oTarget); /*009*/ string GetM2DAString (int n2DA, string sColumn, int nRow, string s2DA); /*00A*/ void _unimplemented_action_000A ( ); // == NULL /*00B*/ int GetM2DARows (int n2DA, string s2DA); /*00C*/ int GetM2DAColumns (int n2DA); /*00D*/ string GetM2DAResource (int n2DA, string sColumn, int nRow, string s2da); /*00E*/ string GetTlkTableString (int nStrRef, int nGender); /*00F*/ int GetGameDifficulty ( ); /*010*/ void DebugSpawnScriptDebugger ( ); /*011*/ float GetFacing (object oTarget, int bMirrorYAxis); /*012*/ void SetFacing (object oTarget, float fFacing, int bMirrorYAxis); /*013*/ effect Effect (int nType); /*014*/ command GetPreviousCommand (object oObject); /*015*/ vector GetPosition (object oTarget); /*016*/ void SetPosition (object oObject, vector vPosition, int bSafePosition); /*017*/ void SetFacingPosition (object oObject, vector vPosition); /*018*/ void SetFacingObject (object oObject, object oTarget, int bInvert); /*019*/ int Random (int nMaxInteger); /*01A*/ int abs (int nValue); /*01B*/ float fabs (float fValue); /*01C*/ float cos (float fValue); /*01D*/ float sin (float fValue); /*01E*/ float tan (float fValue); /*01F*/ float acos (float fValue); /*020*/ float asin (float fValue); /*021*/ float atan (float fValue); /*022*/ float log (float fValue); /*023*/ float pow (float fValue, float fExponent); /*024*/ float sqrt (float fValue); /*025*/ float GetDistanceBetween (object oObjectA, object oObjectB); /*026*/ float GetDistanceBetweenLocations (location lLocationA, location lLocationB); /*027*/ int IsInTrigger (object oObject, object oTrigger); /*028*/ int IsVectorEmpty (vector vVector); /*029*/ vector Vector (float x, float y, float z); /*02A*/ float GetVectorMagnitude (vector vVector); /*02B*/ vector GetVectorNormalize (vector vVector); /*02C*/ vector AngleToVector (float fAngle); /*02D*/ float VectorToAngle (vector vVector); /*02E*/ int CheckLineOfSightObject (object oSource, object oTarget); /*02F*/ int CheckLineOfSightVector (vector vSource, vector vTarget); /*030*/ float IntToFloat (int nInteger); /*031*/ int FloatToInt (float fFloat); /*032*/ string IntToString (int nInteger); /*033*/ int StringToInt (string sNumber); /*034*/ string FloatToString (float fFloat, int nWidth, int nDecimals); /*035*/ float StringToFloat (string sNumber); /*036*/ string ObjectToString (object oObject); /*037*/ string VectorToString (vector vVector); /*038*/ vector StringToVector (string sString); /*039*/ string IntToHexString (int nInteger); /*03A*/ int HexStringToInt (string sString); // == 51 (033) COMMAND_STRINGTOINT /*03B*/ int CharToInt (string sString); /*03C*/ string IntToChar (int nInteger); /*03D*/ float FeetToMeters (float fFeet); /*03E*/ float YardsToMeters (float fYards); /*03F*/ int GetLocalInt (object oObject, string sVarName); /*040*/ void SetLocalInt (object oObject, string sVarName, int nValue); /*041*/ void _unimplemented_action_0041 ( ); // == NULL /*042*/ float GetLocalFloat (object oObject, string sVarName); /*043*/ void SetLocalFloat (object oObject, string sVarName, float fValue); /*044*/ void _unimplemented_action_0044 ( ); // == NULL /*045*/ string GetLocalString (object oObject, string sVarName); /*046*/ void SetLocalString (object oObject, string sVarName, string sValue); /*047*/ void _unimplemented_action_0047 ( ); // == NULL /*048*/ object GetLocalObject (object oObject, string sVarName); /*049*/ void SetLocalObject (object oObject, string sVarName, object oValue); /*04A*/ void _unimplemented_action_004A ( ); // == NULL /*04B*/ location GetLocalLocation (object oObject, string sVarName); /*04C*/ void SetLocalLocation (object oObject, string sVarName, location lValue); /*04D*/ void _unimplemented_action_004D ( ); // == NULL /*04E*/ player GetLocalPlayer (object oObject, string sVarName); /*04F*/ void SetLocalPlayer (object oObject, string sVarName, player pPlayer); /*050*/ void _unimplemented_action_0050 ( ); // == NULL /*051*/ void DEBUG_PrintToScreen (string sString, int nPosFromTop, float fLife); /*052*/ void PrintToLogWindow (string sString, string sLogType); /*053*/ object GetParty (object oCreature); /*054*/ event GetLocalEvent (object oObject, string sVarName); /*055*/ void SetLocalEvent (object oObject, string sVarName, event evEvent); /*056*/ void _unimplemented_action_0056 ( ); // == NULL /*057*/ command GetLocalCommand (object oObject, string sVarName); /*058*/ void SetLocalCommand (object oObject, string sVarName, command cCommand); /*059*/ void _unimplemented_action_0059 ( ); // == NULL /*05A*/ effect GetLocalEffect (object oObject, string sVarName); /*05B*/ void SetLocalEffect (object oObject, string sVarName, effect eEffect); /*05C*/ void _unimplemented_action_005C ( ); // == NULL /*05D*/ void _unimplemented_action_005D ( ); // == NULL // itemproperty GetLocalItemProperty( object oObject, string sVarName ); /*05E*/ void _unimplemented_action_005E ( ); // == NULL // void SetLocalItemProperty( object oObject, string sVarName, itemproperty iItemProperty /*05F*/ void _unimplemented_action_005F ( ); // == NULL /*060*/ int GetStringLength (string sString); /*061*/ string StringUpperCase (string sString); /*062*/ string StringLowerCase (string sString); /*063*/ string StringRight (string sString, int nCount); /*064*/ string StringLeft (string sString, int nCount); /*065*/ string InsertString (string sDestination, string sString, int nPosition); /*066*/ string SubString (string sString, int nStart, int nCount); /*067*/ int FindSubString (string sString, string sSubString, int nStart); /*068*/ int IsStringEmpty (string sString); /*069*/ void SignalEvent (object oObject, event evEvent, int bProcessImmediate); /*06A*/ event Event (int nEventType); /*06B*/ int IsEventValid (event evEvent); /*06C*/ event GetCurrentEvent ( ); /*06D*/ object GetEventCreator (event evEvent); /*06E*/ event SetEventCreator (event evEvent, object oCreator); /*06F*/ int GetEventType (event evEvent); /*070*/ event SetEventType (event evEvent, int nType); /*071*/ int GetEventInteger (event evEvent, int nIndex); /*072*/ event SetEventInteger (event evEvent, int nIndex, int nValue); /*073*/ float GetEventFloat (event evEvent, int nIndex); /*074*/ event SetEventFloat (event evEvent, int nIndex, float fValue); /*075*/ object GetEventObject (event evEvent, int nIndex); /*076*/ event SetEventObject (event evEvent, int nIndex, object oValue); /*077*/ string GetEventString (event evEvent, int nIndex); /*078*/ event SetEventString (event evEvent, int nIndex, string sValue); /*079*/ void HandleEvent (event evEvent, string rScriptName); /*07A*/ void SetEventScript (object oObject, string rScriptName); /*07B*/ void EnablevEvent (object oObject, int bEnable, int nEventType); /*07C*/ void RegisterEventListener (object oTarget, object oListener, int nEventType); /*07D*/ void UnregisterEventListener (object oTarget, object oListener, int nEventType); /*07E*/ object GetEventTarget (event evEvent); /*07F*/ object GetNearestObjectByHostility (object oObject, int nHostility, int nObjectType, int nNumberOfObjects, int nCheckLiving, int nCheckPerceived, int nIncludeSelf); /*080*/ void DelayEvent (float fSeconds, object oObject, event evEvent, string scriptname); /*081*/ int IsFollower (object oCreature); /*082*/ void PrintToLogAndFlush (string sLogEntry); /*083*/ location GetEventLocation (event evEvent, int nIndex); /*084*/ event SetEventLocation (event evEvent, int nIndex, location lLocation); /*085*/ void HandleEvent_String (event evEvent, string sName); /*086*/ float GetItemAttackRating (object oItem); /*087*/ int GetBaseItemType (object oItem); /*088*/ int GetItemMaterialType (object oItem); /*089*/ void SetItemMaterialType (object oItem, int nMaterialType); /*08A*/ float GetM2DAFloat (int n2DA, string sColumn, int nRow, string s2DA); /*08B*/ void RemoveEffectsByCreator (object oCreator, int nAbilityID); /*08C*/ void SetObjectActive (object oObject, int nActive, int nAnimation, int nVFX); /*08D*/ int GetObjectActive (object oObject); /*08E*/ void _unimplemented_action_008E ( ); // == NULL /*08F*/ void LogTrace (int nChannel, string sLogEntry, object oTarget); /*090*/ void SetFollowerSubState (object oCreature, int nSubState); /*091*/ string GetCurrentScriptName ( ); /*092*/ int IsFollowerLocked (object oCreature); /*093*/ void SetFollowerLocked (object oCreature, int bLocked); /*094*/ void Engine_ApplyEffectOnParty (int nDurationType, effect eEffect, float fDuration, object oCreator, int nAbilityId, int bExcludeCreator); /*095*/ string ToString (int anyData); /*096*/ int GetAppearanceType (object oCreature); /*097*/ void SetPlaceableActionResult (object oPlaceable, int nAction, int bSuccess, int bVariation); /*098*/ int GetPlaceableAction (object oPlaceable); /*099*/ int GetPlaceableBaseType (object oPlaceable); /*09A*/ int GetPlaceableAutoRemoveKey (object oPlaceable); /*09B*/ int GetPlaceableKeyRequired (object oPlaceable); /*09C*/ string GetPlaceableKeyTag (object oPlaceable); /*09D*/ int GetPlaceablePickLockLevel (object oPlaceable); /*09E*/ command CommandSheatheWeapons ( ); /*09F*/ command CommandUnsheatheWeapons ( ); // == 158 (09E) COMMAND_COMMANDSHEATHEWEAPONS /*0A0*/ int GetWeaponsUnsheathedStatus (object oCreature); // == 141 (08D) COMMAND_GETACTIVE /*0A1*/ float GetAngleBetweenObjects (object oObjectA, object oObjectB); /*0A2*/ command CommandSwitchWeaponSet (int nWeaponSet); /*0A3*/ void _unimplemented_action_00A3 ( ); // == NULL /*0A4*/ int IsPerceivingHostiles (object oCreature); // == 141 (08D) COMMAND_GETACTIVE /*0A5*/ int IsPartyPerceivingHostiles (object oCreature); // == 141 (08D) COMMAND_GETACTIVE /*0A6*/ int TriggerPerception (object oPerceivingCreature, object oPerceivedCreature); /*0A7*/ int GetActiveWeaponSet (object oObject); /*0A8*/ object GetMainControlled ( ); /*0A9*/ object GetPerceivedCreatureList (object oCreature, int bHostile); /*0AA*/ int IsPerceiving (object oidA, object oidB); /*0AB*/ int GetItemHeraldry (object oItem); /*0AC*/ void SetItemHeraldry (object oItem, int nHeraldry); /*0AD*/ void PlayMovie (string rMovie); /*0AE*/ void SendToRunDatabase (string sString); /*0AF*/ void SendGameEventRunDatabase (int nEventId, object oidObject, object oidTarget, int nParam1, int nParam2, string sParam1, string sParam2, string sType); /*0B0*/ int GetLowResTimer ( ); /*0B1*/ int GetHasEffects (object oObject, int nEffectType, int nAbilityId); /*0B2*/ void SetAppearanceType (object oCreature, int nApperanceId, int bSetAsOriginal); /*0B3*/ string GetStringByStringId (int nId); /*0B4*/ object GetItemsInInventory (object oObject, int nGetItemsOptions, int nBaseItemType, string sTagFilter, int bIgnorePlotItems); /*0B5*/ int GetPlotFlagRewardId (string strPlot, int nFlag); /*0B6*/ void SetSoundSet (object oTarget, string sSoundSet); /*0B7*/ int GetCreatureRank (object oCreature); /*0B8*/ int GetCanDiePermanently (object oidCreature); /*0B9*/ void EnableWeaponTrail (object oCreature, int bEnable); /*0BA*/ location GetVisualEffectLocation (effect eVFX); /*0BB*/ void SetObjectAlwaysVisible (object oObject, int bAlwaysVisible); /*0BC*/ void ToggleGamePause (int bPause); /*0BD*/ int GetAutoPauseCombatStatus ( ); /*0BE*/ int GetItemAbilityId (object oItem); // == 141 (08D) COMMAND_GETACTIVE /*0BF*/ void SetItemAbilityId (object oItem, int nAbilityId, int nPower); /*0C0*/ int GetEffectsFlags (object oOwner); // == 141 (08D) COMMAND_GETACTIVE /*0C1*/ object FireProjectile (int nType, vector vSourcePosition, vector vTargetPosition, int nCrustEffectId, int bWideAngle, object oEventTarget); /*0C2*/ void SetCooldown (object oCreature, int nAbilityId, float fCooldownTime, string sSourceItemTag); /*0C3*/ float GetRemainingCooldown (object oCreature, int nAbilityId, string sSourceItemTag); /*0C4*/ void PlayAdditiveAnimation (object nObjectId, int nAnimation, int bForceRestart); /*0C5*/ object FilterObjectsInShape (object aObjects, int nObjectTypeMask, int nShapeId, location lLocation, float fA, float fB, float fC, int bExcludeDead); /*0C6*/ float GetThreatValueByObjectID (object oCreature, object oEnemy); /*0C7*/ float GetThreatValueByIndex (object oCreature, int i); /*0C8*/ object GetThreatEnemy (object oCreature, int i); /*0C9*/ int GetThreatTableSize (object oCreature); /*0CA*/ void ClearThreatTable (object oCreature); /*0CB*/ void ClearEnemyThreat (object oCreature, object oEnemy); /*0CC*/ void UpdateThreatTable (object oCreature, object oEnemy, float fThreatChange); /*0CD*/ object GetCreaturesInMeleeRing (object nRingOwnerId, float fStartAngle, float fEndAngle, int bOnlyHostiles, int nRingIndex); /*0CE*/ int IsObjectValid (object oObject); /*0CF*/ int GetObjectType (object oObject); /*0D0*/ string GetResRef (object oObject); /*0D1*/ string GetTag (object oObject); /*0D2*/ void SetTag (object oObject, string sTag); /*0D3*/ object GetObjectByTag (string sTag, int nNth); /*0D4*/ object CreateItemOnObject (string rItemFileName, object oTarget, int nStackSize, string sTag, int bSuppressNotification, int bDroppable); /*0D5*/ int CreatePool (string rTemplate, int nPoolSize); /*0D6*/ void DestroyObject (object oObject, int nDelay); /*0D7*/ int IsDestroyable (object oObject); /*0D8*/ void SetDestroyable (object oObject, int bDestroyable); /*0D9*/ int IsPlot (object oObject); /*0DA*/ void SetPlot (object oObject, int bPlot); /*0DB*/ int IsImmortal (object oObject); /*0DC*/ void Engine_SetImmortal (object oObject, int bImmortal); /*0DD*/ int GetAILevel (object oObject); /*0DE*/ void SetAILevel (object oObject, int nAILevel); /*0DF*/ object GetArea (object oObject); /*0E0*/ object GetModule ( ); /*0E1*/ void _unimplemented_action_00E1 ( ); // == NULL /*0E2*/ int IsItemIdentified (object oItem, int nProperty); // not declared in script.ldf (patch.003): COMMAND_ISITEMIDENTIFIED /*0E3*/ void SetItemIdentified (object oItem, int nProperty, int bIdentified); // == 226 (0E2) COMMAND_ISITEMIDENTIFIED not declared in script.ldf (patch.003): COMMAND_SETITEMIDEN /*0E4*/ int GetIdentifyLoreDifficulty ( ); // == 226 (0E2) COMMAND_ISITEMIDENTIFIED not declared in script.ldf (patch.003): COMMAND_GETITEMIDEN /*0E5*/ void SetIdentifyLoreDifficulty ( ); // == 226 (0E2) COMMAND_ISITEMIDENTIFIED not declared in script.ldf (patch.003): COMMAND_SETITEMIDEN /*0E6*/ void RestoreObject ( ); // == 226 (0E2) COMMAND_ISITEMIDENTIFIED not declared in script.ldf (patch.003): COMMAND_RESTOREOBJE /*0E7*/ int GetCreatureStealthMode ( ); // == 226 (0E2) COMMAND_ISITEMIDENTIFIED not declared in script.ldf (patch.003): COMMAND_GETCREATURE /*0E8*/ int IsCreatureSkillSuccessful ( ); // == 226 (0E2) COMMAND_ISITEMIDENTIFIED not declared in script.ldf (patch.003): COMMAND_ISCREATURES /*0E9*/ int GetHealth (object oObject); /*0EA*/ void SetPlaceableHealth (object oPlc, int nHealth); /*0EB*/ int Deprecated_GetMaxHealth (object oObject); /*0EC*/ void SetMaxHealth (object oObject, int nHealth); /*0ED*/ int IsDead (object oObject); /*0EE*/ int GetCreatureStamina (object oCreature); /*0EF*/ void SetCreatureStamina (object oCreature, int nStamina); /*0F0*/ int GetCreatureMaxStamina (object oCreature); /*0F1*/ void SetCreatureMaxStamina (object oCreature, int nMaxStamina); /*0F2*/ int GetCreatureMana (object oCreature); // == 238 (0EE) COMMAND_GETCREATURESTAMINA /*0F3*/ void SetCreatureMana (object oCreature, int nMana); // == 239 (0EF) COMMAND_SETCREATURESTAMINA /*0F4*/ int GetCreatureMaxMana (object oCreature); // == 240 (0F0) COMMAND_GETCREATUREMAXSTAMINA /*0F5*/ void SetCreatureMaxMana (object oCreature, int nMaxMana); // == 241 (0F1) COMMAND_SETCREATUREMAXSTAMINA /*0F6*/ command CommandDeathBlow (object oTarget, int nDeathType); /*0F7*/ void _unimplemented_action_00F7 ( ); // == NULL /*0F8*/ int GetCreatureAttribute (object oCreature, int nAttribute, int nValueType); /*0F9*/ int HasSpell (object oObject, int nSpell); // == NULL /*0FA*/ void AddSpell (object oObject, int nSpell); // == NULL /*0FB*/ void RemoveSpell (object oObject, int nSpell); // == NULL /*0FC*/ int HasAbility (object oCreature, int nAbility); /*0FD*/ void AddAbility (object oObject, int nAbility, int bSendNotification); // == 252 (0FC) COMMAND_GETHASABILITY /*0FE*/ void RemoveAbility (object oObject, int nAbility); // == 252 (0FC) COMMAND_GETHASABILITY /*0FF*/ int GetCreatureSkillRank (object oCreature, int nSkill); // == NULL /*100*/ int SetCreatureSkillRank (object oCreature, int nSkill, int nSkillRank); // == NULL /*101*/ void SetCreatureXP (object oCreature, int nXP); // == NULL /*102*/ int GetCreatureXP (object oCreature); // == NULL /*103*/ void AddCreatureXP (object oCreature, int nXP); // == NULL /*104*/ void RemoveCreatureXP (object oCreature, int nXP); // == NULL /*105*/ int GetCreatureAlignment (object oCreature); // == NULL /*106*/ void SetCreatureAlignment (object oCreature, int nAlignment); // == NULL /*107*/ int GetCreatureGender (object oCreature); /*108*/ void SetCreatureGender (object oCreature, int nGender); /*109*/ int GetCreatureSize (object oCreature); // == NULL /*10A*/ void SetCreatureSize (object oCreature, int nSize); // == NULL /*10B*/ int GetCreatureSpeed (object oCreature); // == NULL /*10C*/ void SetCreatureSpeed (object oCreature, int nSpeed); // == NULL /*10D*/ int GetCreatureRacialType (object oCreature); /*10E*/ void SetCreatureRacialType (object oCreature, int nRacialType); /*10F*/ int GetCreatureAge (object oCreature); // == NULL /*110*/ void SetCreatureAge (object oCreature, int nAge); // == NULL /*111*/ void SwitchWeaponSet (object oObject, int nWeaponSet); /*112*/ void SetCreatureAppearance (object oCreature, int nAppearance); // == NULL /*113*/ string GetName (object oidObject); /*114*/ void SetName (object oObject, string sName); /*115*/ string GetRandomName ( ); // == NULL /*116*/ int GetAreaProperties (int nProperty); // == NULL /*117*/ void _unimplemented_action_0117 ( ); // == NULL /*118*/ object GetAreaOfEffectCreator (object oAreaOfEffect); // == NULL /*119*/ int GetPlaceableOpenState (object oPlaceable); // == NULL /*11A*/ int IsPlaceableUseable (object oPlaceable); // == NULL /*11B*/ void SetPlaceableUseable (object oPlaceable, int bUseable); // == NULL /*11C*/ int IsPlaceableContainer (object oPlaceable); // == NULL /*11D*/ void SetPlaceableContainer (object oPlaceable, int bContainer); // == NULL /*11E*/ int GetPlaceableState (object oPlaceable); /*11F*/ void SetPlaceableState (object oPlaceable, int nState); /*120*/ location GetTransitionTarget (object oPlaceable); // == NULL /*121*/ void SetTransitionTarget (object oPlaceable, location lLocation); // == NULL /*122*/ int IsDoorCommandPossible (object oPlaceable); // == NULL /*123*/ int GetItemValue (object oItem); /*124*/ int GetItemType (object oItem); // == NULL /*125*/ int GetItemDefenseValue (object oItem); // == NULL /*126*/ int IsWeaponRanged (object oItem); // == NULL /*127*/ int IsItemDroppable (object oItem); // == 141 (08D) COMMAND_GETACTIVE /*128*/ void SetItemDroppable (object oItem, int bDroppable); /*129*/ int IsItemStolen (object oItem); // == NULL /*12A*/ void SetItemStolen (object oItem, int bStolen); // == NULL /*12B*/ int GetMaxItemStackSize (object oItem); /*12C*/ int GetItemStackSize (object oItem); // == 299 (12B) COMMAND_GETMAXITEMSTACKSIZE /*12D*/ void SetItemStackSize (object oItem, int nStackSize); /*12E*/ int HasItemProperty (object oItem, int nItemProperty); // == NULL /*12F*/ void AddItemProperty (object oItem, int nProperty, int nPower); /*130*/ void RemoveItemProperty (object oItem, int nProperty); /*131*/ float GetItemStat (object oItem, int nStatType); /*132*/ object CreateObject (int nObjectType, string rTemplate, location lLoc, string sOverrideScript, int bSpawnActive, int bNoPermDeath); /*133*/ void SetLocName (object oObject, int nStringIndex); /*134*/ string GetCurrentScriptResource ( ); /*135*/ void OpenFadeMap ( ); /*136*/ void ShowTutorial (int nTutorialID); /*137*/ void SetPartyPickerGUIStatus (int nStatus); /*138*/ int GetPartyPickerGUIStatus ( ); /*139*/ int GetStoreMarkDown (object oStore); /*13A*/ void SetStoreMarkDown (object oStore, int nMarkDown); /*13B*/ int GetCreatureTreasureCategory (object oCreature); /*13C*/ int GetItemProperties (object oItem, int bIncludeSubItems); /*13D*/ int GetPackage (object oCreature); /*13E*/ int GetPackageAI (object oCreature); /*13F*/ void SetTacticEntry (object oCreature, int nIndex, int nEnabled, int nTargetType, int nCondition, int nCommandType, int nCommandParam); /*140*/ void CharGen_ClearAbilityList (object oCreature, int nAbilityType); /*141*/ void SetDeathHint (int nDeathHint, int n2DAReference); /*142*/ void SetLoadHint (int nLoadHint, int n2DAReference); /*143*/ void ShowPopup (int nMessageStrRef, int nPopupType, object oOwner, int bShowInputField, int nDefaultInputStrRef); /*144*/ void AdjustFollowerApproval (object oFollower, int nAmount, int bNotify); /*145*/ void SetClassRank (object oCreature, int nClass, int nRank); /*146*/ int HasDeathEffect (object oObject, int bCheckForDeathEvent); // == 141 (08D) COMMAND_GETACTIVE /*147*/ command CommandTurn (float fFacingDirection); /*148*/ void SetQuickslotBar (object oCreature, int nBarNumber); // == 296 (128) COMMAND_SETITEMDROPPABLE /*149*/ void LockQuickslotBar (object oCreature, int bLock); // == 296 (128) COMMAND_SETITEMDROPPABLE /*14A*/ int GetQuickslot (object oCreature, int nSlot); /*14B*/ int GetDebugHelpersEnabled ( ); /*14C*/ void RevealCurrentMap ( ); /*14D*/ void ClearCreatureProperties (object oCreature); // == 296 (128) COMMAND_SETITEMDROPPABLE /*14E*/ int GetAOEFlags (object oAOE); // == 141 (08D) COMMAND_GETACTIVE /*14F*/ void SetAOEFlags (object oAOE, int nFlags); // == 296 (128) COMMAND_SETITEMDROPPABLE /*150*/ int IsInAOE (object oCreature, object oAOE); // == 170 (0AA) COMMAND_ISPERCEIVING /*151*/ object GetCreaturesInAOE (object oAOE); /*152*/ void DEBUG_SendRawInputEvent (int nFrameNumber, string sRawEventName); /*153*/ void DEBUG_SetCursorPosition (int x, int y); /*154*/ void LoadItemsFromTemplate (object oCreature, string sTemplate, int bReplaceInventory); /*155*/ int GetAutoLevelFollowers ( ); /*156*/ void InitHeartbeat (object oCreature, float fInterval); /*157*/ void EndHeartbeat (object oCreature); /*158*/ int DialogIsAmbient ( ); /*159*/ void StorePartyInventory (object oPlaceable); /*15A*/ void StoreFollowerInventory (object oFollower, object oTarget); /*15B*/ void RestorePartyInventory (object oPlaceable); /*15C*/ void RestoreFollowerInventory (object oFollower, object oPlaceable); /*15D*/ void MoveItem (object oSource, object oTarget, object oItem); /*15E*/ void MoveAllItems (object oSource, object oTarget); /*15F*/ int AddNonPartyFollower (object oFollower); /*160*/ void RemoveNonPartyFollower (object oFollower); /*161*/ void SetAttackDuration (object oObject, float fDuration_s); /*162*/ int GetWeaponStyle (object oCreature); // == 141 (08D) COMMAND_GETACTIVE /*163*/ void ShowCraftingGUI (int nCraftingSkillID); /*164*/ string GetPlaceablePopupText (object oPlaceable); /*165*/ int LinkAreaMiniMaps (string sFirstArea, string sSecondArea); /*166*/ int GetItemEquipSlot (object oItem); /*167*/ void SignalDamage (object oSource, object oTarget); /*168*/ object UT_GetNearestObjectByTag (object oObject, string sTag, int nIncludeSelf); /*169*/ void SetLoadImage (string sLoadImage); // == 174 (0AE) COMMAND_SENDTORUNDB /*16A*/ void ShowStartMenu (int bShowCredits); /*16B*/ int IsHumanoid (object oObject); /*16C*/ void ShowAsAllyOnMap (object oCreature, int bEnable); /*16D*/ int GetTacticPresetID (object oCreature); /*16E*/ void SetTacticPresetID (object oCreature, int nPresetID); /*16F*/ void AddTacticPresetID (object oCreature, int nPresetID); /*170*/ int GetItemUnique (object oObject); // == 141 (08D) COMMAND_GETACTIVE /*171*/ int GetItemMaterialProgression (object oObject); /*172*/ object FireHomingProjectile (int nType, vector vSourcePosition, object oTarget, int nCrustEffectId, object oEventTarget); // == 193 (0C1) COMMAND_FIREPROJECTILE /*173*/ void SetProjectileImpactEvent (object oProjectile, event eCustom); /*174*/ object GetTacticTargetObject (object oCreature, int nIndex); /*175*/ object GetTacticConditionObject (object oCreature, int nIndex); /*176*/ string GetTacticCommandItemTag (object oCreature, int nIndex); /*177*/ void SetItemIrremovable (object oItem, int bIrremovable); /*178*/ int IsItemIrremovable (object oItem); /*179*/ void SetItemIndestructible (object oItem, int bIndestructible); /*17A*/ int IsItemIndestructible (object oItem); /*17B*/ void RemoveItemsByTag (object oPossessor, string sTag, int nNumItems); /*17C*/ int CountItemsByTag (object oPossessor, string sTag); /*17D*/ string GetPlotSummary (string sPlot, int nFlag); /*17E*/ void SetFollowerApprovalEnabled (object oFollower, int bEnabled); /*17F*/ string ECSplitString (string sString); /*180*/ int GetAutoLevelUp (object oPartyMember); /*181*/ void SetAutoLevelUp (object oPartyMember, int nAutoLevelUp); /*182*/ void ScaleEquippedItems (object oCreature, int nTargetLevel); /*183*/ void ClosePrimaryWorldMap ( ); /*184*/ int IsMoving (object oCreature); /*185*/ int GetAbilitiesDueToAOEs (object oCreature); /*186*/ void PreloadCharGen ( ); /*187*/ void SetCanChangeEquipment (object oCreature, int bCanChange); /*188*/ int EquipItem (object oObject, object oItem, int nEquipSlot, int nWeaponSet); /*189*/ int UnequipItem (object oObject, object oItem); // == 392 (188) COMMAND_EQUIPITEM /*18A*/ void SetAimLoopDuration (object oObject, float fDuration); // == 353 (161) COMMAND_SETATTACKDURATION /*18B*/ object GetPartyPoolList ( ); /*18C*/ void AddToParty (object oCreatureToAdd, object oPlayer); // not declared in script.ldf (patch.003): COMMAND_ADDTOPARTY /*18D*/ void RemoveFromParty (object oCreature); // not declared in script.ldf (patch.003): COMMAND_REMOVEFROMPARTY /*18E*/ int GetPartySize (object oPlayer); // not declared in script.ldf (patch.003): COMMAND_GETPARTYSIZE /*18F*/ int GetFollowerState (object oCreature); /*190*/ int GetFollowerSubState (object oCreature); /*191*/ object GetItemInEquipSlot (int nSlot, object oCreature, int nWeaponSet); /*192*/ void _unimplemented_action_0192 ( ); // == NULL /*193*/ void RemoveItem (object oItem, int nNumItems); /*194*/ int GetMaxInventorySize (object oCreature); /*195*/ void SetMaxInventorySize (int nMaxSize, object oCreature); /*196*/ void AddCreatureMoney (int nCoppers, object oCreature, int bNotify); /*197*/ void _unimplemented_action_0197 ( ); // == NULL /*198*/ int GetCreatureMoney (object oCreature); /*199*/ void SetCreatureMoney (int nCoppers, object oCreature, int bNotify); /*19A*/ void OpenInventory (object oObject, object oPlayer, int bCanAddItems); /*19B*/ int GetTrapDetectionDifficulty (object oTrap); // == 141 (08D) COMMAND_GETACTIVE /*19C*/ void _unimplemented_action_019C ( ); // == NULL /*19D*/ int GetTrapDisarmDifficulty (object oTrap); // == 141 (08D) COMMAND_GETACTIVE /*19E*/ void _unimplemented_action_019E ( ); // == NULL /*19F*/ void _unimplemented_action_019F ( ); // == NULL /*1A0*/ void SetTrapDetected (object oTrap, int bDetected); /*1A1*/ void _unimplemented_action_01A1 ( ); // == NULL /*1A2*/ void _unimplemented_action_01A2 ( ); // == NULL /*1A3*/ void _unimplemented_action_01A3 ( ); // == NULL /*1A4*/ void _unimplemented_action_01A4 ( ); // == NULL /*1A5*/ void _unimplemented_action_01A5 ( ); // == NULL /*1A6*/ void _unimplemented_action_01A6 ( ); // == NULL /*1A7*/ void _unimplemented_action_01A7 ( ); // == NULL /*1A8*/ void _unimplemented_action_01A8 ( ); // == NULL /*1A9*/ void _unimplemented_action_01A9 ( ); // == NULL /*1AA*/ void _unimplemented_action_01AA ( ); // == NULL /*1AB*/ void _unimplemented_action_01AB ( ); // == NULL /*1AC*/ void _unimplemented_action_01AC ( ); // == NULL /*1AD*/ void _unimplemented_action_01AD ( ); // == NULL /*1AE*/ void _unimplemented_action_01AE ( ); // == NULL /*1AF*/ void _unimplemented_action_01AF ( ); // == NULL /*1B0*/ void _unimplemented_action_01B0 ( ); // == NULL /*1B1*/ object GetNearestObject (object oObject, int nObjectType, int nNumberOfObjects, int nCheckLiving, int nCheckPerceived, int nIncludeSelf); // == 127 (07F) COMMAND_GETNEARESTOBJECTBYHOSTILITY /*1B2*/ object GetNearestObjectToLocation (location lLocation, int nObjectType, int nNumberOfObjects); // == 127 (07F) COMMAND_GETNEARESTOBJECTBYHOSTILITY /*1B3*/ object GetNearestObjectByTag (object oObject, string sTag, int nObjectType, int nNumberOfObjects, int nCheckLiving, int nCheckPerceived, int nIncludeSelf); // == 127 (07F) COMMAND_GETNEARESTOBJECTBYHOSTILITY /*1B4*/ object GetNearestObjectByGroup (object oObject, int nGroupId, int nObjectType, int nNumberOfObjects, int nCheckLiving, int nCheckPerceived, int nIncludeSelf); // == 127 (07F) COMMAND_GETNEARESTOBJECTBYHOSTILITY /*1B5*/ void _unimplemented_action_01B5 ( ); // == NULL /*1B6*/ object GetPCSpeaker ( ); /*1B7*/ void _unimplemented_action_01B7 ( ); // == NULL /*1B8*/ int BeginConversation (object oInitiator, object oTarget, string rDialogFile); /*1B9*/ void _unimplemented_action_01B9 ( ); // == NULL /*1BA*/ void _unimplemented_action_01BA ( ); // == NULL /*1BB*/ void _undocumented_action_01BB ( ); // not declared in script.ldf (patch.003): COMMAND_GETCONVERSATIONENTRYPARAMETER /*1BC*/ int HasConversation (object oObject); /*1BD*/ location GetClusterCenter (object oCreator, int nAbilityId, int nClusterSize, int nAllyFailChance, int bReturnFirstMatch); /*1BE*/ void ClearPerceptionList (object oPerceiver); /*1BF*/ void OpenStore (object oStore); /*1C0*/ int GetStoreMoney (object oStore); /*1C1*/ void SetStoreMoney (object oStore, int nMoney); // == 448 (1C0) COMMAND_STOREGETMONEY /*1C2*/ int GetStoreMaxBuyPrice (object oStore); /*1C3*/ void SetStoreMaxBuyPrice (object oStore, int nMaxBuyPrice); /*1C4*/ int GetStoreMarkUp (object oStore); // == 313 (139) COMMAND_STOREGETMARKDOWN /*1C5*/ void SetStoreMarkUp (object oStore, int nMoney); /*1C6*/ location Location (object oArea, vector vPosition, float fAngle); /*1C7*/ int IsLocationValid (location lLocation); /*1C8*/ int IsLocationSafe (location lLocation); /*1C9*/ location GetLocation (object oObject); /*1CA*/ void SetLocation (object oObject, location lLocation); /*1CB*/ vector GetPositionFromLocation (location lLocation); /*1CC*/ location SetLocationPosition (location lLocation, vector vPosition); /*1CD*/ object GetAreaFromLocation (location lLocation); /*1CE*/ location SetLocationArea (location lLocation, object oArea); /*1CF*/ float GetFacingFromLocation (location lLocation); /*1D0*/ vector GetOrientationFromLocation (location lLocation); /*1D1*/ location SetLocationOrientation (location lLocation, vector vOrientation); /*1D2*/ int GetGroupHostility (int nGroupA, int nGroupB); /*1D3*/ void SetGroupHostility (int nGroupA, int nGroupB, int bHostile); /*1D4*/ int IsObjectHostile (object oSource, object oTarget); /*1D5*/ int GetGroupId (object oObject); /*1D6*/ void SetGroupId (object oObject, int nGroupId); /*1D7*/ void SetReactionOverride (object oObject, int bHostile); /*1D8*/ void _unimplemented_action_01D8 ( ); // == NULL /*1D9*/ void _unimplemented_action_01D9 ( ); // == NULL /*1DA*/ void _unimplemented_action_01DA ( ); // == NULL /*1DB*/ void _unimplemented_action_01DB ( ); // == NULL /*1DC*/ void _unimplemented_action_01DC ( ); // == NULL /*1DD*/ void PlaySound (object oTarget, string sSoundEventName); /*1DE*/ void StopSound (string sSoundEventName); /*1DF*/ void PlaySoundSet (object oTarget, int nSoundSetEntry, float fProbabilityOverride); /*1E0*/ void PlaySoundObject (object oSound); /*1E1*/ void StopSoundObject (object oSound); /*1E2*/ void _unimplemented_action_01E2 ( ); // == NULL /*1E3*/ void _unimplemented_action_01E3 ( ); // == NULL /*1E4*/ void PlayMusic (string sMusicName); /*1E5*/ void StopMusic (string sMusicName); // == 484 (1E4) COMMAND_PLAYMUSIC /*1E6*/ void SetMusicIntensity (int nIntensity); /*1E7*/ void ActivateSoundByTag (string sSoundTag, int nActivate); /*1E8*/ void SetMusicVolumeStateByTag (string sMusicVolumeTag, int nMusicState); /*1E9*/ void _unimplemented_action_01E9 ( ); // == NULL /*1EA*/ void _unimplemented_action_01EA ( ); // == NULL /*1EB*/ void _unimplemented_action_01EB ( ); // == NULL /*1EC*/ void _unimplemented_action_01EC ( ); // == NULL /*1ED*/ void _unimplemented_action_01ED ( ); // == NULL /*1EE*/ void _unimplemented_action_01EE ( ); // == NULL /*1EF*/ void _unimplemented_action_01EF ( ); // == NULL /*1F0*/ void _unimplemented_action_01F0 ( ); // == NULL /*1F1*/ void _unimplemented_action_01F1 ( ); // == NULL /*1F2*/ void _unimplemented_action_01F2 ( ); // == NULL /*1F3*/ void _unimplemented_action_01F3 ( ); // == NULL /*1F4*/ int IsHero (object oCreature); /*1F5*/ void _unimplemented_action_01F5 ( ); // == NULL /*1F6*/ object GetHero ( ); /*1F7*/ void _unimplemented_action_01F7 ( ); // == NULL /*1F8*/ object GetPartyList (object oCreature); /*1F9*/ void _unimplemented_action_01F9 ( ); // == NULL /*1FA*/ void _unimplemented_action_01FA ( ); // == NULL /*1FB*/ void _unimplemented_action_01FB ( ); // == NULL /*1FC*/ void _unimplemented_action_01FC ( ); // == NULL /*1FD*/ void _unimplemented_action_01FD ( ); // == NULL /*1FE*/ void _unimplemented_action_01FE ( ); // == NULL /*1FF*/ void _unimplemented_action_01FF ( ); // == NULL /*200*/ void _unimplemented_action_0200 ( ); // == NULL /*201*/ void DoAutoSave ( ); /*202*/ void _unimplemented_action_0202 ( ); // == NULL /*203*/ void _unimplemented_action_0203 ( ); // == NULL /*204*/ void _unimplemented_action_0204 ( ); // == NULL /*205*/ void _unimplemented_action_0205 ( ); // == NULL /*206*/ void _unimplemented_action_0206 ( ); // == NULL /*207*/ void _unimplemented_action_0207 ( ); // == NULL /*208*/ void _unimplemented_action_0208 ( ); // == NULL /*209*/ void _unimplemented_action_0209 ( ); // == NULL /*20A*/ object GetAttackTarget (object oCreature); // == 223 (0DF) COMMAND_GETAREA /*20B*/ void _unimplemented_action_020B ( ); // == NULL /*20C*/ void _unimplemented_action_020C ( ); // == NULL /*20D*/ void SetCombatState (object oCreature, int nCombatState); /*20E*/ int GetCombatState (object oCreature); /*20F*/ void _unimplemented_action_020F ( ); // == NULL /*210*/ void _unimplemented_action_0210 ( ); // == NULL /*211*/ int GetGameMode ( ); /*212*/ void SetGameMode (int nMode); /*213*/ void _unimplemented_action_0213 ( ); // == NULL /*214*/ void _unimplemented_action_0214 ( ); // == NULL /*215*/ int AddCommand (object oObject, command cCommand, int bAddToFront, int bStatic, int nOverrideAddBehavior); /*216*/ void RemoveCommandByIndex (object oObject, int nIndex); /*217*/ void RemoveCommand (object oObject, command cCommand); /*218*/ command GetCommandByIndex (object oObject, int nIndex); /*219*/ void _unimplemented_action_0219 ( ); // == NULL /*21A*/ int ClearAllCommands (object oObject, int nHardClear); /*21B*/ command GetCurrentCommand (object oObject); /*21C*/ void ClearCurrentCommand (object oObject); /*21D*/ int GetCommandType (command cCommand); /*21E*/ void _unimplemented_action_021E ( ); // == NULL /*21F*/ void _unimplemented_action_021F ( ); // == NULL /*220*/ int GetCommandInt (command cCommand, int nIndex); /*221*/ void SetCommandInt (command cCommand, int nCommandInt, int nIndex); /*222*/ float GetCommandFloat (command cCommand, int nIndex); /*223*/ command SetCommandFloat (command cCommand, float nCommandFloat, int nIndex); /*224*/ void _unimplemented_action_0224 ( ); // == NULL /*225*/ void _unimplemented_action_0225 ( ); // == NULL /*226*/ object GetCommandObject (command cCommand, int nIndex); /*227*/ command SetCommandObject (command cCommand, object nCommandObject, int nIndex); /*228*/ void _unimplemented_action_0228 ( ); // == NULL /*229*/ void _unimplemented_action_0229 ( ); // == NULL /*22A*/ void _unimplemented_action_022A ( ); // == NULL /*22B*/ void _unimplemented_action_022B ( ); // == NULL /*22C*/ void _unimplemented_action_022C ( ); // == NULL /*22D*/ void _unimplemented_action_022D ( ); // == NULL /*22E*/ void _unimplemented_action_022E ( ); // == NULL /*22F*/ command CommandMoveToLocation (location lLocation, int bRunToLocation, int bDeactivateAtEnd); /*230*/ command CommandMoveToObject (object oTarget, int bRunToLocation, float fMinRange, int bUseOriginalPosition, float fMaxRange); /*231*/ command CommandMoveAwayFromObject (object oTarget, float fAwayDistance, int bRunToLocation); /*232*/ command CommandEquipItem (object oItem, int nEquipSlot, int nWeaponSet); /*233*/ command CommandUnequipItem (object oItem); // == 562 (232) COMMAND_COMMANDEQUIPITEM /*234*/ void _unimplemented_action_0234 ( ); // == NULL /*235*/ void _unimplemented_action_0235 ( ); // == NULL /*236*/ command CommandAttack (object oTarget, int nForcedResult); /*237*/ void _unimplemented_action_0237 ( ); // == NULL /*238*/ void _unimplemented_action_0238 ( ); // == NULL /*239*/ command CommandPlayAnimation (int nAnimation, int nLoops, int bPlayNext, int bBlendIn); /*23A*/ void _unimplemented_action_023A ( ); // == NULL /*23B*/ void _unimplemented_action_023B ( ); // == NULL /*23C*/ void _unimplemented_action_023C ( ); // == NULL /*23D*/ void _unimplemented_action_023D ( ); // == NULL /*23E*/ void _unimplemented_action_023E ( ); // == NULL /*23F*/ void _unimplemented_action_023F ( ); // == NULL /*240*/ void _unimplemented_action_0240 ( ); // == NULL /*241*/ void _unimplemented_action_0241 ( ); // == NULL /*242*/ command CommandWait (float fSeconds); /*243*/ command CommandStartConversation (object oTarget, string rDialogFile); /*244*/ command CommandJumpToObject (object oTarget); /*245*/ command CommandJumpToLocation (location lLocation); /*246*/ command CommandUseAbility (int nAbilityId, object oTarget, vector vTarget, float nConjureTime, string sAbilitySourceItemTag); /*247*/ void _unimplemented_action_0247 ( ); // == NULL /*248*/ void _unimplemented_action_0248 ( ); // == NULL /*249*/ command CommandDoFunction (action fFunction); // not declared in script.ldf (patch.003): COMMAND_COMMANDDOFUNCTION /*24A*/ command CommandUseObject (object oTarget, int nAction); /*24B*/ void InteractWithObject (object oCreature, object oTarget, int nInteractionId, int nPose, int nLoops, int bPlayExit, int bSkipReposition); /*24C*/ void _unimplemented_action_024C ( ); // == NULL /*24D*/ void _unimplemented_action_024D ( ); // == NULL /*24E*/ void _unimplemented_action_024E ( ); // == NULL /*24F*/ void _unimplemented_action_024F ( ); // == NULL /*250*/ void _unimplemented_action_0250 ( ); // == NULL /*251*/ void RemoveEffectsByParameters (object oTarget, int nType, int nAbilityId, object oCreator); /*252*/ void RemoveAllEffects (object oTarget, int bIgnoreInjuries, int bDeath); /*253*/ int IsEffectValid (effect eEffect); /*254*/ void Engine_ApplyEffectAtLocation (int nDurationType, effect eEffect, location lLocation, float fDuration, object oCreator, int nAbilityId); /*255*/ void Engine_ApplyEffectOnObject (int nDurationType, effect eEffect, object oTarget, float fDuration, object oCreator, int nAbilityId); /*256*/ void RemoveEffect (object oTarget, effect eEffect); /*257*/ void TakeScreenshot (int bHideInterface, int nTitleStrRef, int nDescriptionStrRef, int nType, string sId); /*258*/ void SetWorldMapLocationLocName (object oLocation, int nStringID); /*259*/ int GetShowSpecialMoveFloaties ( ); /*25A*/ int GetGamePlotAssist ( ); /*25B*/ int GetHasAchievementByID (int nID); /*25C*/ int GetEffectType (effect eEffect); /*25D*/ int GetEffectFlags (effect efEffect); // == 604 (25C) COMMAND_GETEFFECTTYPE /*25E*/ vector GetMeleeRingPosition (object nRingOwnerId, int nRingIndex); /*25F*/ int GetEffectAnimation (effect efEffect); // == 604 (25C) COMMAND_GETEFFECTTYPE /*260*/ int GetEffectDurationType (effect eEffect); // == 604 (25C) COMMAND_GETEFFECTTYPE /*261*/ effect SetEffectFlags (effect efEffect, int nFlags); /*262*/ int IsAbilityAvailable (object oCreature, int nAbility); /*263*/ effect SetEffectAnimation (effect efEffect, int nAnimation); // == 609 (261) COMMAND_SETEFFECTFLAGS /*264*/ object GetEffectCreator (effect eEffect); // == 604 (25C) COMMAND_GETEFFECTTYPE /*265*/ effect SetEffectCreator (effect eEffect, object oCreator); // == 609 (261) COMMAND_SETEFFECTFLAGS /*266*/ int GetEffectID (effect eEffect); // == 604 (25C) COMMAND_GETEFFECTTYPE /*267*/ int GetAbilityCount (object oCreature, int nType, int nGUIType); // == 141 (08D) COMMAND_GETACTIVE /*268*/ void UnlockAchievementByID (int nID); /*269*/ int IncrementAchievementCountByID (int nID, int nIncrement); /*26A*/ int GetAchievementCountByID (int nID); /*26B*/ void ShowAllCodexEntries ( ); /*26C*/ int GetEffectAbilityID (effect efEffect); // == 604 (25C) COMMAND_GETEFFECTTYPE /*26D*/ effect SetEffectAbilityID (effect efEffect, int nAbilityId); // == 609 (261) COMMAND_SETEFFECTFLAGS /*26E*/ int GetFollowerApproval (object oFollower); /*26F*/ int GetClassRank (object oCreature, int nClass); /*270*/ object GetPartyLeader ( ); /*271*/ void SetPartyLeader (object oLeader); /*272*/ int ClearAmbientDialogs (object oObject); /*273*/ void SetCheatUsedFlag ( ); /*274*/ int GetCommandIsPlayerIssued (command oNode); /*275*/ int GetHasAchievement (string sAchievementID); // == 603 (25B) COMMAND_GETHASACHIEVEMENTBYID /*276*/ void SendOnlineTelemetry (int nModuleID, int nGroupID, string sTelemetryText); /*277*/ void SendOnlineScreenShot (string sFileName, string sShortDescription, string sLongDescription); /*278*/ void BeginSlideshow (string rConversation); /*279*/ int GetCanLevelUp (object oCreature); /*27A*/ effect EffectAreaOfEffect (int nId, string rScript, int nAoEVfx); /*27B*/ void ApplyEffectVisualEffect (object oCreator, object oTarget, int nVFXId, int nDurationType, float fDuration, int nAbilityId); /*27C*/ void OpenItemUpgradeGUI ( ); /*27D*/ int GetBackgroundDefaultsIndex (object oCreature); /*27E*/ void UnlockAchievement (string sAchievementID); // == 616 (268) COMMAND_UNLOCKACHIEVEMENTBYID /*27F*/ void UpdateOnlineStatistic (string sStatName, int nUpdateType, int nUpdatePeriod, float fStatValue, string sStatText); /*280*/ float GetOnlineStatistic (string sStatName, int nPeriodType); /*281*/ int IsItemStealable (object oItem); // == 141 (08D) COMMAND_GETACTIVE /*282*/ void SetCreatureIsStatue (object oObject, int value); // == 296 (128) COMMAND_SETITEMDROPPABLE /*283*/ void SetCreatureIsGhost (object oObject, int value); // == 296 (128) COMMAND_SETITEMDROPPABLE /*284*/ command CommandMoveToMultiLocations (location lLocations, int bRunToLocation, int nStartingWP, int bLoop); /*285*/ void SetItemDamaged (object oObject, int value); // == 296 (128) COMMAND_SETITEMDROPPABLE /*286*/ int GetItemDamaged (object oObject); // == 141 (08D) COMMAND_GETACTIVE /*287*/ void LoadCutscene (string rCutscene, object oPlayer, int bPlayImmediately, string aTargetTagsToReplace, object aReplacementObjects, int bActorsHaveWeapons); /*288*/ void PlayCutscene (object oPlayer); /*289*/ void SetMapPatchState (object oMapPatch, int nState); // == NULL /*28A*/ int GetMapPatchState (object oMapPatch); // == NULL /*28B*/ object GetPlayerMapPatch (object pPlayer, string sTag, int nNth); // == NULL /*28C*/ void SetMapPinState (object oMapPin, int nEnable); /*28D*/ int GetMapPinState (object oMapPin); /*28E*/ object GetPlayerMapPin (object pPlayer, string sTag, int nNth); // == NULL /*28F*/ effect SetEffectEngineInteger (effect efEffect, int nIndex, int nValue); /*290*/ vector GetOrientation (object oTarget); /*291*/ void SetOrientation (object oTarget, vector vOrientation); /*292*/ location SetLocationFacing (location lLocation, float fAngle); /*293*/ location GetSafeLocation (location lLocation); /*294*/ int GetPartyPlotFlag (object oParty, string strPlot, int nFlag, int nCallScript); /*295*/ void SetPartyPlotFlag (object oParty, string strPlot, int nFlag, int nValue, int nCallScript); /*296*/ void _undocumented_action_0296 ( ); // == 660 (294) COMMAND_GETPARTYPLOTFLAG not declared in script.ldf (patch.003): COMMAND_GETPARTYPLO /*297*/ void _undocumented_action_0297 ( ); // == 661 (295) COMMAND_SETPARTYPLOTFLAG not declared in script.ldf (patch.003): COMMAND_SETPARTYPLO /*298*/ void _unimplemented_action_0298 ( ); // == NULL /*299*/ int GetPlotEntryName (string strPlot); /*29A*/ void _unimplemented_action_029A ( ); // == NULL /*29B*/ int GetM2DAInt (int n2DA, string sColumn, int nRow, string s2da); /*29C*/ void _unimplemented_action_029C ( ); // == NULL /*29D*/ void ResetReaction (object oObject); /*29E*/ void _unimplemented_action_029E ( ); // == NULL /*29F*/ void _unimplemented_action_029F ( ); // == NULL /*2A0*/ void SpawnBodyBag (object oCreature, int bForce); /*2A1*/ object GetObjectsInShape (int nObjectTypeMask, int nShapeId, location lLocation, float fA, float fB, float fC, int bExcludeDead); // == 197 (0C5) COMMAND_FILTEROBJECTSINSHAPE /*2A2*/ void Warning (string sWarning); // == 174 (0AE) COMMAND_SENDTORUNDB /*2A3*/ object GetItemPossessedBy (object oObject, string sTag); /*2A4*/ void SetObjectInteractive (object oObject, int value); // == 296 (128) COMMAND_SETITEMDROPPABLE /*2A5*/ int GetObjectInteractive (object oObject); // == 141 (08D) COMMAND_GETACTIVE /*2A6*/ void _unimplemented_action_02A6 ( ); // == NULL /*2A7*/ void _unimplemented_action_02A7 ( ); // == NULL /*2A8*/ void Probe (string sOutput, float fValue); /*2A9*/ effect GetCurrentEffect ( ); /*2AA*/ void SetIsCurrentEffectValid (int nValid); /*2AB*/ int GetEffectInteger (effect efEffect, int nIndex); /*2AC*/ effect SetEffectInteger (effect efEffect, int nIndex, int nValue); /*2AD*/ float GetEffectFloat (effect efEffect, int nIndex); // == 683 (2AB) COMMAND_GETEFFECTINTEGER /*2AE*/ effect SetEffectFloat (effect efEffect, int nIndex, float fValue); // == 684 (2AC) COMMAND_SETEFFECTINTEGER /*2AF*/ object GetEffectObject (effect efEffect, int nIndex); // == 683 (2AB) COMMAND_GETEFFECTINTEGER /*2B0*/ effect SetEffectObject (effect efEffect, int nIndex, object oValue); // == 684 (2AC) COMMAND_SETEFFECTINTEGER /*2B1*/ string GetEffectString (effect efEffect, int nIndex); // == 683 (2AB) COMMAND_GETEFFECTINTEGER /*2B2*/ effect SetEffectString (effect efEffect, int nIndex, string sValue); // == 684 (2AC) COMMAND_SETEFFECTINTEGER /*2B3*/ void SetAttackResult (object oAttacker, int nResult1, effect eDamageEffect1, int nResult2, effect eDamageEffect2); /*2B4*/ void _unimplemented_action_02B4 ( ); // == NULL /*2B5*/ float GetWeaponAttackRating (object oAttacker, int nRightHandWeapon); /*2B6*/ int GetPlatform ( ); /*2B7*/ effect GetAttackImpactDamageEffect (object oAttacker, int nDamageEffectId); /*2B8*/ void WorldMapStartTravelling (string sRandomEncounterArea, string sRandomEncounterWaypointTag, object oSourceLocationOverride); /*2B9*/ void WorldMapCompleteRandomEncounter ( ); /*2BA*/ void SetBodybagDecayDelay (object oBodybag, int nMilliSec); // == 296 (128) COMMAND_SETITEMDROPPABLE /*2BB*/ int GetWeaponBaseDamage (object oAttacker, int nRightHandWeapon); // == 693 (2B5) COMMAND_GETWEAPONATTACKRATING /*2BC*/ int DEPRECATED_GetCreatureStrengthModifier (object oAttacker); // == 693 (2B5) COMMAND_GETWEAPONATTACKRATING /*2BD*/ float GetWeaponStrengthModifier (object oAttacker, int nRightHandWeapon); // == 693 (2B5) COMMAND_GETWEAPONATTACKRATING /*2BE*/ void SetCreaturesGlobalMaxTimeBeforeDecay (int nMilliSec); /*2BF*/ float GetWeaponArmorPenetration (object oAttacker, object oTarget, int nRightHandWeapon); // == 693 (2B5) COMMAND_GETWEAPONATTACKRATING /*2C0*/ string DEBUG_ConsoleCommand (string sArg); /*2C1*/ int GetTime ( ); /*2C2*/ void SetFollowerState (object oCreature, int nState); /*2C3*/ object GetObjectsInArea (object oArea, string sTag); // == 337 (151) COMMAND_GETCREATURESINAOE /*2C4*/ int GetArraySize (int array); /*2C5*/ void _unimplemented_action_02C5 ( ); // == NULL /*2C6*/ void _unimplemented_action_02C6 ( ); // == NULL /*2C7*/ void _unimplemented_action_02C7 ( ); // == NULL /*2C8*/ effect GetEffects (object oObject, int nEffectType, int nAbilityId, object oCreator, int nDurationType, int nEffectId); // == 177 (0B1) COMMAND_GETHASEFFECT /*2C9*/ effect GetEffectsByCreator (object oCreator, int nAbilityID, int nType); /*2CA*/ int IsControlled (object oObject); /*2CB*/ void SetAbilityResult (object oUser, int nResistanceCheckResult, int nProjectileTarget); /*2CC*/ void SetCommandResult (object oObject, int nResult); /*2CD*/ void _unimplemented_action_02CD ( ); // == NULL /*2CE*/ void _unimplemented_action_02CE ( ); // == NULL /*2CF*/ float GetCreatureGoreLevel (object oCreature); /*2D0*/ void SetCreatureGoreLevel (object oCreature, float fGoreLevel); /*2D1*/ command CommandDoEvent (event evToQueue); // not declared in script.ldf (patch.003): COMMAND_COMMANDDOEVENT /*2D2*/ void ShowSpecUnlockedNotification (int nSpecID); /*2D3*/ void ShowAreaUnlockedNotification (string sAreaName, string sImage); /*2D4*/ int GetCommandQueueSize (object oObject); /*2D5*/ void Engine_SetModalAbilityGUI (object oCreature, int nAbilityId, int nStatus); /*2D6*/ int IsModalAbilityActive (object oCreature, int nAbilityId); /*2D7*/ effect SetEffectEngineVector (effect efEffect, int nIndex, vector vVector); // == 655 (28F) COMMAND_SETEFFECTENGINEINTEGER /*2D8*/ location GetFollowerWouldBeLocation (object oObject); /*2D9*/ void SetDead (object oObject, int bDeadFlagValue); // == NULL /*2DA*/ int GetCommandPriority (command cCommand); /*2DB*/ int IsConjuring (object oObject); /*2DC*/ string ResourceToString (string rRes); /*2DD*/ void PrintResource (string rResource, int bPrepend); /*2DE*/ event SetEventResource (event evEvent, int nIndex, string rValue); /*2DF*/ string GetEventResource (event evEvent, int nIndex); /*2E0*/ string GetLocalResource (object oObject, string sVarName); /*2E1*/ void SetLocalResource (object oObject, string sVarName, string sResource); /*2E2*/ float GetCreatureProperty (object oCreature, int nProperty, int nValueType); /*2E3*/ int GetCreaturePropertyType (object oCreature, int nProperty); /*2E4*/ void SetCreatureProperty (object oCreature, int nProperty, float fNewValue, int nValueType); /*2E5*/ void UpdateCreatureProperty (object oCreature, int nProperty, float fNewValue, int nValueType); /*2E6*/ string GetPlotResRef (string strPlot); /*2E7*/ string GetPlotFlagName (string strPlot, int nFlag); /*2E8*/ void DisplayFloatyMessage (object oCreature, string sMessage, int nStyle, int nColour, float nDuration); /*2E9*/ int DoAreaTransition (string sArea, string sWaypointTag); /*2EA*/ void StartCharGen (object oCreature, int nMode, int nImportEnabled); /*2EB*/ void DisplayStatusMessage (string sMessage, int nColour); /*2EC*/ void SetQuickslot (object oCreature, int nSlot, int nAbilityID, string sItemTag); /*2ED*/ void ShowFloatyIcon (object oCreature, string sIconName); /*2EE*/ void SetStoryPlot (string sPlot); /*2EF*/ void SetPlotGiver (object oid, int bIsPlotGiver); /*2F0*/ void SetWorldMapGuiStatus (int nStatus); /*2F1*/ void SetWorldMapLocationStatus (object oLocation, int nStatusId, int bSuppressActiveFlash); /*2F2*/ void SetWorldMapPlayerLocation (object oMap, object oLocation); /*2F3*/ void SetWorldMapPrimary (object oMapId); /*2F4*/ void SetWorldMapSecondary (object oMapId); /*2F5*/ void OpenPrimaryWorldMap ( ); /*2F6*/ void SetStealthEnabled (object oCreature, int nEnabled); // == 296 (128) COMMAND_SETITEMDROPPABLE /*2F7*/ int GetStealthEnabled (object oCreature); // == 141 (08D) COMMAND_GETACTIVE /*2F8*/ void SetCanLevelUp (object oPartyMember, int bCanLevelUp); /*2F9*/ effect SetEffectEngineFloat (effect efEffect, int nIndex, float fValue); // == 655 (28F) COMMAND_SETEFFECTENGINEINTEGER /*2FA*/ effect SetEffectEngineObject (effect efEffect, int nIndex, object oValue); // == 655 (28F) COMMAND_SETEFFECTENGINEINTEGER /*2FB*/ int GetCombatantType (object oidCreature); /*2FC*/ void SetCreatureCanBeTracked (object oCreature, int nEnabled); // == 296 (128) COMMAND_SETITEMDROPPABLE /*2FD*/ int GetCreatureCanBeTracked (object oCreature); // == 141 (08D) COMMAND_GETACTIVE /*2FE*/ void SetCreatureRank (object oCreature, int nRank); /*2FF*/ float RandomFloat ( ); /*300*/ int GetFollowPartyLeader (object oCreature); /*301*/ void SetFollowPartyLeader (object oCreature, int bFollow); /*302*/ void DisplayPortraitMessage (object oPlayerCreature, string sMessage, int nColour); /*303*/ void ShowDeathScreen (int bCaptured); /*304*/ int GetNumTactics (object oCreature); /*305*/ void SetNumTactics (object oCreature, int nNumTactics, int bSendNotification); /*306*/ int IsTacticEnabled (object oCreature, int nIndex); /*307*/ int GetTacticTargetType (object oCreature, int nIndex); /*308*/ int GetTacticCondition (object oCreature, int nIndex); /*309*/ int GetTacticCommand (object oCreature, int nIndex); /*30A*/ int GetTacticCommandParam (object oCreature, int nIndex); /*30B*/ void ShowChantersGUI (int nBoardID); /*30C*/ void AddItemVisualEffect (object oTarget, int nVFXId); /*30D*/ int GetItemVisualEffectsIDs (object oTarget); /*30E*/ void RemoveItemVisualEffect (object oTarget, int nId); /*30F*/ void RemoveAllItemVisualEffects (object oTarget); /*310*/ int GetItemPropertyPower (object oItem, int nPropertyId, int bIncludeSubItems); /*311*/ int GetItemOnHitPower (object oItem); // == NULL /*312*/ void SetItemOnHitProperties (object oItem, int nEffectId, int nPower); // == NULL /*313*/ int IsPartyAIEnabled (object oCreature); /*314*/ void ShowGeneralScoreboardGUI ( ); /*315*/ void ShowChampionshipScoreboardGUI ( ); /*316*/ void ShowTournamentScoreboardGUI ( ); /*317*/ void AddGeneralScoreboardEntry (string sName, int nVictories, int nDefeats, int nFatalities, int bQualified, int bDead); /*318*/ void SetChampionshipScoreboardEntry (int nEntryID, string sName, int bWinner, int bIsPlayer); /*319*/ void SetTournamentScoreboardEntry (int nEntryID, string sName, int bDefeated, int bIsPlayer); /*31A*/ void ShowPartyPickerGUI ( ); /*31B*/ void SetPlotActionsEnabled (int nEnabled); /*31C*/ void SetPlotActionState (int nPlotActionId, int nPlotActionState); /*31D*/ int GetPlotActionState (int nPlotActionId); /*31E*/ void SetPlotActionCount (int nPlotActionId, int nPlotActionCount); /*31F*/ int GetPlotActionCount (int nPlotActionId); /*320*/ void SetAtmosphere (int nParamId, float fParamValue); /*321*/ void SetAtmosphereRGB (int nParamId, float fRedValue, float fGreenValue, float fBlueValue); /*322*/ void ResetAtmosphere ( ); /*323*/ void FB_SetEffectResource (string sEID, string sResID, float fResValue); /*324*/ void FB_SetEffectEnabled (string sEID, int nEnabled); /*325*/ void SetLookAtEnabled (object oCreature, int nEnabled); // == 296 (128) COMMAND_SETITEMDROPPABLE /*326*/ void SetTeamId (object oObject, int nTeamId); /*327*/ int GetTeamId (object oObject); /*328*/ object GetTeam (int nTeamId, int nMembersType); /*329*/ string ReadIniEntry (string sHeadingLabel, string sValueLabel); /*32A*/ void SetPlotActionSet (int nPlotActionSet); /*32B*/ command CommandFly (location lLocation); /*32C*/ int CanUseItem (object oCreature, object oItem); /*32D*/ void SetCanUseItem (object oCreature, int value); // == 296 (128) COMMAND_SETITEMDROPPABLE /*32E*/ void SetControllable (object oFollower, int nIsControllable); /*32F*/ void SetPrimaryControlled (object oFollower); /*330*/ int GetConditionedAbilities (object oCreature, int nConditions); /*331*/ int GetPlaceableTreasureCategory (object oPlaceable); /*332*/ int GetPlaceableTreasureRank (object oPlaceable); /*333*/ int CanUseConditionedAbility (object oCreature, int nAbility, int nConditions); /*334*/ void Screenshot (string sFileName, string sPath, int bHideConsole); /*335*/ object GetItemSubItems (object oItem); /*336*/ void _undocumented_action_0336 ( ); // not declared in script.ldf (patch.003): COMMAND_ADDITEMSUBITEM /*337*/ void _undocumented_action_0337 ( ); // not declared in script.ldf (patch.003): COMMAND_REMOVEITEMSUBITEM /*338*/ void SetRoamLocation (object oCreature, location lLocation); /*339*/ void SetRoamRadius (object oCreature, float fRadius); /*33A*/ location GetRoamLocation (object oCreature); /*33B*/ object GetCreatureBodyBag (object oCreature); /*33C*/ int GetPRCEnabled (string sPRCName); /*33D*/ void SetFollowerApprovalDescription (object oFollower, int nDescStrRef); /*33E*/ int GetPlayTime ( ); /*33F*/ int BuyDownload (string sOfferId); /*340*/ void SaveGamePostCampaign ( ); /*341*/ effect EffectDamage (float fValue, int nDamageType, int nFlags, int nImpactVFX); /*342*/ effect EffectImpact (float fDamage, object oWeapon, int nVfx, int nAbi, int nDamageType); /*343*/ effect EffectModifyProperty (int nProperty0, float fChange0, int nProperty1, float fChange1, int nProperty2, float fChange2); /*344*/ int IsPRCAvailable ( ); /*345*/ void LogStoryEvent (int nEventID); /*346*/ int GetNameStrref (object oObject); /*347*/ void SetPhysicsController (object oCreature, int bEnable); // == 296 (128) COMMAND_SETITEMDROPPABLE /*348*/ int GetMaxLevel ( ); /*349*/ int GetHashedM2DAInt (int n2DA, int nColumnHash, int nRow); /*34A*/ void SetTrainingMode (int nTrainingMode); /*34B*/ void BeginTrainingStep (int nStepID, int nExpectedTrainingEvent, int nTrainingEventArg); /*34C*/ void SetGameCompletionPercentage (float fPercentage); /*34D*/ void SetIndividualImpactAOEEvent (object oCaster, object oTarget, int nAbility, location lTarget, int nBaseDelay); /*34E*/ void CloseQuestGroup (string sGroupOrPlotResRef); /*34F*/ effect EffectModifyPropertyHostile (int nProperty0, float fChange0, int nProperty1, float fChange1, int nProperty2, float fChange2); // == 835 (343) COMMAND_EFFECTMODIFYPROPERTY /*350*/ void HighlightGuiElement (int nGuiElement, int nHighlightArg); /*351*/ void SetZoomLevel (float fZoomLevel); /*352*/ void RemoveQuest (string sPlotResRef); /*353*/ int GetGraphicsDetailLevel ( ); /*354*/ void OpenJournalPRCTab (string sOfferId); /*355*/ string GetPlotGUID (string strPlotResRef); /*356*/ void ApplyEffectModifyProperty (effect eModifyPropertyEffect); /*357*/ void RemoveEffectModifyProperty (effect eModifyPropertyEffect); // == 854 (356) COMMAND_APPLYEFFECTMODIFYPROPERTY /*358*/ int GetM2DARowIdFromRowIndex (int n2DA, int nRowIndex, string s2DA); /*359*/ int IsPRC (string sDeprecated, int nDeprecated); /*35A*/ void SetPartyPickerStage (string sAreaName, string s2DAName); /*35B*/ void _undocumented_action_035B ( ); // not declared in script.ldf (patch.003): COMMAND_GETABILITYLIST /*35C*/ void _undocumented_action_035C ( ); // not declared in script.ldf (patch.003): COMMAND_REQUESTTARGET /*35D*/ void _undocumented_action_035D ( ); // not declared in script.ldf (patch.003): COMMAND_SETPLOTACTIONCOOLDOWN /*35E*/ void _undocumented_action_035E ( ); // not declared in script.ldf (patch.003): COMMAND_ISPACKAGELOADED