HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Lottery/Slot Machine Triggers

09-30-2004, 10:53 PM#1
cfmonkey45
I need a tutorial on how to make triggers that have the lottery in them:
For example, i need the triggers to have odds such as
Code:
70% YOU lose, 20% you get money 10% you win the jackpot
for my slot machines.
and for the lottery, i need like numbers so that their tickets have numbers (like if they type "-ticket" they see their numbers) and the numbers are drawn at six and it gives off numbers, and if they get it they win.

I would greatly appreciate this.
09-30-2004, 11:02 PM#2
MiGiLiCuDDiE
I cant give you the specific, but it will most likely come in the form of:

Event:
Player one types -whatever
Condition:
Action:
Set 'variable' to a random number betwen 1 and 10.
If 'variable' is equal to or less than 7 (70%) then do whatever.
If 'variable' is equal 8 or 9 (20%) then do whatever.
If 'variable' is equal to or greater than 10 (10%) then do whatever.

Sorry I couldn't paste an actual trigger, but this should get you going in the right direction. The next guy that posts will probably have a more elegant solution. (i hope)
09-30-2004, 11:06 PM#3
cfmonkey45
thanks, but i still need the lottery one
09-30-2004, 11:11 PM#4
Gandalf2349
You should experiment, don't have someone make your map for you. Try and figure out how to do it yourself.
09-30-2004, 11:16 PM#5
MiGiLiCuDDiE
The lottery one would be very similar. Easier in fact.

Event:
Player one types -whatever
Condition:
Action:
Set 'variable' to a random number betwen 1 and 1000.
If 'variable' is equal to 437 then do whatever, else do nothing.