LoopyNoopy Posted November 10, 2016 Share Posted November 10, 2016 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 More sharing options...
Reneer Posted November 11, 2016 Share Posted November 11, 2016 Are you compiling the scripts with the debug flag? If not, those debug messageboxes won't show up. Link to comment Share on other sites More sharing options...
steve40 Posted November 11, 2016 Share Posted November 11, 2016 Like Reneer says, or maybe those bools are not being set to true like you assume. Also, use Message.Show instead of Debug.MessageBox. Link to comment Share on other sites More sharing options...
LoopyNoopy Posted November 21, 2016 Author Share Posted November 21, 2016 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 More sharing options...
Reneer Posted November 21, 2016 Share Posted November 21, 2016 We're going to need to see all the scripts to help you out further, I think. Link to comment Share on other sites More sharing options...
Recommended Posts