Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

creating pots

Jade Bard
Registered User
Join date: 7 Jul 2004
Posts: 106
07-12-2004 19:00
I'm just wondering, (I tried searching pots on Guru forum, and got nothing.) First of all how do I create a pot for a machine, and Second can I create a pot between mulitible machines?

Note this is for casinos. So I want a pot for like slot machines.

(So like you put money in a machine, if you win it takes money out of the pot, if you lose puts money into the pot.)
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
07-12-2004 19:15
pot?
_____________________
October 3rd is the Day Against DRM (Digital Restrictions Management), learn more at http://www.defectivebydesign.org/what_is_drm
Tony Tigereye
Registered User
Join date: 4 Sep 2003
Posts: 165
07-12-2004 19:24
Ask Oneironaut.
Darwin Appleby
I Was Beaten With Satan
Join date: 14 Mar 2003
Posts: 2,779
07-12-2004 19:33
Well, I made a Winnie the Pooh honey pot. Do you want that?
_____________________
Touche.
Essence Lumin
.
Join date: 24 Oct 2003
Posts: 806
07-12-2004 19:40
Oneironaut is certainly a good choice to ask about that but really, what do you mean by pot? A flower pot? A cooking pot? Sort of an odd question.
Ama Omega
Lost Wanderer
Join date: 11 Dec 2002
Posts: 1,770
07-12-2004 19:42
I think the only methods for handling money in the game are probably llGiveMoney and the money event. Any game that has a pot is simply keeping track of numbers, adding when more money comes in, subtracting when it pays out.

For more information check out the following on badgeometry.com/wiki (sorry not gonna link em *all* for you)
events
variables (global and local)
integers
_____________________
--
010000010110110101100001001000000100111101101101011001010110011101100001
--
Essence Lumin
.
Join date: 24 Oct 2003
Posts: 806
07-12-2004 19:44
Oh gambling pots. I guess that makes sense.
Wednesday Grimm
Ex Libris
Join date: 9 Jan 2003
Posts: 934
07-12-2004 20:04
Ackertually, I think he means a potentiometer.

There's really no UI to rotate a dial. What you can have is a knob, and everytime you click on it, it goes up (or down) by a small quantized amount.

here is a (basic, typed in off the top of my head, untested) script to get you started
CODE

float fVal = 0;
float fInc = 0.1;
float fMax = TWO_PI;
integer nSide = ALL_SIDES;

default
{
touch_start(integer n)
{
fVal += fInc;
if (fVal >= fMax) fVal = 0;
llRotateTexture(fVal, nSide);
llSay(0, "current value is " + (string)fVal);
}
}


HTH
_____________________
Sarcasm meter:
0 |-----------------------*-| 10
Rating: Awww Jeeze!
Jade Bard
Registered User
Join date: 7 Jul 2004
Posts: 106
07-12-2004 20:27
Well would it be possible to have this across multiable machines?

And yes i'm talking about Casino Pot.
Merlin Peregrine
Registered User
Join date: 24 Nov 2003
Posts: 18
07-13-2004 12:02
:) Wednesday , that "Pot" made me laugh!
Starmand Stygian
Junior Member
Join date: 12 May 2004
Posts: 8
07-13-2004 12:51
he's talking about having a progressive pot that several slot machines are linked up to.
Jade Bard
Registered User
Join date: 7 Jul 2004
Posts: 106
07-13-2004 13:07
Yes exactly.

I just need to see code for a pot for one machine.

Can machines talk to one another?
Darwin Appleby
I Was Beaten With Satan
Join date: 14 Mar 2003
Posts: 2,779
07-13-2004 13:22
From: someone
Originally posted by Jade Bard
And yes i'm talking about Casino Pot.
Really? I prefer Bar Pot. Or Indonesian Pot.
_____________________
Touche.
Wednesday Grimm
Ex Libris
Join date: 9 Jan 2003
Posts: 934
07-13-2004 13:43
But not Pol Pot.

I honestly thought that's what he meant
_____________________
Sarcasm meter:
0 |-----------------------*-| 10
Rating: Awww Jeeze!
Jade Bard
Registered User
Join date: 7 Jul 2004
Posts: 106
07-13-2004 15:32
But the question is, does anyone have the code for a casino for a machine?!
Darwin Appleby
I Was Beaten With Satan
Join date: 14 Mar 2003
Posts: 2,779
07-13-2004 15:36
Just do something like this;

set up an integer, like integer potmoney.

Then, whenever someone pays it, get the amont that it payed, and add it to integer potmoney. Whenever someone wins, pay them integer potmoney, and set potmoney to 0, or whatever you want the starting pot to be.

Batta-bing, batta-boom.
_____________________
Touche.
Jade Bard
Registered User
Join date: 7 Jul 2004
Posts: 106
07-13-2004 16:29
Well i guess what I don't understand is. How will the machine know to know to take money from my pot, and not me?
Ama Omega
Lost Wanderer
Join date: 11 Dec 2002
Posts: 1,770
07-13-2004 19:03
Ahhhh ok sorry for the confusion.

There is no such actual thing as a pot. None. Nothing. Zero. The only way to handle money in a game is for the game to give away your money and for other people to give their money to you through the machine.

Everytime someone bets $10 at a slot machine, they are paying $10 to the owner of that slot machine. Everytime that slot machine pays $10 to someone who is playing, it is taking money from the owner of the slot machine and giving it to the player.

Pots are faked by keeping track of a number. There is no actual pot beyond an integer variable that goes up and down.

If you want objects to communicate with each other check out (on the wiki again)
llSay
llShout
llEmail
llXmlRpc (although this is currently the toughest option)
_____________________
--
010000010110110101100001001000000100111101101101011001010110011101100001
--
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
07-13-2004 19:35
From: someone
Originally posted by Ama Omega
llXmlRpc (although this is currently the toughest option)


Did you mean llSendRemoteData :D

If you did, I have bad news, its not implemented yet, nor will it be implemented soon :(
Jade Bard
Registered User
Join date: 7 Jul 2004
Posts: 106
07-13-2004 21:42
From: someone
Originally posted by Ama Omega
Ahhhh ok sorry for the confusion.

There is no such actual thing as a pot. None. Nothing. Zero. The only way to handle money in a game is for the game to give away your money and for other people to give their money to you through the machine.

Everytime someone bets $10 at a slot machine, they are paying $10 to the owner of that slot machine. Everytime that slot machine pays $10 to someone who is playing, it is taking money from the owner of the slot machine and giving it to the player.

Pots are faked by keeping track of a number. There is no actual pot beyond an integer variable that goes up and down.

If you want objects to communicate with each other check out (on the wiki again)
llSay
llShout
llEmail
llXmlRpc (although this is currently the toughest option)


Thanks so much for explaining this to me. I hope in the future they do have pots.
Darwin Appleby
I Was Beaten With Satan
Join date: 14 Mar 2003
Posts: 2,779
07-13-2004 22:07
Well, it's not really neccesarry...
_____________________
Touche.
Ama Omega
Lost Wanderer
Join date: 11 Dec 2002
Posts: 1,770
07-13-2004 22:23
From: someone
Originally posted by Christopher Omega
Did you mean llSendRemoteData :D

If you did, I have bad news, its not implemented yet, nor will it be implemented soon :(
Polling will work, but its neither elegant, efficient or easy. Thats why I said it was the hardest. I probably just meant www.badgeometry.com/wiki/xmlrpc
_____________________
--
010000010110110101100001001000000100111101101101011001010110011101100001
--