View Full Version : Playing Pazaak
11-12-2005, 08:39 PM
I know this has been asked a thousand times before but I use the search function and I just can't get any of the scripts there to work :( . So I ask this question: How do I start a game of pazaak through a dlg option other than a_playpazaak as this is not customisable. I just can't get anything to work so I'm sorry for posting my 1x10^40000000000000th stupid and repetative thread.
11-13-2005, 11:19 AM
I don't see what you can't customize with a_playpazzak as you can set the parameters in the .dlg file but anyways, here is the relevant nwscript.nss excerpt:
// 364: Starts a game of pazaak.
// - nOpponentPazaakDeck: Index into PazaakDecks.2da; specifies which deck the opponent will use.
// - sEndScript: Script to be run when game finishes.
// - nMaxWager: Max player wager. If <= 0, the player's credits won't be modified by the result of the game and the wager screen will not show up.
// - bShowTutorial: Plays in tutorial mode (nMaxWager should be 0).
void PlayPazaak(int nOpponentPazaakDeck, string sEndScript, int nMaxWager, int bShowTutorial=FALSE, object oOpponent=OBJECT_INVALID);
An example would be:
PlayPazaak(1, "", 50);
- The no. 1 means that you refer to the first deck in pazaakdeck.2da
- ""means that you are not firing any script when the game finishes.
- if you want to show the pazaak tutorial, you would have to add TRUE after "",
- 50 is the amountof credits you wager.
And don't worry about asking many questions: this is what these boards are made for ;)
11-13-2005, 04:16 PM
Do you use the dlg file to customise it?! AGH!!!!! Again a simple error vomits on my eiderdown!
11-13-2005, 06:44 PM
Yes, you can customize it with the .dlg file: http://img.photobucket.com/albums/v144/Darth333/pazaak.jpg
vBulletin®, Copyright ©2000-2013, Jelsoft Enterprises Ltd.