Message options don't work.

Post » Thu Jun 21, 2012 4:06 pm

Gah stupid internet deleted my entire post, here's a summary. -_-

The buttons in my message don't work. I use a trigger to make a message pop up, and it has two options, each of which should move the player and some NPC's. Nobody get's moved anywhere, but the rest of the trigger fires just fine. I made the script based off http://www.creationkit.com/Options_Menu page.


Event OnTriggerEnter (ObjectReference akActionRef)If akActionRef == Game.GetPlayer()FSMQ01.Stop()FSMQ02.Stop()FSMQ04.Stop()FSMQ05.Start()FSMQ05.SetStage(5)FSMQ05.SetObjectiveDisplayed(5)Int iButton = ChoiceMsg.Show()If iButton == -1If iButton == 0 ;move the player to the manorakActionRef.MoveTo(Destination1)Svegard.MoveTo(SvegardDest)Ulgar.MoveTo(UlgarDest)ElseIf iButton == 1 ; move the player to the monasteryakActionRef.MoveTo(Destination2)Agnar.MoveTo(AgnarDest)Thorlogh.MoveTo(ThorloghDest)EndIfEndIfEndIfEndEvent

I think it's the If button == -1, then If it equals 0 thing. That seems like it should never work, but it's what the page said...

I'd love it if someone could point me in the right direction! :smile: (Sorry for the lack of indentation on the script, things don't paste out of the CK well for me...)

Thanks,
AJV
User avatar
Jenna Fields
 
Posts: 3396
Joined: Mon Dec 11, 2006 11:36 am

Post » Thu Jun 21, 2012 4:50 am

It should be

If iButton != -1

Not ==

That line shouldn't be necessary I think, it won't hurt anything if you include it.

Also you did declare a property for your message, right? It's not in the snippet you pasted, so I just wanted to make sure :P
User avatar
Tina Tupou
 
Posts: 3487
Joined: Fri Mar 09, 2007 4:37 pm

Post » Thu Jun 21, 2012 3:25 pm

iButton != -1
User avatar
megan gleeson
 
Posts: 3493
Joined: Wed Feb 07, 2007 2:01 pm

Post » Thu Jun 21, 2012 5:42 pm

Doh, look at me being the cool kid. :cool: That should do it. I'll report back if it still doesn't work.

Thanks. :smile:
User avatar
Sakura Haruno
 
Posts: 3446
Joined: Sat Aug 26, 2006 7:23 pm


Return to V - Skyrim