TangerineDog Posted January 14, 2018 Share Posted January 14, 2018 (edited) I want a quest to use modified versions of these two scripts:;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment;NEXT FRAGMENT INDEX 10Scriptname QF_FreeformRiften10_0005331D Extends Quest Hidden;BEGIN ALIAS PROPERTY FFRiften10Balimund;ALIAS PROPERTY TYPE ReferenceAliasReferenceAlias Property Alias_FFRiften10Balimund Auto;END ALIAS PROPERTY;BEGIN ALIAS PROPERTY FFRiften10PlayerAlias;ALIAS PROPERTY TYPE ReferenceAliasReferenceAlias Property Alias_FFRiften10PlayerAlias Auto;END ALIAS PROPERTY;BEGIN FRAGMENT Fragment_2Function Fragment_2();BEGIN CODE;Balimund asks Player to retrieve Fire Salts for his forgepFFR10QS.SaltCounted();END CODEEndFunction;END FRAGMENT;BEGIN FRAGMENT Fragment_5Function Fragment_5();BEGIN CODE;Player provided Fire Salts to BalimundGame.GetPlayer().RemoveItem(pFFRiften10Firesalt,10)Game.GetPlayer().AddItem(pFFRiften10Gold)Alias_FFRiften10Balimund.GetActorRef().SetRelationshipRank(Game.GetPlayer(), 1)pThaneCount.Value += 1pFFRTQS.ThaneCheck()CompleteAllObjectives()Stop();END CODEEndFunction;END FRAGMENT;BEGIN FRAGMENT Fragment_9Function Fragment_9();BEGIN CODE;Quest FailedFailAllObjectives()Stop();END CODEEndFunction;END FRAGMENT;BEGIN FRAGMENT Fragment_0Function Fragment_0();BEGIN CODE;Start-Up;END CODEEndFunction;END FRAGMENT;END FRAGMENT CODE - Do not edit anything between this and the begin commentIngredient Property pFFRiften10Firesalt AutoLeveledItem Property pFFRiften10Gold AutoFFRiftenThaneQuestScript Property pFFRTQS AutoGlobalVariable Property pThaneCount AutoFFR10QuestScript Property pFFR10QS Auto andScriptname FFR10QuestScript extends Quest ConditionalGlobalVariable Property pFF10SaltCount Auto ConditionalQuest Property pFFR10Quest Auto ConditionalIngredient Property pSalt Auto ConditionalFunction SaltCounted()float CurrentCount = Game.GetPlayer().GetItemCount(pSalt)pFF10SaltCount.Value = CurrentCountUpdateCurrentInstanceGlobal(pFF10SaltCount)if CurrentCount >= 10pFFR10Quest.SetObjectiveCompleted(10,1)pFFR10Quest.SetObjectiveDisplayed(20,true,true)elseif CurrentCount < 10pFFR10Quest.SetObjectiveCompleted(10,0)pFFR10Quest.SetObjectiveDisplayed(20,0)pFFR10Quest.SetObjectiveDisplayed(10,true,true)endifendFunctionUnfortunately, even if I only edit the property values of the existing scripts, it doesn't work.If I change the property value of pFFRiften10Firesalt from Fire Salts to, say, Garlic in both scripts, neither Garlic nor Fire Salts will make the quest objective budge, it still says 0/ 10. Of course, the dialogue option to turn in the quest is showing up correctly if I have 10 of the ingredients specified in the dialogue window - and it removes 10 Garlics from the player's inventory just as Fragment_5 tells it to do!So I guess the problem is with the function SaltCounted(), or maybe with the script FFR10QuestScript, but how can I find out what's the problem?Edit: I should add that this applies even after starting a new game. Edited January 14, 2018 by TangerineDog Link to comment Share on other sites More sharing options...
TheWormpie Posted January 15, 2018 Share Posted January 15, 2018 You should also change value of pSalt to garlic. Have you done that? This should do it, if you haven't changed the global or the quest in any other way. Link to comment Share on other sites More sharing options...
TangerineDog Posted January 15, 2018 Author Share Posted January 15, 2018 (edited) Sorry, I forgot to say: yes, I did! :sad: So it can't be that. Edit: It doesn't work even if I only change the value of pSalt! Edited January 16, 2018 by TangerineDog Link to comment Share on other sites More sharing options...
TangerineDog Posted February 11, 2018 Author Share Posted February 11, 2018 (edited) Update for future Generations :wink: I have overlooked the Player Script, which calls for the Salts itself. I have only edited the scripts from the script section of the quest, but hadn't looked at the aliases.Now with the Quest Script and the Player Script edited, it just might work. We'll see. Edit: That did it! Edited February 11, 2018 by TangerineDog Link to comment Share on other sites More sharing options...
Recommended Posts