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?
Plots activating trigger
Débuté par
Caldarin V
, janv. 14 2011 03:22
#1
Posté 14 janvier 2011 - 03:22
#2
Posté 14 janvier 2011 - 07:53
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.
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
Posté 14 janvier 2011 - 05:50
If it is a talk trigger, you can just set the plot flag in the variable list.
#4
Posté 15 janvier 2011 - 08:59
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
Posté 15 janvier 2011 - 09:38
Mengtzu- what would the script look like in that case?
#6
Posté 16 janvier 2011 - 12:22
The plot script would contain a snippet like this, for the event that a main flag is set:
This assumes that there's only one trigger with that tag in the area list.
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 .





Retour en haut






