Everything seems to be working, ---only problem is, nothing has changed. The cutscene is still loading using the current landsmeet chamber

Any ideas why it's still firing in the same area?
Edit: I was thinking, the original area was not connected to any area list. The new one isn't either. Do I need to create an area list for this?
Here is the edited first script: (with an original plot and flag created previuosly)
============================================================
#include "plt_alistair_scenes_main"
#include "log_h"
#include "utility_h"
#include "wrappers_h"
#include "plot_h"
#include "plt_genpt_leliana_main"
#include "plt_genpt_app_leliana"
#include "plt_genpt_app_alistair"
#include "plt_genpt_app_zevran"
#include "plt_genpt_app_morrigan"
#include "plt_cod_cha_leliana"
#include "plt_mnp000pt_generic"
#include "plt_gen00pt_party"
#include "plt_gen00pt_party_gilmore"
#include "plt_gen00pt_class_race_gend"
#include "plt_gen00pt_backgrounds"
#include "plt_ntb000pt_main"
#include "den_lc_constants_h"
#include "ran_constants_h"
#include "plt_genpt_leliana_events"
#include "plt_mnp000pt_autoss_main2"
#include "plt_mnp00pt_ssf_arl_eamon"
#include "plt_ntb000pt_main"
#include "plt_orzpt_anvil"
#include "plt_denpt_rescue_the_queen"
#include "plt_mnp000pt_main_lothering"
#include "plt_denpt_main"
#include "plt_denpt_alistair"
#include "plt_epipt_main"
#include "plt_test_cutscene_plot"
int StartingConditional()
{
event eParms = GetCurrentEvent(); // Contains all input parameters
int nType = GetEventType(eParms); // GET or SET call
int i; // Counter
string strPlot = GetEventString(eParms, 0); // Plot GUID
int nFlag = GetEventInteger(eParms, 1); // The bit flag # being affected
object oParty = GetEventCreator(eParms); // The owner of the plot table for this script
object oConversationOwner = GetEventObject(eParms, 0); // Owner on the conversation, if any
int nResult = FALSE; // used to return value for DEFINED GET events
object oPC = GetHero();
object oChestArmour = UT_AddItemToInventory(R"wedding_dress.uti");
plot_GlobalPlotHandler(eParms); // any global plot operations, including debug info
if(nType == EVENT_TYPE_SET_PLOT) // actions -> normal flags only
{
int nValue = GetEventInteger(eParms, 2); // On SET call, the value about to be written (on a normal SET that should be '1', and on a 'clear' it should be '0')
int nOldValue = GetEventInteger(eParms, 3); // On SET call, the current flag value (can be either 1 or 0 regardless if it's a set or clear event)
// IMPORTANT: The flag value on a SET event is set only AFTER this script finishes running!
switch(nFlag)
{
case ALISTAIR_WEDDING_QUEEN:
{
EquipItem(oPC, oChestArmour);
DoAreaTransition("wedding_area_2.are", "wp_mapnote_exit");
break;
}
}
}
else // EVENT_TYPE_GET_PLOT -> defined conditions only
{
switch(nFlag)
{
case PC_QUEEN_LOVE:
{
if (WR_GetPlotFlag(PLT_DENPT_ALISTAIR,DEN_ALISTAIR_MARRYING_PLAYER) && !WR_GetPlotFlag(PLT_EPIPT_MAIN,EPI_PC_MARRY_ALISTAIR_NO_LOVE))
nResult=TRUE;
else
nResult=FALSE;
break;
}
}
}
return nResult;
}
New Script attached to area:
==================================================================
#include "plt_alistair_scenes_main"
#include "2da_constants_h"
#include "events_h"
#include "utility_h"
#include "plt_epipt_main"
void main()
{
int nEventHandled = FALSE;
// deconstruct event
event evCurrent = GetCurrentEvent();
int nEventType = GetEventType(evCurrent);
// common variables
object oHero = GetHero();
//---------------------------------------------------------------------------
// Handle Events
//---------------------------------------------------------------------------
switch(nEventType)
{
case EVENT_TYPE_AREALOAD_SPECIAL:
{
CS_LoadCutscene(R"hnf_wedding.cut");
break;
}
}
//---------------------------------------------------------------------------
// Unhandled Events
//---------------------------------------------------------------------------
if(!nEventHandled)
{
HandleEvent(evCurrent, RESOURCE_SCRIPT_AREA_CORE);
}
}
And a final script attached to first cutscene where I inserted a general cutscene for testing :
========================================================================
#include "plt_alistair_scenes_main"
#include "log_h"
#include "utility_h"
#include "wrappers_h"
#include "plot_h"
#include "plt_genpt_app_alistair"
#include "plt_mnp000pt_generic"
#include "plt_gen00pt_backgrounds"
#include "plt_ntb000pt_main"
#include "den_lc_constants_h"
#include "ran_constants_h"
#include "plt_mnp000pt_autoss_main2"
#include "plt_denpt_main"
#include "plt_denpt_alistair"
#include "plt_epipt_main"
void main()
{
CS_LoadCutscene(R"alistair_sex_hf.cut",PLT_EPIPT_MAIN, EPI_JUMP_TO_SLIDE_SHOW);
}
Modifié par DahliaLynn, 08 septembre 2010 - 12:07 .