Jump to content

CK won't compile my scripts cause of problems with objectreference.psc


commanderpete

Recommended Posts

Hey there, I try to get a new function for my Follower but my CK won't compile any script I try to compile...

 

What I try to get is, that my follower goes into the "Succubus Form" based on the Succubus-Race. It has to be happen at the start of a combat and after leaving it, she has to transform back to his normal "Race".

 

 

The Script I`ll use:

Scriptname SuccubusMorphNyara extends actor

SPELL Property SuccubusForm Auto

Event OnCombatStateChanged(Actor actorRef, int GetcombatState)

	if (combatState == 1)	;started combat
		SuccubusForm.Cast(Self)
		debug.messagebox("Nyara is in combat")
	elseif (combatState == 0)	;left combat
		DispelSpell(SuccubusForm)
		debug.messagebox("Nyara is out of combat")
	endif

EndEvent

The base script is from this topic: https://forums.nexusmods.com/index.php?/topic/644208-need-help-with-oncombat-script/

View fg109's Post

 

But everytime I try to compile it.. the following error comes up..

Starting 1 compile threads for 1 files...
Compiling "SuccubusMorphNyara"...
D:\Spiele\steamapps\common\skyrim\Data\Scripts\Source\ObjectReference.psc(11,37): getDistance is not a function or does not exist
D:\Spiele\steamapps\common\skyrim\Data\Scripts\Source\ObjectReference.psc(11,7): type mismatch while assigning to a float (cast missing or types unrelated)
D:\Spiele\steamapps\common\skyrim\Data\Scripts\Source\ObjectReference.psc(27,7): type mismatch on parameter 1 (did you forget a cast?)
D:\Spiele\steamapps\common\skyrim\Data\Scripts\Source\ObjectReference.psc(40,26): GetParentCell is not a function or does not exist
D:\Spiele\steamapps\common\skyrim\Data\Scripts\Source\ObjectReference.psc(51,14): GetDistance is not a function or does not exist
D:\Spiele\steamapps\common\skyrim\Data\Scripts\Source\ObjectReference.psc(51,32): cannot compare a none to a int (cast missing or types unrelated)
D:\Spiele\steamapps\common\skyrim\Data\Scripts\Source\ObjectReference.psc(51,32): cannot relatively compare variables to None
D:\Spiele\steamapps\common\skyrim\Data\Scripts\Source\ObjectReference.psc(378,13): cannot cast a objectreference to a actor, types are incompatible
D:\Spiele\steamapps\common\skyrim\Data\Scripts\Source\temp\SuccubusMorphNyara.psc(7,5): variable combatState is undefined
D:\Spiele\steamapps\common\skyrim\Data\Scripts\Source\temp\SuccubusMorphNyara.psc(7,17): cannot compare a none to a int (cast missing or types unrelated)
D:\Spiele\steamapps\common\skyrim\Data\Scripts\Source\temp\SuccubusMorphNyara.psc(8,15): type mismatch on parameter 1 (did you forget a cast?)
D:\Spiele\steamapps\common\skyrim\Data\Scripts\Source\temp\SuccubusMorphNyara.psc(10,9): variable combatState is undefined
D:\Spiele\steamapps\common\skyrim\Data\Scripts\Source\temp\SuccubusMorphNyara.psc(10,21): cannot compare a none to a int (cast missing or types unrelated)
D:\Spiele\steamapps\common\skyrim\Data\Scripts\Source\temp\SuccubusMorphNyara.psc(11,2): DispelSpell is not a function or does not exist
No output generated for SuccubusMorphNyara, compilation failed.

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

What is going wrong? I tried to replace the "objectreference.psc" with this one from my "scripts.rar" but nothing seems to fix this issue.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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