I started to made my first own quest. I'd managed to activate it via a dialog. But when I try to expand it (getting to the next Plot flag) it won't work.
I made up this script basing on someone elses. I'd just changed everything correctly.
Now the Problem: Every time I try to compile the script I get an Error in the Log Window:
E: 23:13:16 - plot01.nss - plot01.nss(42): No right bracket on expression
This is the script:
#include "log_h"
#include "utility_h"
#include "wrappers_h"
#include "plot_h"
#include "plt_quest01"
int StartingConditional()
{
event eParms = GetCurrentEvent(); // Contains all input parameters
int nType = GetEventType(eParms); // GET or SET call
string strPlot = GetEventString(eParms, 0); // Plot GUID
int nFlag = GetEventInteger(eParms, 1); // The bit flag # being affected
object oParty = GetEventCreator(eParms); // The owner of the plot table for this script
object oConversationOwner = GetEventObject(eParms, 0); // Owner on the conversation, if any
int nResult = FALSE; // used to return value for DEFINED GET events
object oPC = GetHero();
plot_GlobalPlotHandler(eParms); // any global plot operations, including debug info
if(nType == EVENT_TYPE_SET_PLOT) // actions -> normal flags only
{
int nValue = GetEventInteger(eParms, 2); // On SET call, the value about to be written (on a normal SET that should be '1', and on a 'clear' it should be '0')
int nOldValue = GetEventInteger(eParms, 3); // On SET call, the current flag value (can be either 1 or 0 regardless if it's a set or clear event)
// IMPORTANT: The flag value on a SET event is set only AFTER this script finishes running!
switch(nFlag)
{
case HURL_MONSTER_KILLED:
{
if (WR_GetPlotFlag(PLT_QUEST01,HURL_MONSTER_KILLED)
)
UT_AddItemToInventory(GEN_IM_WEP_MEL_LSW_WAR_R);
break;
}
}
case HURL_QUEST_DONE:
{
UT_RemoveItemFromInventory(GEN_IM_WEP_MEL_LSW_WAR_R);
break;
}
}
}
plot_OutputDefinedFlag(eParms, nResult);
return nResult; = This is the "Error Line".
}
Hope you guys can help me.
Modifié par champion-one, 25 novembre 2009 - 05:25 .





Retour en haut






