Aller au contenu

Photo

Area transition trigger script


  • Veuillez vous connecter pour répondre
1 réponse à ce sujet

#1
Caldarin V

Caldarin V
  • Members
  • 269 messages
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?

#2
Mengtzu

Mengtzu
  • Members
  • 258 messages
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.

Modifié par Mengtzu, 06 février 2011 - 08:31 .