home *** CD-ROM | disk | FTP | other *** search
/ 100 Plus Great Games 2 / 100PLUSV2.BIN / games / PyramidPoker.dxr / Internal_4_handlers.ls < prev    next >
Encoding:
Text File  |  2002-01-25  |  23.1 KB  |  808 lines

  1. global pootimer, playerHandCount, points, scoreBox, gScoreSprites, win
  2.  
  3. on shuffle me
  4.   unshuffled = []
  5.   shuffled = []
  6.   repeat with rank in ["ace", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "jack", "queen", "king"]
  7.     repeat with suit in ["hearts", "diamonds", "clubs", "spades"]
  8.       unshuffled.add([#rank: rank, #suit: suit])
  9.     end repeat
  10.   end repeat
  11.   repeat while unshuffled.count > 0
  12.     temp = unshuffled[random(unshuffled.count)]
  13.     shuffled.add(temp)
  14.     unshuffled.deleteOne(temp)
  15.   end repeat
  16.   shuffled.deleteAt(1)
  17.   shuffled.deleteAt(1)
  18.   return shuffled
  19. end
  20.  
  21. on makesymbol thing
  22.   return string(thing).symbol
  23. end
  24.  
  25. on getIntersect spnum
  26.   case spnum of
  27.     10:
  28.       if sprite(35).intersects(spnum) and sprite(35).visible then
  29.         return 1
  30.       else
  31.         return 0
  32.       end if
  33.     11:
  34.       if sprite(35).intersects(spnum) and sprite(35).visible then
  35.         return 1
  36.       else
  37.         if sprite(36).intersects(spnum) and sprite(36).visible then
  38.           return 1
  39.         else
  40.           return 0
  41.         end if
  42.       end if
  43.     12:
  44.       if sprite(36).intersects(spnum) and sprite(36).visible then
  45.         return 1
  46.       else
  47.         if sprite(37).intersects(spnum) and sprite(37).visible then
  48.           return 1
  49.         else
  50.           return 0
  51.         end if
  52.       end if
  53.     13:
  54.       if sprite(37).intersects(spnum) and sprite(37).visible then
  55.         return 1
  56.       else
  57.         if sprite(38).intersects(spnum) and sprite(38).visible then
  58.           return 1
  59.         else
  60.           return 0
  61.         end if
  62.       end if
  63.     14:
  64.       if sprite(38).intersects(spnum) and sprite(38).visible then
  65.         return 1
  66.       else
  67.         return 0
  68.       end if
  69.     15:
  70.       if sprite(35).intersects(spnum) and sprite(35).visible then
  71.         return 1
  72.       else
  73.         if sprite(39).intersects(spnum) and sprite(39).visible then
  74.           return 1
  75.         else
  76.           return 0
  77.         end if
  78.       end if
  79.     16:
  80.       if sprite(35).intersects(spnum) and sprite(35).visible then
  81.         return 1
  82.       else
  83.         if sprite(36).intersects(spnum) and sprite(36).visible then
  84.           return 1
  85.         else
  86.           if sprite(39).intersects(spnum) and sprite(39).visible then
  87.             return 1
  88.           else
  89.             if sprite(40).intersects(spnum) and sprite(40).visible then
  90.               return 1
  91.             else
  92.               return 0
  93.             end if
  94.           end if
  95.         end if
  96.       end if
  97.     17:
  98.       if sprite(36).intersects(spnum) and sprite(36).visible then
  99.         return 1
  100.       else
  101.         if sprite(37).intersects(spnum) and sprite(37).visible then
  102.           return 1
  103.         else
  104.           if sprite(40).intersects(spnum) and sprite(40).visible then
  105.             return 1
  106.           else
  107.             if sprite(41).intersects(spnum) and sprite(41).visible then
  108.               return 1
  109.             else
  110.               return 0
  111.             end if
  112.           end if
  113.         end if
  114.       end if
  115.     18:
  116.       if sprite(37).intersects(spnum) and sprite(37).visible then
  117.         return 1
  118.       else
  119.         if sprite(38).intersects(spnum) and sprite(38).visible then
  120.           return 1
  121.         else
  122.           if sprite(41).intersects(spnum) and sprite(41).visible then
  123.             return 1
  124.           else
  125.             if sprite(42).intersects(spnum) and sprite(42).visible then
  126.               return 1
  127.             else
  128.               return 0
  129.             end if
  130.           end if
  131.         end if
  132.       end if
  133.     19:
  134.       if sprite(38).intersects(spnum) and sprite(38).visible then
  135.         return 1
  136.       else
  137.         if sprite(42).intersects(spnum) and sprite(42).visible then
  138.           return 1
  139.         else
  140.           return 0
  141.         end if
  142.       end if
  143.     20:
  144.       if sprite(39).intersects(spnum) and sprite(39).visible then
  145.         return 1
  146.       else
  147.         if sprite(43).intersects(spnum) and sprite(43).visible then
  148.           return 1
  149.         else
  150.           return 0
  151.         end if
  152.       end if
  153.     21:
  154.       if sprite(39).intersects(spnum) and sprite(39).visible then
  155.         return 1
  156.       else
  157.         if sprite(40).intersects(spnum) and sprite(40).visible then
  158.           return 1
  159.         else
  160.           if sprite(43).intersects(spnum) and sprite(43).visible then
  161.             return 1
  162.           else
  163.             if sprite(44).intersects(spnum) and sprite(44).visible then
  164.               return 1
  165.             else
  166.               return 0
  167.             end if
  168.           end if
  169.         end if
  170.       end if
  171.     22:
  172.       if sprite(40).intersects(spnum) and sprite(40).visible then
  173.         return 1
  174.       else
  175.         if sprite(41).intersects(spnum) and sprite(41).visible then
  176.           return 1
  177.         else
  178.           if sprite(44).intersects(spnum) and sprite(44).visible then
  179.             return 1
  180.           else
  181.             if sprite(45).intersects(spnum) and sprite(45).visible then
  182.               return 1
  183.             else
  184.               return 0
  185.             end if
  186.           end if
  187.         end if
  188.       end if
  189.     23:
  190.       if sprite(41).intersects(spnum) and sprite(41).visible then
  191.         return 1
  192.       else
  193.         if sprite(42).intersects(spnum) and sprite(42).visible then
  194.           return 1
  195.         else
  196.           if sprite(45).intersects(spnum) and sprite(45).visible then
  197.             return 1
  198.           else
  199.             if sprite(46).intersects(spnum) and sprite(46).visible then
  200.               return 1
  201.             else
  202.               return 0
  203.             end if
  204.           end if
  205.         end if
  206.       end if
  207.     24:
  208.       if sprite(42).intersects(spnum) and sprite(42).visible then
  209.         return 1
  210.       else
  211.         if sprite(46).intersects(spnum) and sprite(46).visible then
  212.           return 1
  213.         else
  214.           return 0
  215.         end if
  216.       end if
  217.     25:
  218.       if sprite(43).intersects(spnum) and sprite(43).visible then
  219.         return 1
  220.       else
  221.         if sprite(47).intersects(spnum) and sprite(47).visible then
  222.           return 1
  223.         else
  224.           return 0
  225.         end if
  226.       end if
  227.     26:
  228.       if sprite(43).intersects(spnum) and sprite(43).visible then
  229.         return 1
  230.       else
  231.         if sprite(44).intersects(spnum) and sprite(44).visible then
  232.           return 1
  233.         else
  234.           if sprite(47).intersects(spnum) and sprite(47).visible then
  235.             return 1
  236.           else
  237.             if sprite(48).intersects(spnum) and sprite(48).visible then
  238.               return 1
  239.             else
  240.               return 0
  241.             end if
  242.           end if
  243.         end if
  244.       end if
  245.     27:
  246.       if sprite(44).intersects(spnum) and sprite(44).visible then
  247.         return 1
  248.       else
  249.         if sprite(45).intersects(spnum) and sprite(45).visible then
  250.           return 1
  251.         else
  252.           if sprite(48).intersects(spnum) and sprite(48).visible then
  253.             return 1
  254.           else
  255.             if sprite(49).intersects(spnum) and sprite(49).visible then
  256.               return 1
  257.             else
  258.               return 0
  259.             end if
  260.           end if
  261.         end if
  262.       end if
  263.     28:
  264.       if sprite(45).intersects(spnum) and sprite(45).visible then
  265.         return 1
  266.       else
  267.         if sprite(46).intersects(spnum) and sprite(46).visible then
  268.           return 1
  269.         else
  270.           if sprite(49).intersects(spnum) and sprite(49).visible then
  271.             return 1
  272.           else
  273.             if sprite(50).intersects(spnum) and sprite(50).visible then
  274.               return 1
  275.             else
  276.               return 0
  277.             end if
  278.           end if
  279.         end if
  280.       end if
  281.     29:
  282.       if sprite(46).intersects(spnum) and sprite(46).visible then
  283.         return 1
  284.       else
  285.         if sprite(50).intersects(spnum) and sprite(50).visible then
  286.           return 1
  287.         else
  288.           return 0
  289.         end if
  290.       end if
  291.     30:
  292.       if sprite(47).intersects(spnum) and sprite(47).visible then
  293.         return 1
  294.       else
  295.         return 0
  296.       end if
  297.     31:
  298.       if sprite(47).intersects(spnum) and sprite(47).visible then
  299.         return 1
  300.       else
  301.         if sprite(48).intersects(spnum) and sprite(48).visible then
  302.           return 1
  303.         else
  304.           return 0
  305.         end if
  306.       end if
  307.     32:
  308.       if sprite(48).intersects(spnum) and sprite(48).visible then
  309.         return 1
  310.       else
  311.         if sprite(49).intersects(spnum) and sprite(49).visible then
  312.           return 1
  313.         else
  314.           return 0
  315.         end if
  316.       end if
  317.     33:
  318.       if sprite(49).intersects(spnum) and sprite(49).visible then
  319.         return 1
  320.       else
  321.         if sprite(50).intersects(spnum) and sprite(50).visible then
  322.           return 1
  323.         else
  324.           return 0
  325.         end if
  326.       end if
  327.     34:
  328.       if sprite(50).intersects(spnum) and sprite(50).visible then
  329.         return 1
  330.       else
  331.         return 0
  332.       end if
  333.     35:
  334.       if sprite(51).intersects(spnum) and sprite(51).visible then
  335.         return 1
  336.       else
  337.         return 0
  338.       end if
  339.     36:
  340.       if sprite(51).intersects(spnum) and sprite(51).visible then
  341.         return 1
  342.       else
  343.         if sprite(52).intersects(spnum) and sprite(52).visible then
  344.           return 1
  345.         else
  346.           return 0
  347.         end if
  348.       end if
  349.     37:
  350.       if sprite(52).intersects(spnum) and sprite(52).visible then
  351.         return 1
  352.       else
  353.         if sprite(53).intersects(spnum) and sprite(53).visible then
  354.           return 1
  355.         else
  356.           return 0
  357.         end if
  358.       end if
  359.     38:
  360.       if sprite(53).intersects(spnum) and sprite(53).visible then
  361.         return 1
  362.       else
  363.         return 0
  364.       end if
  365.     39:
  366.       if sprite(51).intersects(spnum) and sprite(51).visible then
  367.         return 1
  368.       else
  369.         if sprite(54).intersects(spnum) and sprite(54).visible then
  370.           return 1
  371.         else
  372.           return 0
  373.         end if
  374.       end if
  375.     40:
  376.       if sprite(51).intersects(spnum) and sprite(51).visible then
  377.         return 1
  378.       else
  379.         if sprite(52).intersects(spnum) and sprite(52).visible then
  380.           return 1
  381.         else
  382.           if sprite(54).intersects(spnum) and sprite(54).visible then
  383.             return 1
  384.           else
  385.             if sprite(55).intersects(spnum) and sprite(55).visible then
  386.               return 1
  387.             else
  388.               return 0
  389.             end if
  390.           end if
  391.         end if
  392.       end if
  393.     41:
  394.       if sprite(52).intersects(spnum) and sprite(52).visible then
  395.         return 1
  396.       else
  397.         if sprite(53).intersects(spnum) and sprite(53).visible then
  398.           return 1
  399.         else
  400.           if sprite(55).intersects(spnum) and sprite(55).visible then
  401.             return 1
  402.           else
  403.             if sprite(56).intersects(spnum) and sprite(56).visible then
  404.               return 1
  405.             else
  406.               return 0
  407.             end if
  408.           end if
  409.         end if
  410.       end if
  411.     42:
  412.       if sprite(53).intersects(spnum) and sprite(53).visible then
  413.         return 1
  414.       else
  415.         if sprite(56).intersects(spnum) and sprite(56).visible then
  416.           return 1
  417.         else
  418.           return 0
  419.         end if
  420.       end if
  421.     43:
  422.       if sprite(54).intersects(spnum) and sprite(54).visible then
  423.         return 1
  424.       else
  425.         if sprite(57).intersects(spnum) and sprite(57).visible then
  426.           return 1
  427.         else
  428.           return 0
  429.         end if
  430.       end if
  431.     44:
  432.       if sprite(54).intersects(spnum) and sprite(54).visible then
  433.         return 1
  434.       else
  435.         if sprite(55).intersects(spnum) and sprite(55).visible then
  436.           return 1
  437.         else
  438.           if sprite(57).intersects(spnum) and sprite(57).visible then
  439.             return 1
  440.           else
  441.             if sprite(58).intersects(spnum) and sprite(58).visible then
  442.               return 1
  443.             else
  444.               return 0
  445.             end if
  446.           end if
  447.         end if
  448.       end if
  449.     45:
  450.       if sprite(55).intersects(spnum) and sprite(55).visible then
  451.         return 1
  452.       else
  453.         if sprite(56).intersects(spnum) and sprite(56).visible then
  454.           return 1
  455.         else
  456.           if sprite(58).intersects(spnum) and sprite(58).visible then
  457.             return 1
  458.           else
  459.             if sprite(59).intersects(spnum) and sprite(59).visible then
  460.               return 1
  461.             else
  462.               return 0
  463.             end if
  464.           end if
  465.         end if
  466.       end if
  467.     46:
  468.       if sprite(56).intersects(spnum) and sprite(56).visible then
  469.         return 1
  470.       else
  471.         if sprite(59).intersects(spnum) and sprite(59).visible then
  472.           return 1
  473.         else
  474.           return 0
  475.         end if
  476.       end if
  477.     47:
  478.       if sprite(57).intersects(spnum) and sprite(57).visible then
  479.         return 1
  480.       else
  481.         return 0
  482.       end if
  483.     48:
  484.       if sprite(57).intersects(spnum) and sprite(57).visible then
  485.         return 1
  486.       else
  487.         if sprite(58).intersects(spnum) and sprite(58).visible then
  488.           return 1
  489.         else
  490.           return 0
  491.         end if
  492.       end if
  493.     49:
  494.       if sprite(58).intersects(spnum) and sprite(58).visible then
  495.         return 1
  496.       else
  497.         if sprite(59).intersects(spnum) and sprite(59).visible then
  498.           return 1
  499.         else
  500.           return 0
  501.         end if
  502.       end if
  503.     50:
  504.       if sprite(59).intersects(spnum) and sprite(59).visible then
  505.         return 1
  506.       else
  507.         return 0
  508.       end if
  509.     otherwise:
  510.       return 0
  511.   end case
  512. end
  513.  
  514. on gotoit
  515.   pootimer.forget()
  516.   go("gameover")
  517. end
  518.  
  519. on getCode arg1, arg2
  520.   ag = string(arg1) & "-" & string(arg2)
  521.   return ag
  522. end
  523.  
  524. on getValue arg
  525.   if (arg contains "hearts") or (arg contains "spades") then
  526.     return getOff(chars(arg, 1, arg.length - 7))
  527.   else
  528.     if arg contains "diamonds" then
  529.       return getOff(chars(arg, 1, arg.length - 9))
  530.     else
  531.       if arg contains "clubs" then
  532.         return getOff(chars(arg, 1, arg.length - 6))
  533.       end if
  534.     end if
  535.   end if
  536. end
  537.  
  538. on roundOff arg
  539.   put arg
  540.   if (arg >= 10) or (arg <= 14) then
  541.     return 10
  542.   else
  543.     if (arg >= 20) or (arg <= 24) then
  544.       return 20
  545.     else
  546.       if (arg >= 30) or (arg <= 34) then
  547.         return 30
  548.       else
  549.         if (arg >= 40) or (arg <= 44) then
  550.           return 40
  551.         else
  552.           if (arg >= 50) or (arg <= 54) then
  553.             return 50
  554.           else
  555.             if (arg >= 60) or (arg <= 64) then
  556.               return 60
  557.             else
  558.               if (arg >= 70) or (arg <= 74) then
  559.                 return 70
  560.               else
  561.                 if (arg >= 80) or (arg <= 84) then
  562.                   return 80
  563.                 else
  564.                   if (arg >= 90) or (arg <= 94) then
  565.                     return 90
  566.                   else
  567.                     if (arg >= 100) or (arg <= 104) then
  568.                       return 100
  569.                     else
  570.                       if (arg >= 110) or (arg <= 114) then
  571.                         return 110
  572.                       else
  573.                         if (arg >= 120) or (arg <= 124) then
  574.                           return 120
  575.                         else
  576.                           if (arg >= 130) or (arg <= 134) then
  577.                             return 130
  578.                           end if
  579.                         end if
  580.                       end if
  581.                     end if
  582.                   end if
  583.                 end if
  584.               end if
  585.             end if
  586.           end if
  587.         end if
  588.       end if
  589.     end if
  590.   end if
  591. end
  592.  
  593. on getOff numba
  594.   if numba = "ace" then
  595.     return 10
  596.   else
  597.     if numba = "two" then
  598.       return 20
  599.     else
  600.       if numba = "three" then
  601.         return 30
  602.       else
  603.         if numba = "four" then
  604.           return 40
  605.         else
  606.           if numba = "five" then
  607.             return 50
  608.           else
  609.             if numba = "six" then
  610.               return 60
  611.             else
  612.               if numba = "seven" then
  613.                 return 70
  614.               else
  615.                 if numba = "eight" then
  616.                   return 80
  617.                 else
  618.                   if numba = "nine" then
  619.                     return 90
  620.                   else
  621.                     if numba = "ten" then
  622.                       return 100
  623.                     else
  624.                       if numba = "jack" then
  625.                         return 110
  626.                       else
  627.                         if numba = "queen" then
  628.                           return 120
  629.                         else
  630.                           if numba = "king" then
  631.                             return 130
  632.                           end if
  633.                         end if
  634.                       end if
  635.                     end if
  636.                   end if
  637.                 end if
  638.               end if
  639.             end if
  640.           end if
  641.         end if
  642.       end if
  643.     end if
  644.   end if
  645. end
  646.  
  647. on getSuit arg
  648.   if arg contains "hearts" then
  649.     return 1
  650.   else
  651.     if arg contains "diamonds" then
  652.       return 2
  653.     else
  654.       if arg contains "clubs" then
  655.         return 3
  656.       else
  657.         if arg contains "spades" then
  658.           return 4
  659.         end if
  660.       end if
  661.     end if
  662.   end if
  663. end
  664.  
  665. on getHand handy
  666.   if ilk(handy, #list) then
  667.     myHand = VOID
  668.     if handy[1][1] = 10 then
  669.       myHand = #ace
  670.     end if
  671.     if (handy[1][1] = handy[2][1]) or (handy[2][1] = handy[3][1]) or (handy[3][1] = handy[4][1]) or (handy[4][1] = handy[5][1]) then
  672.       myHand = #pair
  673.     end if
  674.     if ((handy[1][1] = handy[2][1]) and (handy[3][1] = handy[4][1])) or ((handy[1][1] = handy[2][1]) and (handy[4][1] = handy[5][1])) or ((handy[2][1] = handy[3][1]) and (handy[4][1] = handy[5][1])) then
  675.       myHand = #twopair
  676.     end if
  677.     if ((handy[1][1] = handy[2][1]) and (handy[2][1] = handy[3][1])) or ((handy[2][1] = handy[3][1]) and (handy[3][1] = handy[4][1])) or ((handy[3][1] = handy[4][1]) and (handy[4][1] = handy[5][1])) then
  678.       myHand = #threeofakind
  679.     end if
  680.     if (handy[1][1] = (handy[2][1] - 10)) and (handy[2][1] = (handy[3][1] - 10)) and (handy[3][1] = (handy[4][1] - 10)) and (handy[4][1] = (handy[5][1] - 10)) then
  681.       myHand = #straight
  682.     end if
  683.     if (handy[1][2] = handy[2][2]) and (handy[2][2] = handy[3][2]) and (handy[3][2] = handy[4][2]) and (handy[4][2] = handy[5][2]) then
  684.       myHand = #flush
  685.     end if
  686.     if ((handy[1][1] = handy[2][1]) and ((handy[3][1] = handy[4][1]) and (handy[4][1] = handy[5][1]))) or ((handy[4][1] = handy[5][1]) and ((handy[1][1] = handy[2][1]) and (handy[2][1] = handy[3][1]))) then
  687.       myHand = #fullhouse
  688.     end if
  689.     if ((handy[1][1] = handy[2][1]) and (handy[2][1] = handy[3][1]) and (handy[3][1] = handy[4][1])) or ((handy[2][1] = handy[3][1]) and (handy[3][1] = handy[4][1]) and (handy[4][1] = handy[5][1])) then
  690.       myHand = #fourofakind
  691.     end if
  692.     if (handy[1][1] = (handy[2][1] - 10)) and (handy[2][1] = (handy[3][1] - 10)) and (handy[3][1] = (handy[4][1] - 10)) and (handy[4][1] = (handy[5][1] - 10)) and ((handy[1][2] = handy[2][2]) and (handy[2][2] = handy[3][2]) and (handy[3][2] = handy[4][2]) and (handy[4][2] = handy[5][2])) then
  693.       myHand = #straightflush
  694.     end if
  695.     if (handy[1][1] = 10) and (handy[2][1] = 100) and (handy[3][1] = 110) and (handy[4][1] = 120) and (handy[5][1] = 130) and ((handy[1][2] = handy[2][2]) and (handy[2][2] = handy[3][2]) and (handy[3][2] = handy[4][2]) and (handy[4][2] = handy[5][2])) then
  696.       myHand = #royalflush
  697.     end if
  698.     doScore(myHand)
  699.   end if
  700. end
  701.  
  702. on doScore arg
  703.   if arg = VOID then
  704.     member("hand" & string(playerHandCount) & "text", "100Gpak Specific GFX").color = rgb(225, 0, 0)
  705.   else
  706.     member("hand" & string(playerHandCount) & "text", "100Gpak Specific GFX").color = rgb(0, 200, 0)
  707.     puppetSound(3, member("deal card", "100GPak Generic SFX"))
  708.   end if
  709.   if arg = VOID then
  710.     member("hand" & string(playerHandCount) & "text", "100Gpak Specific GFX").text = "Busted!"
  711.     win = "no"
  712.     pootimer = timeout("ttt").new(150, #gotoit)
  713.   else
  714.     if arg = #ace then
  715.       if scoreBox.text <> EMPTY then
  716.         scoreBox.text = string(value(scoreBox.text) + 15)
  717.       else
  718.         scoreBox.text = string(15)
  719.       end if
  720.       member("hand" & string(playerHandCount) & "text", "100Gpak Specific GFX").text = "Ace"
  721.     else
  722.       if arg = #pair then
  723.         if scoreBox.text <> EMPTY then
  724.           scoreBox.text = string(value(scoreBox.text) + 50)
  725.         else
  726.           scoreBox.text = string(50)
  727.         end if
  728.         member("hand" & string(playerHandCount) & "text", "100Gpak Specific GFX").text = "Pair"
  729.       else
  730.         if arg = #twopair then
  731.           if scoreBox.text <> EMPTY then
  732.             scoreBox.text = string(value(scoreBox.text) + 100)
  733.           else
  734.             scoreBox.text = string(100)
  735.           end if
  736.           member("hand" & string(playerHandCount) & "text", "100Gpak Specific GFX").text = "2 Pairs"
  737.         else
  738.           if arg = #threeofakind then
  739.             if scoreBox.text <> EMPTY then
  740.               scoreBox.text = string(value(scoreBox.text) + 250)
  741.             else
  742.               scoreBox.text = string(250)
  743.             end if
  744.             member("hand" & string(playerHandCount) & "text", "100Gpak Specific GFX").text = "3 of a Kind"
  745.           else
  746.             if arg = #straight then
  747.               if scoreBox.text <> EMPTY then
  748.                 scoreBox.text = string(value(scoreBox.text) + 350)
  749.               else
  750.                 scoreBox.text = string(350)
  751.               end if
  752.               member("hand" & string(playerHandCount) & "text", "100Gpak Specific GFX").text = "Straight"
  753.             else
  754.               if arg = #flush then
  755.                 if scoreBox.text <> EMPTY then
  756.                   scoreBox.text = string(value(scoreBox.text) + 500)
  757.                 else
  758.                   scoreBox.text = string(500)
  759.                 end if
  760.                 member("hand" & string(playerHandCount) & "text", "100Gpak Specific GFX").text = "Flush"
  761.               else
  762.                 if arg = #fullhouse then
  763.                   if scoreBox.text <> EMPTY then
  764.                     scoreBox.text = string(value(scoreBox.text) + 1000)
  765.                   else
  766.                     scoreBox.text = string(1000)
  767.                   end if
  768.                   member("hand" & string(playerHandCount) & "text", "100Gpak Specific GFX").text = "Full House"
  769.                 else
  770.                   if arg = #fourofakind then
  771.                     if scoreBox.text <> EMPTY then
  772.                       scoreBox.text = string(value(scoreBox.text) + 2500)
  773.                     else
  774.                       scoreBox.text = string(2500)
  775.                     end if
  776.                     member("hand" & string(playerHandCount) & "text", "100Gpak Specific GFX").text = "Four of a Kind"
  777.                   else
  778.                     if arg = #straightflush then
  779.                       if scoreBox.text <> EMPTY then
  780.                         scoreBox.text = string(value(scoreBox.text) + 5000)
  781.                       else
  782.                         scoreBox.text = string(5000)
  783.                       end if
  784.                       member("hand" & string(playerHandCount) & "text", "100Gpak Specific GFX").text = "Straight Flush"
  785.                     else
  786.                       if arg = #royalflush then
  787.                         if scoreBox.text <> EMPTY then
  788.                           scoreBox.text = string(value(scoreBox.text) + 10000)
  789.                         else
  790.                           scoreBox.text = string(10000)
  791.                         end if
  792.                         member("hand" & string(playerHandCount) & "text", "100Gpak Specific GFX").text = "Royal Flush"
  793.                       end if
  794.                     end if
  795.                   end if
  796.                 end if
  797.               end if
  798.             end if
  799.           end if
  800.         end if
  801.       end if
  802.     end if
  803.   end if
  804.   if not voidp(arg) then
  805.     gScoreSprites[arg].huloff()
  806.   end if
  807. end
  808.