So I was able to setup my two speechcraft options (can't believe how easy that was...) and now I'm left with the removing item option onto the npc, and adding that very item to the player, if successful with speechcraft. However, I'm not entirely sure if I'm doing this right. I'm doing what the example is telling me.
;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment
;NEXT FRAGMENT INDEX 2
Scriptname TIF__02001849 Extends TopicInfo Hidden
;BEGIN FRAGMENT Fragment_0
Function Fragment_0(ObjectReference akSpeakerRef)
Actor akSpeaker = akSpeakerRef as Actor
;BEGIN CODE
pFDS.Persuade(akSpeaker)
;END CODE
EndFunction
;END FRAGMENT
;BEGIN FRAGMENT Fragment_1
Function Fragment_1(ObjectReference akSpeakerRef)
Actor akSpeaker = akSpeakerRef as Actor
;BEGIN CODE
int ListSize = myFormList.GetSize()
int CurrentItems = 0
int ItemsLeft = 10; remove 10 items, change this to whatever number you want to remove
while CurrentItems <= ListSize && ItemsLeft > 0
Form CurrentItem1 = akSpeakerList.GetAt(CurrentItems)
int ItemCount =akSpeaker.GetItemCount(CurrentItem1)
akSpeaker.RemoveItem(Alias_Necklace, ItemsLeft)
akSpeaker.RemoveItem(Alias_Ring, ItemsLeft)
ItemsLeft -= ItemCount
CurrentItems += 1
endwhile
;END CODE
EndFunction
;END FRAGMENT
;END FRAGMENT CODE - Do not edit anything between this and the begin comment
FavorDialogueScript Property pFDS Auto
Quest Property Alias_Necklace Auto
Error:
Starting 1 compile threads for 1 files...
Compiling "TIF__02001849"...
F:\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__02001849.psc(19,23): variable myFormList is undefined
F:\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__02001849.psc(19,34): none is not a known user-defined type
F:\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__02001849.psc(19,12): type mismatch while assigning to a int (cast missing or types unrelated)
F:\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__02001849.psc(24,36): variable akSpeakerList is undefined
F:\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__02001849.psc(24,50): none is not a known user-defined type
F:\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__02001849.psc(28,25): variable Alias_Ring is undefined
No output generated for TIF__02001849, compilation failed.
Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on TIF__02001849
I edited a few things, such as myformlist to akspeaker because it'll be talking about the npc carrying the quest items. The type mismatch I am not understanding.