LoopyNoopy Posted November 10, 2016 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() EndIfLNIsInVIPRoom 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?
Reneer Posted November 11, 2016 Posted November 11, 2016 Are you compiling the scripts with the debug flag? If not, those debug messageboxes won't show up.
steve40 Posted November 11, 2016 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.
LoopyNoopy Posted November 21, 2016 Author Posted November 21, 2016 On 11/11/2016 at 3:20 AM, Reneer said: 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
Reneer Posted November 21, 2016 Posted November 21, 2016 We're going to need to see all the scripts to help you out further, I think.
Recommended Posts