Hey folks
so, I'm trying to get it so a trigger will do an area transition after a plot flag is set
the variables in trigger_core don't allow for plot flag setting, so I copied trigger_core into my own script and put the following line outside of the "event_type_enter"
if(WR_GetPlotFlag(PLT_LATE_BREAKFAST,GO_HUNTING))
{
it compiles fine, but nothing happens in game
the plot flag is set as it shows up in my journal
what am I missing?
Area transition trigger script
Débuté par
Caldarin V
, févr. 06 2011 04:51
#1
Posté 06 février 2011 - 04:51
#2
Posté 06 février 2011 - 08:30
It might work better if in your trigger's script, you put
if(WR_GetPlotFlag(PLT_LATE_BREAKFAST, GO_HUNTING)) {
UT_DoAreaTransition(Area, Waypoint);
Safe_Destroy_Object(OBJECT_SELF); //Assuming you don't want it to trigger ever again.
}
Inside EVENT_TYPE_ENTER. The way you've described it you've put an if statement in the middle of a switch statement, which I'm surprised compiles.
if(WR_GetPlotFlag(PLT_LATE_BREAKFAST, GO_HUNTING)) {
UT_DoAreaTransition(Area, Waypoint);
Safe_Destroy_Object(OBJECT_SELF); //Assuming you don't want it to trigger ever again.
}
Inside EVENT_TYPE_ENTER. The way you've described it you've put an if statement in the middle of a switch statement, which I'm surprised compiles.
Modifié par Mengtzu, 06 février 2011 - 08:31 .





Retour en haut






