oldrayzor Posted August 12, 2019 Posted August 12, 2019 Apologies, but still a novice at scripting. Wish to create a simple display case which contains mostly-unique, mostly-unobtainable quest-items. Right now just looking to activate a button to run through a form list of quests, look for those completed and enable their related objects. Sadly my approach seems to have been ill-conceived. This script is embedded in the button: Spoiler Scriptname UnobtainedDisplayItemsStatic extends ObjectReference FormList Property ListofQuests1 Auto FormList Property ListofQuests2 Auto FormList Property ListofItems1 Auto FormList Property ListofItems2 Auto FormList Property ListDisplayStands Auto Quest Property UDI_Quest_Ref Auto ObjectReference Property UDI_Item_Ref Auto ObjectReference Property UDI_Stand_Ref Auto Int Property UDIQuestCnt Auto Actor Property akActor Auto Event OnActivate(ObjectReference akActor) UDIQuestCnt = ListofQuests1.GetSize() WHILE UDIQuestCnt UDIQuestCnt -=1 UDI_Quest_Ref=ListofQuests1.GetAt(UDIQuestCnt) IF UDI_Quest_Ref.IsCompleted() UDI_Item_Ref=ListofItems1.GetAt(UDIQuestCnt) UDI_Item_Ref.Enable() UDI_Stand_Ref=ListDisplayStands.GetAt(UDIQuestCnt) UDI_Stand_Ref.Enable() ENDIF ENDWHILE UDIQuestCnt = ListofQuests2.getsize() WHILE UDIQuestCnt UDIQuestCnt-=1 UDI_Quest_Ref=ListofQuests2.GetAt(UDIQuestCnt) IF UDI_Quest_Ref.IsCompleted() UDI_Item_Ref=ListofItems2.GetAt(UDIQuestCnt) UDI_Item_Ref.Enable() ENDIF ENDWHILE EndEvent The ListofQuests1 & 2 contain QuestIDs. GetAt(form index) returns a "type mismatch". AND I don't know why?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.