Aller au contenu

Photo

Plots activating trigger


  • Veuillez vous connecter pour répondre
5 réponses à ce sujet

#1
Caldarin V

Caldarin V
  • Members
  • 269 messages
Basically, I don't want a trigger to go off unless the a plot flag has already been set. Do I need to do this in a script or is there another way?
also- what would the script be if I did have to use one?

#2
Proleric

Proleric
  • Members
  • 2 350 messages
AFAIK this has to be done in the trigger event script. I'm a bit short of time this morning, so here's a rough outline:

In the case for EVENT_TYPE_ENTER, if the creature entering is a party member (IsFollower), if WR_GetPlotFlag says the plot flag is set, do stuff.

If you want one script for all triggers, you can use the trigger tag to determine which trigger has been entered.

#3
TimelordDC

TimelordDC
  • Members
  • 923 messages
If it is a talk trigger, you can just set the plot flag in the variable list.

#4
Mengtzu

Mengtzu
  • Members
  • 258 messages
Yet another way to do it would be to have the trigger inactive and set it to active in the plot script when the given flag is set.

#5
Caldarin V

Caldarin V
  • Members
  • 269 messages
Mengtzu- what would the script look like in that case?

#6
Proleric

Proleric
  • Members
  • 2 350 messages
The plot script would contain a snippet like this, for the event that a main flag is set:

case PLOT_FLAG_NAME:
{
WR_SetObjectActive(GetObjectByTag("trigger_tag"), TRUE);
break;
}

where PLOT_FLAG_NAME is the name of the plot flag and trigger_tag is the tag of the trigger.

This assumes that there's only one trigger with that tag in the area list.

Modifié par Proleric1, 16 janvier 2011 - 12:23 .