Jump to content

Need some scripting help


LoopyNoopy

Recommended Posts

Hello! I have a script fragment that runs at the end of a scene. This script will run 1 of 2 functions that are set in a quest script, the problem I'm having is it doesn't run this If Statement:

If (kmyQuest.LNIsInVIPRoom == true)
	debug.MessageBox("Leaving VIP Room")
	kmyQuest.LNPlayerNMagnoliaVIPRoomLeave()
ElseIf (kmyQuest.LNIsInHotelRoom == true)
	debug.MessageBox("Leaving Hotel Room")
	kmyQuest.LNPlayerNMagnoliaHotelRoomLeave()
EndIf

LNIsInVIPRoom and LNIsInHotelRoom are Bool properties. Which are set to true on a different events.

 

Is there any logic as to why this is being ignored? Even when I know that LNIsInVIPRoom has been set to true in a previous fragment?

Link to comment
Share on other sites

  • 2 weeks later...

Are you compiling the scripts with the debug flag? If not, those debug messageboxes won't show up.

yes I am, I put a debug.messagebox before the it statement and that fired so it's clear that the bool isn't being changed.

kmyQuest.LNIsInVIPRoom == true
kmyQuest.LNPlayerNMagnoliaVIPRoomConvince()

that is the fragment in question, I know this runs because that function runs every time. Am I using too many equals signs? :P

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...