SevenBlue Posted October 1, 2017 Share Posted October 1, 2017 Making a test mod to make sure I understand some principles properly. Script is failing to compile because the CK is registering a property as a variable despite it being properly defined. Here's the script and the error code. Scriptname SB_EffectAddTest extends activemagiceffect SPELL Property AlterTalosSpell Auto Actor Property PlayerRef Auto Potion Property SB_TestPotion Auto Event OnEffectFinish(Actor akTarget, Actor akCaster) AltarTalosSpell.cast(SB_TestPotion, playerRef) EndEvent Starting 1 compile threads for 1 files... Compiling "SB_EffectAddTest"... C:\Games\Steam\steamapps\common\Skyrim\Data\Scripts\Source\temp\SB_EffectAddTest.psc(11,1): variable AltarTalosSpell is undefined C:\Games\Steam\steamapps\common\Skyrim\Data\Scripts\Source\temp\SB_EffectAddTest.psc(11,17): none is not a known user-defined type No output generated for SB_EffectAddTest, compilation failed. Batch compile of 1 files finished. 0 succeeded, 1 failed. Failed on SB_EffectAddTest Is it glitching or am I missing something stupid and obvious? Link to comment Share on other sites More sharing options...
foamyesque Posted October 1, 2017 Share Posted October 1, 2017 You made a typo. Declaration is AltErTalosSpell, use is AltArTalosSpell. That particular compiler error will always claim it's a variable that's undefined even if you're attempting to use a property, because it doesn't know what you intended, just that what you used doesn't exist. Link to comment Share on other sites More sharing options...
Kapteyn Posted October 1, 2017 Share Posted October 1, 2017 (edited) AlterTalosSpellAltarTalosSpell Spot the typo. :smile: And jinxed. Edited October 1, 2017 by Kapteyn Link to comment Share on other sites More sharing options...
SevenBlue Posted October 1, 2017 Author Share Posted October 1, 2017 I am an alpha derp. Thanks peeps! Link to comment Share on other sites More sharing options...
Recommended Posts