The idea is for the Player to have to recruit two followers before moving on in the quest. So I got a plot flag in the quest for each time a follower is recruited but how do I set it so the next plot flag, or next stage in the quest only happens after both of the followers flags are true and not just one.
For right now i'm gonna do a little work around with setting up having one follower as a condition to get the other. Which means when I recruit the last one it then triggers the flag that takes the quest to the next stage. But I'd much rather the player not to have to recruit them in a certin order nnot to mention I'm sure i'm gonna find many instances where I'm gonna find myself needing to know how to set this up.
If anyone can answer my question or point me in the direction of a wiki page that explains this that i've missed it would be very helpful.
How to trigger one plot flag only after completing two conditions?
Débuté par
carmadaum
, avril 21 2010 11:16
#1
Posté 21 avril 2010 - 11:16
#2
Posté 23 avril 2010 - 08:27
Plot scripts need a return value. To make the error go away, you can put return 0; at the end of the script, just inside the last }
If you ever add defined conditions into the plot, you'll want to set up a return variable, something like:
#include "plot_h"
#include "utility_h"
#include "wrappers_h"
#include "plt_attack_naldis_stronghol"
#include "plt_get_dannal"
#include "plt_get_bran"
int StartingConditional()
{
event eParms = GetCurrentEvent();
int nType = GetEffectType(eParams);
int nFlag = GetEventInteger(eParms, 1);
int bResult = FALSE;
if(nType == EVENT_TYPE_SET_PLOT)
{
switch(nFlag)
{
case BRAN_JOIN:
{
if(WR_GetPlotFlag(PLT_GET_DANNAL, DANNAL_JOIN))
{
WR_SetPlotFlag(PLT_ATTACK_NALDIS_STRONGHOL, ASSEMBLE_MEN, TRUE, TRUE);
}
break;
}
}
}
if(nType == EVENT_TYPE_GET_PLOT)
{
switch (nFlag)
{
}
}
return bResult;
}
If you ever add defined conditions into the plot, you'll want to set up a return variable, something like:
#include "plot_h"
#include "utility_h"
#include "wrappers_h"
#include "plt_attack_naldis_stronghol"
#include "plt_get_dannal"
#include "plt_get_bran"
int StartingConditional()
{
event eParms = GetCurrentEvent();
int nType = GetEffectType(eParams);
int nFlag = GetEventInteger(eParms, 1);
int bResult = FALSE;
if(nType == EVENT_TYPE_SET_PLOT)
{
switch(nFlag)
{
case BRAN_JOIN:
{
if(WR_GetPlotFlag(PLT_GET_DANNAL, DANNAL_JOIN))
{
WR_SetPlotFlag(PLT_ATTACK_NALDIS_STRONGHOL, ASSEMBLE_MEN, TRUE, TRUE);
}
break;
}
}
}
if(nType == EVENT_TYPE_GET_PLOT)
{
switch (nFlag)
{
}
}
return bResult;
}
Modifié par DavidSims, 23 avril 2010 - 08:29 .





Retour en haut






