Jump to content

[LE] [Papyrus] Script thinks property is variable, despite being defined.


SevenBlue

Recommended Posts

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

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

  • Recently Browsing   0 members

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