Boran Posted November 10, 2004 Share Posted November 10, 2004 Can anybody tell me how to make this script so if I lose at pazaak, I win? I copied and pasted the script from the original game and need help modifying it. Here is the exact script: // if the player just lost a pazaak game int StartingConditional() { int iResult, t; iResult = ((GetGlobalBoolean("G_Paz_JustPlayed") == TRUE) && (GetLastPazaakResult()==0)); t = GetGlobalNumber("MAN_GONTON"); SetGlobalNumber("MAN_GONTON", t + 1); return iResult; } Link to comment Share on other sites More sharing options...
Mono_Giganto Posted November 10, 2004 Share Posted November 10, 2004 I would suggest looking at the script for winning pazaak and checking for differences, that's likely where you'll find your answer. Link to comment Share on other sites More sharing options...
Boran Posted November 10, 2004 Author Share Posted November 10, 2004 This is if the player wins...I am NO scripter or even half-scripter... When I tryed with C# could barely understand the Hello World program I found in one of the misc books I got... Anyway please post the changes I should make! It would help me beat the championship of Pazaak. thanks! NOTE: I did NOT misspell anything inside the script. Those errors were made by BioWare Not by me Here is the exact script: // if thep layer just won a pazaak game int StartingConditional() { int iResult, t; iResult = ((GetGlobalBoolean("G_Paz_JustPlayed") == TRUE) && (GetLastPazaakResult()==1)); t = GetGlobalNumber("MAN_GONTON"); SetGlobalNumber("MAN_GONTON", t + 1); return iResult; } Link to comment Share on other sites More sharing options...
Mono_Giganto Posted November 10, 2004 Share Posted November 10, 2004 Well it seems to me, the difference is this: (GetLastPazaakResult()==1)); For winner. (GetLastPazaakResult()==0)); For loser. Try changing the zero to a 1 and compile the script, let me know if it works I'll be kind of proud of myself. Link to comment Share on other sites More sharing options...
Hannibal Posted November 10, 2004 Share Posted November 10, 2004 Originally posted by Boran ...When I tryed with C# could barely understand the Hello World program I found in one of the misc books I got... } That "Hello World" program brings back memories. Is that the introductory program for every programming class? Link to comment Share on other sites More sharing options...
Boran Posted November 10, 2004 Author Share Posted November 10, 2004 Originally posted by Hannibal That "Hello World" program brings back memories. Is that the introductory program for every programming class? Hehe it prolly is I tryed changing it to a 0 but it did nothing... If it is the same as the win script wont it just fire the script twice? I dunno I suck at scripting. Link to comment Share on other sites More sharing options...
tk102 Posted November 10, 2004 Share Posted November 10, 2004 Hello Boran, You cannot change the outcome of Pazaak directly with scripting because it is a minigame. The script you posted is a conditional script so that dialog resumes appropriately (eg. "Pazaak is not for everyone"). The credits will be deducted by the Pazaak minigame automatically. However, you can make the script you posted give you credits if you lose. You could modify it to something like this: Can anybody tell me how to make this script so if I lose at pazaak, I win? I copied and pasted the script from the original game and need help modifying it. Here is the exact script: // if the player just lost a pazaak game int StartingConditional() { int iResult, t, nGP; //the amount of 'consolation' credits to get if you lose nGP = 500; iResult = ((GetGlobalBoolean("G_Paz_JustPlayed") == TRUE) && (GetLastPazaakResult()==0)); if (iResult) { GiveGoldToCreature(GetFirstPC(), nGP); } t = GetGlobalNumber("MAN_GONTON"); SetGlobalNumber("MAN_GONTON", t + 1); return iResult; } Note, this script that you posted that I have modified appears to be specific to a particular Pazaak game, apparently one that is played on Manaan. You will have to do something similar to other scripts if you want to continue your cheating frenzy. Link to comment Share on other sites More sharing options...
Boran Posted November 10, 2004 Author Share Posted November 10, 2004 Originally posted by tk102 Hello Boran, You cannot change the outcome of Pazaak directly with scripting because it is a minigame. The script you posted is a conditional script so that dialog resumes appropriately (eg. "Pazaak is not for everyone"). The credits will be deducted by the Pazaak minigame automatically. However, you can make the script you posted give you credits if you lose. You could modify it to something like this: Can anybody tell me how to make this script so if I lose at pazaak, I win? I copied and pasted the script from the original game and need help modifying it. Here is the exact script: // if the player just lost a pazaak game int StartingConditional() { int iResult, t, nGP; //the amount of 'consolation' credits to get if you lose nGP = 500; iResult = ((GetGlobalBoolean("G_Paz_JustPlayed") == TRUE) && (GetLastPazaakResult()==0)); if (iResult) { GiveGoldToCreature(GetFirstPC(), nGP); } t = GetGlobalNumber("MAN_GONTON"); SetGlobalNumber("MAN_GONTON", t + 1); return iResult; } Note, this script that you posted that I have modified appears to be specific to a particular Pazaak game, apparently one that is played on Manaan. You will have to do something similar to other scripts if you want to continue your cheating frenzy. Ahhh darn you cant to it...Shucks....I wanted to beat the Pazaak Tournement without constant reloading. Oh well thanks anyway Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.