LadyHonor Posted October 18, 2014 Share Posted October 18, 2014 one of my flags is being a little witch. belumir is supposed to be deactivated when the quest is complete but instead he is deactivating while you're still talking to him the first time. here's the script. seems fairly straight forward. its flagged in dialog when youre supposed to return to denerim but it isn't waiting. I've checked a dozen tomes to make certain I'm not accidentally calling it too soon but everything looks correct. #include "log_h" #include "utility_h" #include "wrappers_h" #include "plot_h" #include "lh_quest_constants" #include "lh_quest_h" #include "plt_lh_alistair_quest" int StartingConditional() { event eParms = GetCurrentEvent(); int nType = GetEventType(eParms); string strPlot = GetEventString(eParms, 0); int nFlag = GetEventInteger(eParms, 1); object oParty = GetEventCreator(eParms); object oConversationOwner = GetEventObject(eParms, 0); int nPlotType = GetEventInteger(eParms, 5); int bIsTutorial = GetM2DAInt(TABLE_PLOT_TYPES, "IsTutorial", nPlotType); int bIsCodex = GetM2DAInt(TABLE_PLOT_TYPES, "IsCodex", nPlotType); int nResult = FALSE; object oPC = GetHero(); object oWren = GetObjectByTag("lhqftr_wren"); object oBelumir = GetObjectByTag("lhqftr_belumir"); plot_GlobalPlotHandler(eParms); if(nType == EVENT_TYPE_SET_PLOT) { int nValue = GetEventInteger(eParms, 2); int nOldValue = GetEventInteger(eParms, 3); switch(nFlag) { case LH_ALISTAIR_ACCEPTED_REQUEST: { WR_SetPlotFlag(PLT_LH_ALISTAIR_QUEST, LH_ALISTAIR_ACCEPTED_REQUEST, TRUE); } case LH_ALISTAIR_CLEAR_PARTY: { SetPartyPickerGUIStatus(PP_GUI_STATUS_USE); ShowPartyPickerGUI(); } case LH_ALISTAIR_PARTY_SET: { WR_SetWorldMapLocationStatus(GetObjectByTag(WML_WOW_CUSTOM_1), WM_LOCATION_ACTIVE); } case LH_ALISTAIR_TEAM_4: { if (WR_GetPlotFlag(PLT_LH_ALISTAIR_QUEST, LH_ALISTAIR_RETURN_TO_BELUMIR) == TRUE) { WR_SetPlotFlag(PLT_LH_ALISTAIR_QUEST, LH_ALISTAIR_TALK_WREN, TRUE); } } case LH_ALISTAIR_RETURN_TO_BELUMIR: { if (WR_GetPlotFlag(PLT_LH_ALISTAIR_QUEST, LH_ALISTAIR_TEAM_4) == TRUE) { WR_SetPlotFlag(PLT_LH_ALISTAIR_QUEST, LH_ALISTAIR_TALK_WREN, TRUE); } } case LH_ALISTAIR_TALK_WREN: { UT_Talk(oWren, oPC); } case LH_ALISTAIR_RETURN_DENERIM: { DoAreaTransition("lh_denerim_chantry", "lh_wp_chantry_enter"); } case LH_ALISTAIR_QUEST_COMPLETE: { SetObjectActive(oBelumir, FALSE); } } } else { switch(nFlag) { } } plot_OutputDefinedFlag(eParms, nResult); return nResult; } Link to comment Share on other sites More sharing options...
Recommended Posts