Actually I think your problem is much more simple. And I think Rolo mentioned it. The line in the conversation should only show up if the variable is on the item right? Like if you've been to disneyland the variable gets set on your item and then when the conversation pops up you should be able to see the "disneyland" line? The highlighted TRUE and FALSE below need to be switched (I already switched them in the script).
int StartingConditional()
{
// Get the PC who is involved in this conversation
object oPC = GetPCSpeaker();
object oPButton = GetItemPossessedBy(oPC, "panicbutton");
int iFokual = GetLocalInt(oPButton, "Fokual");
if (iFokual == TRUE)
return
TRUE;
// If we make it this far, we have passed all tests.
return
FALSE;
}
For the life of me I could not wrap my head around starting conditionals for the longest time. And it wasn't until someone scripted one a certian way that I was able to understand them. Now I know how to do them a bit different but this way made it easy for me. Maybe it will help you:
int StartingConditional()
{
if (some condition == whatever)
{
return TRUE;//Show this line in conversation
}
else
{
return FALSE;//Don't show this line in conversation
}
}
Modifié par GhostOfGod, 28 août 2011 - 03:14 .