Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Post-Pazaak Dialog Problems

Page: 1 of 1
 Ferc Kast
02-02-2009, 6:40 PM
#1
I am trying to get this script to run after having the PC playing Pazaak, I want it to run a dialog (which I added special nodes with conditionals pointing to the 2 different integers for winning and losing). But, after Pazaak, it only takes away or adds the amount of the wager.

void main()
{

string Pazaak = "307_SlaverPazaak";
object PC = GetFirstPC();
string Dialog = "307_slaver";

//If lost
if ( ( GetLastPazaakResult() == 0)) {
SetGlobalNumber(Pazaak, 20);
ActionStartConversation(PC, Dialog);
}
//If won
else if ( ( GetLastPazaakResult() == 1)) {
SetGlobalNumber(Pazaak, 21);
ActionStartConversation(PC, Dialog);
}


}

So, where did I go wrong in this script?
Page: 1 of 1