Jump to content

[LE] Fixing Scripted Slowfall Effects Bug


Recommended Posts

  • 2 weeks later...

Hey guys :smile:
I have another question concerning this.

I ran the following two scripts that dybill was awesome enough to help me with above, through the compiler (keeping in mind I'm working on this mod to be used on xbox and pc, and xbox can't run SKSE) and the compiler threw these errors below.

I did some research on the SetGameSettingFloat error and, according to this https://forums.nexusmods.com/index.php?/topic/1222165-mcm-menu-what-am-i-doing-wrong/page-2 (about halfway down, posted by Ghaunadaur 21 November 2013), SetGameSettingFloat is only in the SKSE version of the "Game.psc" script. I confirmed that, it's nowhere to be found in the vanilla SSE script. The original scripts come from a mod Anton gave me permission to build off of, dragon wings that were a non-SKSE version (non-flying), so I'm not really sure how this happened here lol. :smile:

Since xbox can't run SKSE. is there a way to make this work without SKSE? The mod is working fine, except for a slowfall effect where, when an NPC is wearing the amulet, the player is getting the slowfall effects instead. Any help would be greatly appreciated - I'm a noob to Papyrus. :smile:

This is the mod here: https://www.nexusmods.com/skyrimspecialedition/mods/42113


Errors on the script _Anton_ADW_MagicEffect:

Starting 1 compile threads for 1 files...
Compiling "_Anton_ADW_MagicEffect"...
C:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\_Anton_ADW_MagicEffect.PSC(9,6): SetGameSettingFloat is not a function or does not exist
C:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\_Anton_ADW_MagicEffect.PSC(9,6): cannot call the member function SetGameSettingFloat alone or on a type, must call it on a variable
C:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\_Anton_ADW_MagicEffect.PSC(18,6): SetGameSettingFloat is not a function or does not exist
C:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\_Anton_ADW_MagicEffect.PSC(18,6): cannot call the member function SetGameSettingFloat alone or on a type, must call it on a variable
C:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\_Anton_ADW_MagicEffect.PSC(27,6): SetGameSettingFloat is not a function or does not exist
C:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\_Anton_ADW_MagicEffect.PSC(27,6): cannot call the member function SetGameSettingFloat alone or on a type, must call it on a variable
No output generated for C:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\Data\scripts\Source\_Anton_ADW_MagicEffect.PSC, compilation failed.


Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on C:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\Data\scripts\Source\_Anton_ADW_MagicEffect.PSC
This is the whole _Anton_ADW_MagicEffect script:
Scriptname _Anton_ADW_MagicEffect extends activemagiceffect  


Spell Property _Anton_AnimatedDragonWings_Spell Auto
GlobalVariable Property _Anton_AnimatedDragonWings_JumpHeight Auto
Actor Target


Event onEffectStart(Actor akTarget, Actor akCaster)
    Target = akTarget
    
    If akTarget == Game.GetPlayer()
        _Anton_AnimatedDragonWings_JumpHeight.SetValue( Game.GetGameSettingFloat("fJumpHeightMin") )
        Game.SetGameSettingFloat("fJumpHeightMin", 300.0)
    Endif 
    
    Target.AddSpell( _Anton_AnimatedDragonWings_Spell, False)
    
EndEvent


Event OnCellLoad()


     If Target == Game.GetPlayer()
         ;_Anton_AnimatedDragonWings_JumpHeight.SetValue( Game.GetGameSettingFloat("fJumpHeightMin") )
        Game.SetGameSettingFloat("fJumpHeightMin", 300.0)
    Endif 
    
    Target.AddSpell( _Anton_AnimatedDragonWings_Spell, False)
    
EndEvent


Event OnPlayerLoadGame()


    If Target == Game.GetPlayer()
        _Anton_AnimatedDragonWings_JumpHeight.SetValue( Game.GetGameSettingFloat("fJumpHeightMin") )
        Game.SetGameSettingFloat("fJumpHeightMin", 300.0)
    Endif 
    
    Target.AddSpell( _Anton_AnimatedDragonWings_Spell, False)
    
EndEvent

 

Errors on the _Anton_ADW_MagicEffect_Dispel script:

Starting 1 compile threads for 1 files...Compiling "_Anton_ADW_MagicEffect_Dispel"...
C:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\_Anton_ADW_MagicEffect_Dispel.PSC(8,6): SetGameSettingFloat is not a function or does not exist
C:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\_Anton_ADW_MagicEffect_Dispel.PSC(8,6): cannot call the member function SetGameSettingFloat alone or on a type, must call it on a variable
No output generated for C:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\Data\scripts\Source\_Anton_ADW_MagicEffect_Dispel.PSC, compilation failed.


Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on C:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\Data\scripts\Source\_Anton_ADW_MagicEffect_Dispel.PSC

This is the whole _Anton_ADW_MagicEffect_Dispel script:

Scriptname _Anton_ADW_MagicEffect_Dispel extends activemagiceffect  


GlobalVariable Property _Anton_AnimatedDragonWings_Switch Auto
GlobalVariable Property _Anton_AnimatedDragonWings_JumpHeight Auto
Actor Target


Event onEffectStart(Actor akTarget, Actor akCaster)


    If akTarget == Game.GetPlayer()
Game.SetGameSettingFloat("fJumpHeightMin", _Anton_AnimatedDragonWings_JumpHeight.GetValue() )
_Anton_AnimatedDragonWings_Switch.SetValueInt(2)
Endif  


EndEvent
Edited by anathemastudio
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...