Here's the trigger script:
// -----------------------------------------------------------------------------
// scared_to_death trigger script
// Owner: Bill Hoyt
// -----------------------------------------------------------------------------
/*
Dog Scares Mrs. Schmooples to death
Note: this script redirects all events not handled into trigger_core.
*/
// -----------------------------------------------------------------------------
#include "events_h"
#include "global_objects_h"
#include "plot_h"
#include "utility_h"
#include "plt_who_let_the_dog_out"
object oPC = GetHero();
object oDog = UT_GetNearestCreatureByTag(oPC, "marabi1", 0);
object oLady = UT_GetNearestCreatureByTag(oPC, "mrs_schmooples", 0);
void main ()
{
event ev = GetCurrentEvent();
int nEventType = GetEventType(ev);
int bEventHandled = FALSE;
switch (nEventType)
{
case EVENT_TYPE_ENTER:
{
object oCreature = GetEventCreator(ev);
if(oCreature == oDog)
{
WR_SetPlotFlag (PLT_WHO_LET_THE_DOG_OUT,
SCARED_MRS_SCHMOOPLES, TRUE);
// Mrs. Schmooples joins the bleedin' choir invisibile
// MISSING LINES HERE
}
}
break;
}
//If this event wasn't handled by this script, let the core script try
if (!bEventHandled)
{
HandleEvent(ev, RESOURCE_SCRIPT_TRIGGER_CORE);
}
}
}
break;
}
break;
// end script
Can anyone fill in the missing lines for me? I would eventually like to convert it to a (I hope amusing) cutscene, but for now, I'm just trying to get the plot operational. Thanks.
Modifié par BillHoyt, 30 avril 2010 - 04:49 .





Retour en haut






