[SCRIPT] Winnable Lottery V1.00 : Updated 26/11/2005

The place to discuss scripting and game modifications for X³: Reunion.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22437
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow »

[quote="]However, a closer examination would say that it is a 1/4 chance of me putting that object in that cup on that try. Meaning there is 1/4 of me putting the cup there, as well as a 1/4 chance you picking that one... meaning... 1/4*1/4=1/16. [/quote]

but statistics dont work like that.

if you have a dice, and you pick a number, then roll your dice, you have a 1 in 6 chance of guessing the correct number.

as each time you roll the dice, you have 6 possible outcomes, which means you have a 1 in 6 chance that the outcome you pick will be the correct one

your talking about 2 random values, ie, having 2 dice and guessing the outcome of both of them
Gnosoupforu
Posts: 2
Joined: Mon, 18. Feb 08, 00:41

Post by Gnosoupforu »

Does this script work for X2 - The Threat. When I use the Script Manager - pretty cool applicaton - it warns that the script was written for X3 and may not work for X2?

I will say I did not read all of the posts within the subject and may be asking a question already answered but... :wink:

If not, is there a version that does work for X2 or what needs to be done to get it to work with X2?

Cheers,
Lancefighter
Posts: 3144
Joined: Sun, 19. Dec 04, 02:41
x4

Post by Lancefighter »

Cycrow wrote:
Lancefighter wrote:However, a closer examination would say that it is a 1/4 chance of me putting that object in that cup on that try. Meaning there is 1/4 of me putting the cup there, as well as a 1/4 chance you picking that one... meaning... 1/4*1/4=1/16.
but statistics dont work like that.

if you have a dice, and you pick a number, then roll your dice, you have a 1 in 6 chance of guessing the correct number.

as each time you roll the dice, you have 6 possible outcomes, which means you have a 1 in 6 chance that the outcome you pick will be the correct one

your talking about 2 random values, ie, having 2 dice and guessing the outcome of both of them
it IS two random values! yes, you ARE rolling two dice! one is hidden (behind the script) and the other is the one the player choses... while you may not think a player choice is random (and it is truly not), it might as well be.

Your script rolls the die to chose witch ticket is a winner
the player rolls a die to chose which ticket to chose
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22437
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow »

Gnosoupforu wrote:Does this script work for X2 - The Threat. When I use the Script Manager - pretty cool applicaton - it warns that the script was written for X3 and may not work for X2?

I will say I did not read all of the posts within the subject and may be asking a question already answered but... :wink:

If not, is there a version that does work for X2 or what needs to be done to get it to work with X2?

Cheers,
nope it doesn't work for X2, and never will.

because the script uses some new features that was added in X3 that doesn't exist in X2.

in X2, its not possible to add stuff to the BBS
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22437
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow »

Lancefighter wrote:
Cycrow wrote:
Lancefighter wrote:However, a closer examination would say that it is a 1/4 chance of me putting that object in that cup on that try. Meaning there is 1/4 of me putting the cup there, as well as a 1/4 chance you picking that one... meaning... 1/4*1/4=1/16.
but statistics dont work like that.

if you have a dice, and you pick a number, then roll your dice, you have a 1 in 6 chance of guessing the correct number.

as each time you roll the dice, you have 6 possible outcomes, which means you have a 1 in 6 chance that the outcome you pick will be the correct one

your talking about 2 random values, ie, having 2 dice and guessing the outcome of both of them
it IS two random values! yes, you ARE rolling two dice! one is hidden (behind the script) and the other is the one the player choses... while you may not think a player choice is random (and it is truly not), it might as well be.

Your script rolls the die to chose witch ticket is a winner
the player rolls a die to chose which ticket to chose
i've made a little program you can test ;)

there are a number of rounds where a dice is rolled, and theres 8 players to match up with. And displays the scores at the end

the first 6 players always choose the same number, ie, player one chooses 1, player 2 chooses 2, etc.
players 7 and 8 pick a number at random each time.

if you do alot of rounds, you can see that the scores are all very simlar.

whereas, if you were correct, players 7 and 8 should roughly be 4 times lower

http://ircwhore.co.uk/dicerandom.zip
Lancefighter
Posts: 3144
Joined: Sun, 19. Dec 04, 02:41
x4

Post by Lancefighter »

I think I lost.

You win.


:oops:
Gnosoupforu
Posts: 2
Joined: Mon, 18. Feb 08, 00:41

Post by Gnosoupforu »

Thanks for the information Cycrow. Looks like I will have to break down and buy X3 (not like I would shed a tear doing so). :wink:
Schabernack
Posts: 217
Joined: Wed, 18. Apr 07, 19:32

Post by Schabernack »

hi, is it possible to delete or disable the original lottery completly.

For example the "no trash" mod deleted the

Code: Select all

<t id=xyz ...> ...
between the page tags, as far as i could see that was all in that case.
But when i delete the t entries between the lottery page tag, i get the readtext errors in the BBS with the page id of the lotterey BBS, so the function behind is still trying to catch text.
What would be need to be done to stop that?
learn from the past, live the moment, dream of the future
tc-ap minimax

Return to “X³: Reunion - Scripts and Modding”