I have this as a script fragment in the dialogue, defining Elric and the faction.
Elric.AddtoFaction(QutCollElricHostileFaction)Elric.SetAv("Aggression", 1)Elric.StartCombat(Game.GetPlayer())The Full text of the generated script is as follows (in case there's something wrong there: I've had several simple script fragments bugging out this evening for some reason):
;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment;NEXT FRAGMENT INDEX 1Scriptname TIF__0100EBAC Extends TopicInfo Hidden;BEGIN FRAGMENT Fragment_0Function Fragment_0(ObjectReference akSpeakerRef)Actor akSpeaker = akSpeakerRef as Actor;BEGIN CODEElric.AddtoFaction(QutCollElricHostileFaction)Elric.SetAv("Aggression", 1)Elric.StartCombat(Game.GetPlayer());END CODEEndFunction;END FRAGMENT;END FRAGMENT CODE - Do not edit anything between this and the begin commentReferenceAlias Property Elric AutoFaction Property QutCollElricHostileFaction AutoAnd the error I get is:
Starting 1 compile threads for 1 files...Compiling "TIF__0100EBAC"...c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__0100EBAC.psc(9,6): AddtoFaction is not a function or does not existc:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__0100EBAC.psc(10,6): SetAv is not a function or does not existc:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__0100EBAC.psc(11,6): StartCombat is not a function or does not existNo output generated for TIF__0100EBAC, compilation failed.Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on TIF__0100EBAC
Am I doing something wrong in the syntax of these functions? It doesn't seem to be getting hung up on the definitions, though, so that's something.
Still getting the hang of the new scripting language, so I'm sure I'm missing something obvious, but I need another pair of eyes.