Compare commits

..

No commits in common. "3c10af0104039da4b8a3bbc30303ca111437a18f" and "874b5faf2e0f9376007af5bf0c8d31e618c5bddd" have entirely different histories.

104 changed files with 61 additions and 96 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -266,7 +266,7 @@ Function UnlockWord(WordOfPower akWord) native global
bool Function UsingGamepad() native global
; SKSE64 additions built 2026-08-27 15:31:27.926000 UTC
; SKSE 64 additions built 2020-07-29 17:24:48.495000 UTC
; Get/Set Perk Points
int Function GetPerkPoints() global native
Function SetPerkPoints(int perkPoints) global native
@ -456,6 +456,5 @@ Function SetPlayerLevel(int level) global native
bool Function UnlockAchievement(string name) global
{ Added by Enderal - Forgotten Stories. Moved to Steam.pex as of 2.0.12, keeping it here in case some older mod calls it. }
Debug.Notification("Outdated mod detected: Game.UnlockAchievement() will be removed soon.")
return Steam.UnlockAchievement(name)
EndFunction

View File

@ -358,7 +358,7 @@ Event OnVampirismStateChanged(bool abIsVampire)
EndEvent
; SKSE64 additions built 2026-08-27 15:31:27.926000 UTC
; SKSE64 additions built 2024-01-17 20:01:40.731000 UTC
; Additional useful effect information
float Function GetDuration() native
float Function GetTimeElapsed() native

View File

@ -860,7 +860,7 @@ Function ForceTargetAngle(float afXAngle = 0.0, float afYAngle = 0.0, float afZA
Function ClearForcedMovement() native
; SKSE64 additions built 2026-08-27 15:31:27.926000 UTC
; SKSE64 additions built 2024-01-17 20:01:40.731000 UTC
; returns the form for the item worn at the specified slotMask
; use Armor.GetMaskForSlot() to generate appropriate slotMask
Form Function GetWornForm(int slotMask) native

View File

@ -43,7 +43,7 @@ Function SetProtected(bool abProtected = true) native
Function SetOutfit( Outfit akOutfit, bool abSleepOutfit = false ) native
; SKSE64 additions built 2026-08-27 15:31:27.926000 UTC
; SKSE64 additions built 2024-01-17 20:01:40.731000 UTC
; get/set the CombatStyle of the actor
CombatStyle Function GetCombatStyle() native
Function SetCombatStyle(CombatStyle cs) native

View File

@ -109,7 +109,7 @@ EndEvent
Event OnUpdateGameTime()
EndEvent
; SKSE64 additions built 2026-08-27 15:31:27.926000 UTC
; SKSE64 additions built 2024-01-17 20:01:40.731000 UTC
; return the name of the alias
string Function GetName() native

View File

@ -1,6 +1,6 @@
Scriptname Ammo extends Form Hidden
; SKSE64 additions built 2026-08-27 15:31:27.926000 UTC
; SKSE64 additions built 2024-01-17 20:01:40.731000 UTC
; Returns whether this ammo is a bolt
bool Function IsBolt() native

View File

@ -1,7 +1,7 @@
Scriptname Apparatus extends MiscObject Hidden
; SKSE64 additions built 2026-08-27 15:31:27.926000 UTC
; SKSE64 additions built 2024-01-17 20:01:40.731000 UTC
int Function GetQuality() native
Function SetQuality(int quality) native

View File

@ -3,7 +3,7 @@ Scriptname Armor extends Form Hidden
; Returns the "warmth rating" for this armor
float Function GetWarmthRating() native
; SKSE64 additions built 2026-08-27 15:31:27.926000 UTC
; SKSE64 additions built 2024-01-17 20:01:40.731000 UTC
int Function GetArmorRating() native
int Function GetAR()
return GetArmorRating()

View File

@ -1,6 +1,6 @@
Scriptname Book Extends Form Hidden
; SKSE64 additions built 2026-08-27 15:31:27.926000 UTC
; SKSE64 additions built 2024-01-17 20:01:40.731000 UTC
; Returns the spell that this book teaches
Spell Function GetSpell() native
Int Function GetSkill() native

View File

@ -34,7 +34,7 @@ Function SetFogPower(float afPower) native
; Sets this cell as public or private
Function SetPublic(bool abPublic = true) native
; SKSE64 additions built 2026-08-27 15:31:27.926000 UTC
; SKSE64 additions built 2024-01-17 20:01:40.731000 UTC
; Returns the number of refs in the cell
int Function GetNumRefs(int formTypeFilter = 0) native

View File

@ -1,6 +1,6 @@
Scriptname ConstructibleObject extends MiscObject Hidden
; SKSE64 additions built 2026-08-27 15:31:27.926000 UTC
; SKSE64 additions built 2024-01-17 20:01:40.731000 UTC
; Gets/Sets the result of this recipe
Form Function GetResult() native

View File

@ -57,10 +57,6 @@ Bool property bReducedRespawn = true auto
int property iCurrentCritterCount = 0 auto hidden ; not used, set to -1 to break vanilla spawner while loops
bool bLooping = false ; reintroduced to catch baked runaway loops
float extraWaitTime = 0.0 ; extra time in seconds before trying again
float fDetachGameTime = 0.0 ; game time (days) of the last cell detach
; critter.psc delays the kill of a detached critter by 0.31831 game hours and cancels it if the cell attaches again earlier,
; so the live count is carried over on such a quick re-attach
float fOldCrittersDeadAfter = 0.02
float property fCheckPlayerDistanceTime = 2.0 auto hidden
@ -112,12 +108,7 @@ EVENT OnCellAttach()
VanillaLoopBreak()
; the spawner will attach to a cell, this can be the cell we just teleported to (door) or one that loaded in the distance
; shouldSpawn() will check if the spawner should start spawning critters, wait a bit or do nothing
; critters of the previous attach survive a short detach, keep counting them
int liveCritters = iSpawnedCritterCount - iDeadCritterCount
if liveCritters < 0 || liveCritters > iMaxCritterCount || Utility.GetCurrentGameTime() - fDetachGameTime > fOldCrittersDeadAfter
liveCritters = 0
endif
iSpawnedCritterCount = liveCritters
iSpawnedCritterCount = 0
iDeadCritterCount = 0
isSpawning = false
@ -155,7 +146,6 @@ endEVENT
EVENT onCellDetach()
shouldTryAgain = false
UnregisterForUpdate()
fDetachGameTime = Utility.GetCurrentGameTime()
endEVENT
Function SpawnABatchOfCritters()
@ -181,20 +171,15 @@ Function SpawnABatchOfCritters()
spawnAttempts = 1
endif
bool spawnFailed = spawnAttempts > 0
while (spawnAttempts>0)
if (SpawnCritterAtRef(self))
iSpawnedCritterCount += 1
spawnFailed = false
endif
spawnAttempts -=1
endWhile
isSpawning = false
if spawnFailed
;no critter could be placed, CritterTypes is broken: do not retry until the next cell attach or critter death
shouldTryAgain = false
elseif (iMaxCritterCount - iSpawnedCritterCount + iDeadCritterCount>0)
if (iMaxCritterCount - iSpawnedCritterCount + iDeadCritterCount>0)
;we couldn't spawn enough critters, or the player is currently killing them : try a bit later
QueueAdditionalSpawns()
endIf
@ -231,35 +216,22 @@ bool Function SpawnCritterAtRef(ObjectReference arSpawnRef)
if VanillaLoopBreak()
return false
endif
int typeCount = 0
if CritterTypes
typeCount = CritterTypes.GetSize()
endif
if typeCount == 0
Debug.Trace("CritterSpawn :" + self + " has an empty CritterTypes list")
return false
endif
; Pick a random critter type
Activator critterType = CritterTypes.GetAt(RandomInt(0, typeCount - 1)) as Activator
if !critterType
Debug.Trace("CritterSpawn :" + arSpawnRef + " attempted to spawn a bad critter type, check the contents of " + CritterTypes)
Activator critterType = CritterTypes.GetAt(RandomInt(0, CritterTypes.GetSize() - 1)) as Activator
if critterType
Critter critty = arSpawnRef.PlaceAtMe(critterType, 1, false, true) as Critter
if critty
critty.SetInitialSpawnerProperties(fLeashLength, fLeashHeight, fLeashDepth, fMaxPlayerDistance + fLeashLength, self)
return true
endif
else
Debug.Trace("CritterSpawn :" + arSpawnRef + " attempted to spawn a bad critter type, check the contents of " + CritterTypes );
return false
endif
ObjectReference critterRef = arSpawnRef.PlaceAtMe(critterType, 1, false, true)
Critter critty = critterRef as Critter
if !critty
; the activator has no Critter script, remove the orphan reference
Debug.Trace("CritterSpawn :" + critterType + " has no Critter script, check the contents of " + CritterTypes)
if critterRef
critterRef.Delete()
endif
return false
endif
critty.SetInitialSpawnerProperties(fLeashLength, fLeashHeight, fLeashDepth, fMaxPlayerDistance + fLeashLength, self)
return true
return false
endFunction

View File

@ -3,7 +3,7 @@ Scriptname Enchantment extends Form Hidden
; Is this enchantment classified as hostile?
bool Function IsHostile() native
; SKSE64 additions built 2026-08-27 15:31:27.926000 UTC
; SKSE64 additions built 2024-01-17 20:01:40.731000 UTC
; return the number of the effects
int Function GetNumEffects() native

View File

@ -74,7 +74,7 @@ Function SetPlayerExpelled(bool abIsExpelled = true) native
; Sets this faction's reaction towards the other
Function SetReaction(Faction akOther, int aiNewValue) native
; SKSE64 additions built 2026-08-27 15:31:27.926000 UTC
; SKSE64 additions built 2024-01-17 20:01:40.731000 UTC
int property kFaction_HiddenFromNPC = 0x00000001 AutoReadOnly
int property kFaction_SpecialCombat = 0x00000002 AutoReadOnly

View File

@ -1,7 +1,7 @@
Scriptname Flora extends Activator Hidden
; SKSE64 additions built 2026-08-27 15:31:27.926000 UTC
; SKSE64 additions built 2024-01-17 20:01:40.731000 UTC
SoundDescriptor Function GetHarvestSound() native
Function SetHarvestSound(SoundDescriptor akSoundDescriptor) native

View File

@ -118,7 +118,7 @@ EndEvent
Event OnUpdateGameTime()
EndEvent
; SKSE64 additions built 2026-08-27 15:31:27.926000 UTC
; SKSE64 additions built 2024-01-17 20:01:40.731000 UTC
; Returns the typecode for this form object
Int Function GetType() native

View File

@ -23,7 +23,7 @@ Function RemoveAddedForm(Form apForm) native
Function Revert() native
; SKSE64 additions built 2026-08-27 15:31:27.926000 UTC
; SKSE64 additions built 2024-01-17 20:01:40.731000 UTC
; Returns a Form array of this list (Invalid entries will be None)
Form[] Function ToArray() native

View File

@ -12,7 +12,7 @@ int Function LearnNextEffect() native
; Flags the all effects as known by the player
Function LearnAllEffects() native
; SKSE64 additions built 2026-08-27 15:31:27.926000 UTC
; SKSE64 additions built 2024-01-17 20:01:40.731000 UTC
; return the number of the effects
int Function GetNumEffects() native

View File

@ -8,7 +8,7 @@ Function SendStoryEvent(Location akLoc = None, ObjectReference akRef1 = None, Ob
bool Function SendStoryEventAndWait(Location akLoc = None, ObjectReference akRef1 = None, ObjectReference akRef2 = None, \
int aiValue1 = 0, int aiValue2 = 0) native
; SKSE64 additions built 2026-08-27 15:31:27.926000 UTC
; SKSE64 additions built 2024-01-17 20:01:40.731000 UTC
; return the keyword with the specified key
Keyword Function GetKeyword(string key) global native

View File

@ -6,7 +6,7 @@ Function AddForm(Form apForm, int aiLevel) native
; Removes all script added forms from this leveled list
Function Revert() native
; SKSE64 additions built 2026-08-27 15:31:27.926000 UTC
; SKSE64 additions built 2024-01-17 20:01:40.731000 UTC
int Function GetNumForms() native
Form Function GetNthForm(int n) native

View File

@ -6,7 +6,7 @@ Function AddForm(Form apForm, int aiLevel, int aiCount) native
; Removes all script added forms from this leveled list
Function Revert() native
; SKSE64 additions built 2026-08-27 15:31:27.926000 UTC
; SKSE64 additions built 2024-01-17 20:01:40.731000 UTC
int function GetChanceNone() native
Function SetChanceNone(int chance) native

View File

@ -6,7 +6,7 @@ Function AddForm(Form apForm, int aiLevel) native
; Removes all script added forms from this leveled list
Function Revert() native
; SKSE64 additions built 2026-08-27 15:31:27.926000 UTC
; SKSE64 additions built 2024-01-17 20:01:40.731000 UTC
int function GetChanceNone() native
Function SetChanceNone(int chance) native

View File

@ -48,5 +48,5 @@ Function SetKeywordData(Keyword akKeyword, float afData) native
; Sets this location as cleared or not
Function SetCleared(bool abCleared = true) native
; SKSE64 additions built 2026-08-27 15:31:27.926000 UTC
; SKSE64 additions built 2024-01-17 20:01:40.731000 UTC
Location Function GetParent() native

View File

@ -2,7 +2,7 @@ Scriptname MagicEffect extends Form Hidden
; Get the Associated Skill for this MagicEffect
string Function GetAssociatedSkill() native
; SKSE64 additions built 2026-08-27 15:31:27.926000 UTC
; SKSE64 additions built 2024-01-17 20:01:40.731000 UTC
Function SetAssociatedSkill(string skill) native
string Function GetResistance() native

View File

@ -39,7 +39,7 @@ float Function sqrt(float afValue) global native
; Calculates the tangent of the passed in value (in degrees)
float Function tan(float afValue) global native
; SKSE64 additions built 2026-08-27 15:31:27.926000 UTC
; SKSE64 additions built 2024-01-17 20:01:40.731000 UTC
int Function LeftShift(int value, int shiftBy) global native
int Function RightShift(int value, int shiftBy) global native
int Function LogicalAnd(int arg1, int arg2) global native

View File

@ -158,9 +158,6 @@ Function AddItem(Form akItemToAdd, int aiCount = 1, bool abSilent = false) nativ
; Adds this reference (which is a map marker) to the map, optionally making it available for fast travel
Function AddToMap(bool abAllowFastTravel = false) native
; For Containers only. Sets whether or not to allow stolen items to appear in the menu.
Function SetContainerAllowStolenItems(bool setAllowStolenItems) native
; Apply an impulse to this reference
Function ApplyHavokImpulse(float afX, float afY, float afZ, float afMagnitude) native
@ -217,9 +214,6 @@ Function ForceRemoveRagdollFromWorld() native
; Gets the actor that owns this object (or None if not owned by an Actor)
ActorBase Function GetActorOwner() native
; Gets the number of items in a container/invetory
int Function GetAllItemsCount() native
; Get the current X angle of this object
float Function GetAngleX() native
@ -408,9 +402,6 @@ bool Function IsActivationBlocked() native
; Returns if the 3d for this object is loaded or not
bool Function Is3DLoaded() native
; Returns if the container/inventory is empty
bool Function IsContainerEmpty() native
; Is this object currently flagged for delete?
bool Function IsDeleted() native
@ -506,9 +497,6 @@ Function RemoveAllInventoryEventFilters() native
; Removes all items from this container, transferring it to the other object if passed
Function RemoveAllItems(ObjectReference akTransferTo = None, bool abKeepOwnership = false, bool abRemoveQuestItems = false) native
; Removes all stolen items, transfering it to the other object if passed.
Function RemoveAllStolenItems(ObjectReference akTransferTo = None) native
; Remove an inventory event filter from this reference. Item added/removed events matching the
; specified form (or in the specified form list) will no longer be let through.
Function RemoveInventoryEventFilter(Form akFilter) native
@ -770,8 +758,14 @@ int Property Motion_Fixed = 5 AutoReadOnly
int Property Motion_ThinBoxIntertia = 6 AutoReadOnly
int Property Motion_Character = 7 AutoReadOnly
; added in 1.6.1126
Bool Function IsContainerEmpty() Native
Function RemoveAllStolenItems(ObjectReference akTransferTo) Native
Function SetContainerAllowStolenItems(Bool setAllowStolenItems) Native
Int Function GetAllItemsCount() Native
; SKSE64 additions built 2026-08-27 15:31:27.926000 UTC
; SKSE64 additions built 2024-01-17 20:01:40.731000 UTC
; Container-only functions
int Function GetNumItems() native

View File

@ -1,7 +1,7 @@
Scriptname Outfit extends Form Hidden
; SKSE64 additions built 2026-08-27 15:31:27.926000 UTC
; SKSE64 additions built 2024-01-17 20:01:40.731000 UTC
int Function GetNumParts() native
Form Function GetNthPart(int n) native

View File

@ -1,7 +1,7 @@
Scriptname Perk extends Form Hidden
; SKSE64 additions built 2026-08-27 15:31:27.926000 UTC
; SKSE64 additions built 2024-01-17 20:01:40.731000 UTC
Perk Function GetNextPerk() native
int Function GetNumEntries() native

View File

@ -3,7 +3,7 @@ Scriptname Potion extends Form
; Is this postion classified as hostile?
bool Function IsHostile() native
; SKSE64 additions built 2026-08-27 15:31:27.926000 UTC
; SKSE64 additions built 2024-01-17 20:01:40.731000 UTC
; Is this potion classified as Food?
bool Function IsFood() native

View File

@ -241,7 +241,7 @@ Event OnStoryTrespass(ObjectReference akVictim, ObjectReference akTrespasser, \
Location akLocation, int aiCrime)
EndEvent
; SKSE64 additions built 2026-08-27 15:31:27.926000 UTC
; SKSE64 additions built 2024-01-17 20:01:40.731000 UTC
; returns the quest with the specified editor id
Quest Function GetQuest(string editorId) global native

View File

@ -1,6 +1,6 @@
Scriptname Race extends Form Hidden
; SKSE64 additions built 2026-08-27 15:31:27.926000 UTC
; SKSE64 additions built 2024-01-17 20:01:40.731000 UTC
; returns the number of spells for the race
int Function GetSpellCount() native

View File

@ -3,7 +3,7 @@ Scriptname Scroll extends Form Hidden
; Cast this scroll from an ObjectReference, optionally toward another.
Function Cast(ObjectReference akSource, ObjectReference akTarget=NONE) native
; SKSE64 additions built 2026-08-27 15:31:27.926000 UTC
; SKSE64 additions built 2024-01-17 20:01:40.731000 UTC
; return the casting time
float Function GetCastTime() native

View File

@ -1,6 +1,6 @@
Scriptname Shout extends Form Hidden
; SKSE64 additions built 2026-08-27 15:31:27.926000 UTC
; SKSE64 additions built 2024-01-17 20:01:40.731000 UTC
WordOfPower Function GetNthWordOfPower(int n) native
Spell Function GetNthSpell(int n) native
float Function GetNthRecoveryTime(int n) native

View File

@ -13,7 +13,7 @@ int Function GetVersionRelease() global native
; get the release index of this script file.
; Can be used to detect a script/runtime version mismatch
int Function GetScriptVersionRelease() global
return 75
return 72
endFunction
; get a plugins version number, -1 if the plugin is not loaded

View File

@ -1,6 +1,6 @@
Scriptname SoulGem extends MiscObject Hidden
; SKSE64 additions built 2026-08-27 15:31:27.926000 UTC
; SKSE64 additions built 2024-01-17 20:01:40.731000 UTC
int Function GetSoulSize() native
int Function GetGemSize() native

View File

@ -15,5 +15,5 @@ Function SetInstanceVolume(int aiPlaybackInstance, float afVolume) native global
; SKSE64 additions built 2026-08-27 15:31:27.926000 UTC
; SKSE64 additions built 2024-01-17 20:01:40.731000 UTC
SoundDescriptor Function GetDescriptor() native

View File

@ -22,7 +22,7 @@ Function Preload() native
Function Unload() native
; SKSE64 additions built 2026-08-27 15:31:27.926000 UTC
; SKSE64 additions built 2024-01-17 20:01:40.731000 UTC
; return the casting time
float Function GetCastTime() native

Some files were not shown because too many files have changed in this diff Show More