Int StartingConditional
From NWN Lexicon
Jump to navigationJump to searchint StartingConditional()
This function declaration is necessary for any script which controls the flow of a conversation file. It returns an return statement within its code block. Any custom functions used within the StartingConditional() code block should be declared or prototyped before it (above the void StartingConditional() line).
// function declarations
void myProcedure()
{
// statements ...
}
int StartingConditional()
{
// main code block
myProcedure(); // myProcedure is executed
return 0;
}
void myProcedure()
{
// statements ...
}
int StartingConditional()
{
// main code block
myProcedure(); // myProcedure is executed
return 0;
}
author: Ryan Hunt, editor: Charles Feduke