Scriptname FCOMCommandRadioTokenScript extends ObjectReference Armor Property CommandRadio Auto Const Actor Property Player Auto Message Property Message1 Auto Message Property Message2 Auto Message Property Message3 Auto Message Property FirstMessage Auto Quest Property DeployTroops Auto Event OnEquipped(Actor akActor) Menu() Player.RemoveItem(CommandRadio, 1) Player.AddItem(CommandRadio, 1) EndEvent Function Menu(Bool abMenu = True, Int aiButton = 0) While abMenu If aiButton != -1 ; Wait for input (this can prevent problems if recycling the aiButton argument in submenus) aiButton = FirstMessage.Show() ; Main Menu abMenu = False ; End the function If aiButton == 0 ; TESTBUTTOMAIN aiButton = Message1.Show() If aiButton == 0 ; TESTBUTTONbeginsQuest DeployTroops.Start() DeployTroops.SetStage(10) ElseIf aiButton == 1 ; null ElseIf aiButton == 2 ; null EndIf ElseIf aiButton == 1 ; null aiButton = Message2.Show() If aiButton == 0 ; null ElseIf aiButton == 1 ; null ElseIf aiButton == 2 ; null EndIf ElseIf aiButton == 2 ; null aiButton = Message3.Show() If aiButton == 0 ; null ElseIf aiButton == 1 ; null ElseIf aiButton == 2 ; null EndIf EndIf EndIf EndWhile EndFunction
The specific bit I'm having the trouble with is
If aiButton == 0 ; TESTBUTTONbeginsQuest DeployTroops.Start() DeployTroops.SetStage(10)
For some reason the above bit is not starting the quest or setting the stage to 10. My guess is that I am not using the Quest property correctly, but I don't know how else to do it. I can't find anything helpful on the wiki either. :/
Help a modder out
Edited by MadGodSheogorath, 19 May 2016 - 07:50 AM.