GUnitXIII Posted February 7, 2017 Share Posted February 7, 2017 Actor Property Drew = AlbionBowerstoneHouse02ChildQuest Property SturdenQuest = AlbionSturdenDialogue Auto Event OnUpdateGameTime()if SturdenQuest.Getstage() == 666UnregisterForUpdateGameTime()Drew.SetRelationshipRank(Game.GetPlayer(), -4)EndIf EndEvent I've tried so many different ways of going about this script and none of them work. I can't find anything that helps, especially not the creation kit wiki. Any help would be amazing, this has been a major pain in my ass. I'm trying to get this to run at the end of a dialogue. I tried it simple, I tried it long, nothing works and it's always the same errors:Starting 1 compile threads for 1 files...Compiling "TIF__02027F3F"...C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__02027F3F.psc(7,22): no viable alternative at input 'AlbionBowerstoneHouse02Child'C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__02027F3F.psc(7,6): Unknown user flag AlbionBowerstoneHouse02ChildC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__02027F3F.psc(8,30): no viable alternative at input 'AlbionSturdenDialogue'No output generated for TIF__02027F3F, compilation failed. Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on TIF__02027F3F Link to comment Share on other sites More sharing options...
Masterofnet Posted February 7, 2017 Share Posted February 7, 2017 You are not even filling the properties of the script. Why are you using on update game time? Where did you register for update game time? There is most likely a much better way to do this. Actor Property Drew Auto ; AlbionBowerstoneHouse02Child You need to click on the properties of the script and fill this manually. Quest Property SturdenQuest Auto ; AlbionSturdenDialogue You need to click on the properties of the script and fill this manually. Event OnUpdateGameTime() if SturdenQuest.Getstage() == 666 UnregisterForUpdateGameTime() Drew.SetRelationshipRank(Game.GetPlayer(), -4) EndIf EndEvent Link to comment Share on other sites More sharing options...
PeterMartyr Posted February 7, 2017 Share Posted February 7, 2017 (edited) <I'm trying to get this to run at the end of a dialogue. I tried it simple, I tried it long, nothing works and it's always the same errors> Use this Frag. akSpeaker.SetRelationshipRank(Game.GetPlayer(), -4) What so hard about Topic Info Fragment that's has no property values or validations? You don't need to validate it with a If(), cause you use Dialogue Conditions instead. Guess what, I'm self taught by reading the wiki. Edit A word of friendly advise, it blatantly obvious you copied the code without understanding it, which makes it really hard to reply(will you understand the answer?), look carefully at this Compiled Source Code of the above Fragment. ;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment ;NEXT FRAGMENT INDEX 1 Scriptname TIF__000CD60E Extends TopicInfo Hidden ;BEGIN FRAGMENT Fragment_0 Function Fragment_0(ObjectReference akSpeakerRef) Actor akSpeaker = akSpeakerRef as Actor ;BEGIN CODE akSpeaker.SetRelationshipRank(Game.GetPlayer(), -4) ;END CODE EndFunction ;END FRAGMENT ;END FRAGMENT CODE - Do not edit anything between this and the begin commentIf you have trouble seeing why akSpeaker works, you are going to be in a world of pain. For TIF frags that reference the NPC your talking to use:akSpeaker for Actor ScriptsakSpeakerRef for ObjectReference ScriptsI recommend looking at Beth Dialogue, their compiled source codes, & how they use conditions. Then look at how scripted Functions in Quest Script work has Fragments. (Both TIF & PF) When in the same Quest & very important when Fragment & Quest Script are in different Quests. Next look at Quest Fragments(QF), use the wiki to clarify what you learning by imitation. Not to give you answer you are incapable understanding. It what I did & do. My first question always is how in f*** did Bethesda do this? Way more time consuming than asking for help, but your way better for it too. Now my MCM are 2000 lines of SkyUI code, so it worked for me, hope it works for you. Edited February 7, 2017 by PeterMartyr Link to comment Share on other sites More sharing options...
Masterofnet Posted February 7, 2017 Share Posted February 7, 2017 I did not read past the script. Your script will not work on a Tif. There would be no reason to even fill those properties. Try just the one line of script above. Link to comment Share on other sites More sharing options...
Aurawhisperer Posted April 1, 2017 Share Posted April 1, 2017 I'm having issues with akSpeaker actually. Now I remember what to do, but the script doesn't change anything. Even did a test under console command and states the NPC is still 0, not 1 Link to comment Share on other sites More sharing options...
Recommended Posts