Main
Projects
Art
Music
Scripting
LiveJournal
Forum
Links
Lottery
by SilverWolf

This script is kind of a lottery. It gives the user a random amount of money. You may want to change the amounts given to fit your game; the given amounts seem a little extreme to me. It's also a good idea to make the player pay for playing.


#Lottery script - 

define script (2,lottery,none) 

script, lottery, begin 
variable(number) 
setvariable(number,random(1,20)) 
if (number==1) then (get money(1)) #you get 1 money 
if (number==2) then (get money(1)) #etc. 
if (number==3) then (get money(1)) 
if (number==4) then (get money(1)) 
if (number==5) then (get money(1)) 
if (number==6) then (get money(5)) 
if (number==7) then (get money(5)) 
if (number==8) then (get money(5)) 
if (number==9) then (get money(10)) 
if (number==10) then (get money(10)) 
if (number==11) then (get money(10)) 
if (number==12) then (get money(50)) 
if (number==13) then (get money(50)) 
if (number==14) then (get money(75)) 
if (number==15) then (get money(75)) 
if (number==16) then (get money(100)) 
if (number==17) then (get money(100)) 
if (number==18) then (get money(1000)) 
if (number==19) then (get money(5000)) 
if (number==20) then (get money(10000)) 
end

Site layout (c)2000 Jennifer Raby. Used by permission.