Jump to content

Getting magnitude of magic effect within magic effect script


Recommended Posts

EDIT: Solved this issue on my own.

 

This is probably a really basic issue. Script looks like this:

Scriptname vtes_meff_hunger_script extends activemagiceffect  

;Initialize hunger and hunger state
float hunger = Self.GetMagnitude()
int hstate = 0

Error message looks like this:

Starting 1 compile threads for 1 files...
Compiling "vtes_meff_hunger_script"...
C:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\vtes_meff_hunger_script.psc(4,15): no viable alternative at input 'Self'
C:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\vtes_meff_hunger_script.psc(4,19): required (...)+ loop did not match anything at input '.'
C:\Program Files (x86)\Steam\steamapps\common\Skyrim Special Edition\Data\Source\Scripts\temp\vtes_meff_hunger_script.psc(4,6): Unknown user flag Self
No output generated for vtes_meff_hunger_script, compilation failed.

Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on vtes_meff_hunger_script

I'm pretty sure that SKYSE is installed correctly (I see it in the system information when I load the game) and I'm not seeing an unknown function error. The line is practically copy pasted from the wiki.

Edited by zorakramone3050
Link to comment
Share on other sites

  • Recently Browsing   0 members

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