Assuming it's possible somehow....
I basically want to be able to talk to specific follower about toggling something on or off (via dialog).
When the typical dialog box appears (ie. Wait here, etc) there will be something like "Toggle Such and Such On/Off", and when this is selected a menu with the toggles will appear with 3 options: Cancel, On, and Off. I already have the dialog quest setup -- non issue -- but I was experimenting with some scripting in the Papyrus fragment box to see if I can get this to work, and the script is producing errors.
I've looked into creating a menu/toggles but in relation to activator switches on object references.
Does anyone know what the fragment is missing in the code below in order to make it his work (Again, I'm assuming it's possible)? I appreciate any thorough guidance
;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment ;NEXT FRAGMENT INDEX 1 Scriptname JWG_TIF__050E9AAD Extends TopicInfo Hidden ;BEGIN FRAGMENT Fragment_0 Function Fragment_0(ObjectReference akSpeakerRef) Actor akSpeaker = akSpeakerRef as Actor ;BEGIN CODE Function Menu(Int aButton = 0) ;I'm guessing there needs to be something different than Function? aButton = JWD_MSG_LocationMarkerToggle.Show() If aButton == 0 ;Cancel button Debug.Notification("Action cancelled") ElseIf aButton == 1 ;Toggle On button ;an action will go here Debug.Notification("Turned ON") ElseIf aButton == 2 ;Toggle OFF button ;an action will go here Debug.Notification("Turned OFF") EndIf EndFunction ;END CODE EndFunction ;END FRAGMENT ;END FRAGMENT CODE - Do not edit anything between this and the begin comment Message Property JWD_MSG_LocationMarkerToggle Auto
The following errors are showing up:
* mismatched input 'Function' expecting ENDFUNCTION <---doesn't seem to like a 'Function' within a 'Function' I guess
* missing EOF at 'EndFunction'
Edited by justinglen75, 04 July 2022 - 01:26 AM.