Your conversation treeview should be the the highest response to the lowest. Meaning, the first time the NPC talks to the PC should be the last conversation in the tree.
+ Good to see you again. (variable is equal to 1) [TEXT APPEARS SCRIPT]
+ Well look what we have here. Someone new in town I see. (variable is equal to 0) [ACTIONS TAKEN SCRIPT]
+ Good to see you again
This requires a TEXT APPEARS script.
+ Well look what we have here. Someone new in town I see.
This requires an ACTIONS TAKEN script.
The ACTIONS TAKEN script would look along the lines of:
void main()
{
// Set the variables
// We set the "metnpcabc" variable to equal 1 so we know the PC has spoken to the NPC
SetLocalInt(GetPCSpeaker(), "metnpcabc", 1);
}
The TEXT APPEARS script would look along the lines of:
int StartingConditional()
{
// Inspect local variables
// We check the "metnpcabc" variable to see if it equals 1 so we know if the PC has spoken to the NPC
if(!(GetLocalInt(GetPCSpeaker(), "metnpcabc") == 1))
return FALSE;
return TRUE;
}
FP!