home *** CD-ROM | disk | FTP | other *** search
/ GameStar Special 2004 August / GSSH0804.iso / Geschicklichkeit / Enigma / Enigma-081.exe / data / levels / duffy4.lua < prev    next >
Text File  |  2003-01-30  |  18KB  |  995 lines

  1. levelw=80
  2. levelh=20
  3.  
  4. create_world( levelw, levelh)
  5.  
  6. fill_floor("fl-leaves", 0,0,levelw,levelh)
  7.  
  8. function renderLine( line, pattern)
  9.     for i=1, strlen(pattern) do
  10.         local c = strsub( pattern, i, i)
  11.         if c =="#" then
  12.             set_stone( "st-glass", i-1, line)
  13.         elseif c == "o" then
  14.             oxyd( i-1, line)
  15.                 elseif c == "!" then
  16.             abyss(i-1,line)
  17. --            fill_floor("fl-water", i-1,line, 1,1)
  18.         elseif c=="z" then
  19.             set_actor("ac-blackball", i-.5,line+.5, {player=0})
  20.         elseif c=="+" then
  21.             set_stone( "st-wood", i-1, line)
  22.         elseif c=="`" then
  23.             mirrorp(i-1,line,FALSE,TRUE, 2)
  24.         elseif c=="/" then
  25.             mirrorp(i-1,line,FALSE,TRUE, 4)
  26.         elseif c=="5" then    
  27.             set_item("it-coin", i-1,line,{value=1})
  28.         elseif c=="4" then    
  29.             set_item("it-coin", i-1,line,{value=3})
  30.         elseif c=="P" then
  31.             set_item("it-brush",i-1,line)
  32.         elseif c=="a" then
  33.             set_stone("st-switch", i-1,line, {action="callback",target="fa"})
  34.         elseif c=="b" then
  35.             set_stone("st-switch", i-1,line, {action="callback",target="fb"})
  36.         elseif c=="c" then
  37.             set_stone("st-switch", i-1,line, {action="callback",target="fc"})
  38.         elseif c=="d" then
  39.             set_stone("st-switch", i-1,line, {action="callback",target="fd"})
  40.         elseif c=="e" then
  41.             set_stone("st-switch", i-1,line, {action="callback",target="fe"})
  42.  
  43.         elseif c=="f" then
  44.             set_stone("st-switch", i-1,line, {action="callback",target="ff"})
  45.         elseif c=="g" then
  46.             set_stone("st-switch", i-1,line, {action="callback",target="fg"})
  47.         elseif c=="h" then
  48.             set_stone("st-switch", i-1,line, {action="callback",target="fh"})
  49.         elseif c=="i" then
  50.             set_stone("st-switch", i-1,line, {action="callback",target="fi"})
  51.         elseif c=="j" then
  52.             set_stone("st-switch", i-1,line, {action="callback",target="fj"})
  53.         elseif c=="k" then
  54.             set_stone("st-switch", i-1,line, {action="callback",target="fk"})
  55.         elseif c=="l" then
  56.             set_stone("st-switch", i-1,line, {action="callback",target="fl"})
  57.         elseif c=="m" then
  58.             set_stone("st-switch", i-1,line, {action="callback",target="fm"})
  59.         elseif c=="n" then
  60.             set_stone("st-switch", i-1,line, {action="callback",target="fn"})
  61.         elseif c=="O" then
  62.             set_stone("st-switch", i-1,line, {action="callback",target="fo"})
  63.         elseif c=="p" then
  64.             set_stone("st-switch", i-1,line, {action="callback",target="fp"})
  65.         elseif c=="q" then
  66.             set_stone("st-switch", i-1,line, {action="callback",target="fq"})
  67.         elseif c=="r" then
  68.             set_stone("st-switch", i-1,line, {action="callback",target="fr"})
  69.         elseif c=="s" then
  70.             set_stone("st-switch", i-1,line, {action="callback",target="fs"})
  71.         elseif c=="t" then
  72.             set_stone("st-switch", i-1,line, {action="callback",target="ft"})
  73.         elseif c=="u" then
  74.             set_stone("st-switch", i-1,line, {action="callback",target="fu"})
  75.         elseif c=="v" then
  76.             set_stone("st-switch", i-1,line, {action="callback",target="fv"})
  77.         elseif c=="w" then
  78.             set_stone("st-switch", i-1,line, {action="callback",target="fw"})
  79.         elseif c=="x" then
  80.             set_stone("st-switch", i-1,line, {action="callback",target="fx"})
  81.         elseif c=="y" then
  82.             set_stone("st-switch", i-1,line, {action="callback",target="fy"})
  83.         elseif c=="Z" then
  84.             set_stone("st-switch", i-1,line, {action="callback",target="fz"})
  85.         elseif c=="A" then
  86.             doorh( i-1,line, {name="door1"})
  87.         elseif c=="B" then
  88.             doorh( i-1,line, {name="door2"})
  89.         elseif c=="C" then
  90.             doorh( i-1,line, {name="door3"})
  91.         elseif c == "L" then
  92.             abyss(i-1,line)
  93.              draw_stones("st-glass", {i-1,line},{1,1}, 1)
  94.             set_item("it-magicwand",i-1,line)
  95.         elseif c == "G" then
  96.             fill_floor("fl-leaves", i-1,line,1,1)
  97.             draw_stones("st-glass", {i-1,line},{1,0}, 1)
  98.             set_item("it-magicwand",i-1,line)
  99.         elseif c == "Y" then
  100.             fill_floor("fl-sand", i-1,line,1,1)
  101.             draw_stones("st-glass", {i-1,line},{1,0}, 1)
  102.             set_item("it-magicwand",i-1,line)
  103.         elseif c == "K" then
  104.             fill_floor("fl-bluegreen", i-1,line,1,1)
  105.             draw_stones("st-glass", {i-1,line},{1,0}, 1)
  106.             set_item("it-magicwand",i-1,line)
  107.         elseif c == "W" then
  108.             fill_floor("fl-inverse", i-1,line, 1,1)
  109.             draw_stones("st-glass", {i-1,line},{1,0}, 1)
  110.             set_item("it-magicwand",i-1,line)
  111.         elseif c=="I" then
  112.             fill_floor("fl-ice_001", i-1,line, 1,1)
  113.             draw_stones("st-glass", {i-1,line},{1,0}, 1)
  114.             set_item("it-magicwand",i-1,line)
  115.         elseif c=="T" then
  116.             fill_floor("fl-marble", i-1,line, 1,1)
  117.             draw_stones("st-glass", {i-1,line},{1,0}, 1)
  118.             set_item("it-magicwand",i-1,line)
  119.         elseif c=="R" then
  120.             fill_floor("fl-wood", i-1,line, 1,1)
  121.             draw_stones("st-glass", {i-1,line},{1,0}, 1)
  122.             set_item("it-magicwand",i-1,line)
  123.         elseif c=="S" then
  124.             fill_floor("fl-space", i-1,line, 1,1)
  125.         end
  126.     end    
  127. end
  128.  
  129. -- Floor:  " "
  130. -- Border: "#"
  131. -- Oxyd:   "o"
  132.  
  133. renderLine(00,"#######################################")
  134. renderLine(01,"#                   #o               o#")
  135. renderLine(02,"#    edcba          #########C#########")
  136. renderLine(03,"#                   #########B#########")
  137. renderLine(04,"#    jihgf          #########A#########")
  138. renderLine(05,"#                                     #")
  139. renderLine(06,"#    Onmlk  z                     D   #")
  140. renderLine(07,"#                            ILT      #")
  141. renderLine(08,"#    tsrqp                   SSK      #")
  142. renderLine(09,"#                            GRY      #")
  143. renderLine(10,"#    yxwvu                            #")
  144. renderLine(11,"#                                    Z#")
  145. renderLine(12,"#######################################")
  146.  
  147. oxyd_shuffle()
  148.  
  149. --document(34,6,"What do you want the first gate to do?")
  150. --document(29,4,"Opposite")
  151. --document(29,3,"If ten equals three, five equals four, two equals three, four equals four, and thirteen equals eight, what does nine equal?")
  152. --document(29,2,"Congratulations!")
  153.  
  154. num1=0
  155. through=0
  156. function fa()
  157.     if through==0 then
  158.     num1=num1+1
  159.     through=1
  160.     getletter()
  161.     elseif through==1 then
  162.     num1=num1-1
  163.     through=0
  164.     getletter()
  165.     end
  166. end
  167.  
  168. throughb=0
  169. function fb()
  170.     if throughb==0 then
  171.     num1=num1+2
  172.     throughb=1
  173.     getletter()
  174.     elseif throughb==1 then
  175.     num1=num1-2
  176.     throughb=0
  177.     getletter()
  178.     end
  179. end
  180.  
  181. throughc=0
  182. function fc()
  183.     if throughc==0 then
  184.     num1=num1+4
  185.     throughc=1
  186.     getletter()
  187.     elseif throughc==1 then
  188.     num1=num1-4
  189.     throughc=0
  190.     getletter()
  191.     end
  192. end
  193.  
  194. throughd=0
  195. function fd()
  196.     if throughd==0 then
  197.     num1=num1+8
  198.     throughd=1
  199.     getletter()
  200.     elseif throughd==1 then
  201.     num1=num1-8
  202.     throughd=0
  203.     getletter()
  204.     end
  205. end
  206.  
  207. throughe=0
  208. function fe()
  209.     if throughe==0 then
  210.     num1=num1+16
  211.     throughe=1
  212.     getletter()
  213.     elseif throughe==1 then
  214.     num1=num1-16
  215.     throughe=0
  216.     getletter()
  217.     end
  218. end
  219.  
  220. num2=0
  221. throughf=0
  222. function ff()
  223.     if throughf==0 then
  224.     num2=num2+1
  225.     throughf=1
  226.     getletter()
  227.     elseif throughf==1 then
  228.     num2=num2-1
  229.     throughf=0
  230.     getletter()
  231.     end
  232. end
  233.  
  234. throughg=0
  235. function fg()
  236.     if throughg==0 then
  237.     num2=num2+2
  238.     throughg=1
  239.     getletter()
  240.     elseif throughg==1 then
  241.     num2=num2-2
  242.     throughg=0
  243.     getletter()
  244.     end
  245. end
  246.  
  247. throughh=0
  248. function fh()
  249.     if throughh==0 then
  250.     num2=num2+4
  251.     throughh=1
  252.     getletter()
  253.     elseif throughh==1 then
  254.     num2=num2-4
  255.     throughh=0
  256.     getletter()
  257.     end
  258. end
  259.  
  260. throughi=0
  261. function fi()
  262.     if throughi==0 then
  263.     num2=num2+8
  264.     throughi=1
  265.     getletter()
  266.     elseif throughi==1 then
  267.     num2=num2-8
  268.     throughi=0
  269.     getletter()
  270.     end
  271. end
  272.  
  273. throughj=0
  274. function fj()
  275.     if throughj==0 then
  276.     num2=num2+16
  277.     throughj=1
  278.     getletter()
  279.     elseif throughj==1 then
  280.     num2=num2-16
  281.     throughj=0
  282.     getletter()
  283.     end
  284. end
  285.  
  286. num3=0
  287. throughk=0
  288. function fk()
  289.     if throughk==0 then
  290.     num3=num3+1
  291.     throughk=1
  292.     getletter()
  293.     elseif throughk==1 then
  294.     num3=num3-1
  295.     throughk=0
  296.     getletter()
  297.     end
  298. end
  299.  
  300. throughl=0
  301. function fl()
  302.     if throughl==0 then
  303.     num3=num3+2
  304.     throughl=1
  305.     getletter()
  306.     elseif throughl==1 then
  307.     num3=num3-2
  308.     throughl=0
  309.     getletter()
  310.     end
  311. end
  312.  
  313. throughm=0
  314. function fm()
  315.     if throughm==0 then
  316.     num3=num3+4
  317.     throughm=1
  318.     getletter()
  319.     elseif throughm==1 then
  320.     num3=num3-4
  321.     throughm=0
  322.     getletter()
  323.     end
  324. end
  325.  
  326. throughn=0
  327. function fn()
  328.     if throughn==0 then
  329.     num3=num3+8
  330.     throughn=1
  331.     getletter()
  332.     elseif throughn==1 then
  333.     num3=num3-8
  334.     throughn=0
  335.     getletter()
  336.     end
  337. end
  338.  
  339. througho=0
  340. function fo()
  341.     if througho==0 then
  342.     num3=num3+16
  343.     througho=1
  344.     getletter()
  345.     elseif througho==1 then
  346.     num3=num3-16
  347.     througho=0
  348.     getletter()
  349.     end
  350. end
  351.  
  352. num4=0
  353. throughp=0
  354. function fp()
  355.     if throughp==0 then
  356.     num4=num4+1
  357.     throughp=1
  358.     getletter()
  359.     elseif throughp==1 then
  360.     num4=num4-1
  361.     throughp=0
  362.     getletter()
  363.     end
  364. end
  365.  
  366. throughq=0
  367. function fq()
  368.     if throughq==0 then
  369.     num4=num4+2
  370.     throughq=1
  371.     getletter()
  372.     elseif throughq==1 then
  373.     num4=num4-2
  374.     throughq=0
  375.     getletter()
  376.     end
  377. end
  378.  
  379. throughr=0
  380. function fr()
  381.     if throughr==0 then
  382.     num4=num4+4
  383.     throughr=1
  384.     getletter()
  385.     elseif throughr==1 then
  386.     num4=num4-4
  387.     throughr=0
  388.     getletter()
  389.     end
  390. end
  391.  
  392. throughs=0
  393. function fs()
  394.     if throughs==0 then
  395.     num4=num4+8
  396.     throughs=1
  397.     getletter()
  398.     elseif throughs==1 then
  399.     num4=num4-8
  400.     throughs=0
  401.     getletter()
  402.     end
  403. end
  404.  
  405. throught=0
  406. function ft()
  407.     if throught==0 then
  408.     num4=num4+16
  409.     throught=1
  410.     getletter()
  411.     elseif throught==1 then
  412.     num4=num4-16
  413.     throught=0
  414.     getletter()
  415.     end
  416. end
  417.  
  418. num5=0
  419. throughu=0
  420. function fu()
  421.     if throughu==0 then
  422.     num5=num5+1
  423.     throughu=1
  424.     getletter()
  425.     elseif throughu==1 then
  426.     num5=num5-1
  427.     throughu=0
  428.     getletter()
  429.     end
  430. end
  431.  
  432. throughv=0
  433. function fv()
  434.     if throughv==0 then
  435.     num5=num5+2
  436.     throughv=1
  437.     getletter()
  438.     elseif throughv==1 then
  439.     num5=num5-2
  440.     throughv=0
  441.     getletter()
  442.     end
  443. end
  444.  
  445. throughw=0
  446. function fw()
  447.     if throughw==0 then
  448.     num5=num5+4
  449.     throughw=1
  450.     getletter()
  451.     elseif throughw==1 then
  452.     num5=num5-4
  453.     throughw=0
  454.     getletter()
  455.     end
  456. end
  457.  
  458. throughx=0
  459. function fx()
  460.     if throughx==0 then
  461.     num5=num5+8
  462.     throughx=1
  463.     getletter()
  464.     elseif throughx==1 then
  465.     num5=num5-8
  466.     throughx=0
  467.     getletter()
  468.     end
  469. end
  470.  
  471. throughy=0
  472. function fy()
  473.     if throughy==0 then
  474.     num5=num5+16
  475.     throughy=1
  476.     getletter()
  477.     elseif throughy==1 then
  478.     num5=num5-16
  479.     throughy=0
  480.     getletter()
  481.     end
  482. end
  483.  
  484. door1=enigma.GetNamedObject("door1")
  485. door2=enigma.GetNamedObject("door2")
  486. door3=enigma.GetNamedObject("door3")
  487.  
  488. firstdooropen=0
  489. seconddooropen=0
  490. thirddooropen=0
  491. fdo=0
  492. sdo=0
  493. tdo=0
  494.  
  495. function fz()
  496.     document(34,6,"What do you want the first gate to do?")
  497.     document(29,4,"Opposite")
  498.     document(29,3,"If ten equals three, five equals four, two equals three, four equals four, and thirteen equals eight, what does nine equal?")
  499.     document(29,2,"Congratulations!")
  500.     if fdo==0 and sdo==0 and tdo==0 then    
  501.         if num1==15 and num2==16 and num3==5 and num4==14 and num5==29 and fdo==0 then
  502.             enigma.SendMessage(door1, "open", nil)
  503.             firstdooropen=1
  504.             fdo=1
  505.         end
  506.         end
  507.     if fdo==1 and sdo==0 and tdo==0 then
  508.         if num1==3 and num2==12 and num3==15 and num4==19 and num5==5 and sdo==0 and fdo==1 then
  509.         enigma.SendMessage(door2, "open", nil)
  510.         seconddooropen=1
  511.         firstdooropen=0
  512.         sdo=1
  513.         end
  514.     end
  515.     if fdo==1 and sdo==1 and tdo==0 then
  516.         if num1==6 and num2==15 and num3==21 and num4==18 and num5==28 and tdo==0 and fdo==1 and sdo==1 then
  517.             enigma.SendMessage(door3, "open", nil)
  518.         seconddooropen=0
  519.         thirddooropen=1
  520.         tdo=1
  521.         end
  522.     end
  523. end
  524.  
  525. function getletter()
  526.     if num1==1 then
  527.     let1="A"
  528.     end
  529.     if num1==2 then
  530.     let1="B"
  531.     end
  532.     if num1==3 then
  533.     let1="C"
  534.     end
  535.     if num1==4 then
  536.     let1="D"
  537.     end
  538.     if num1==5 then
  539.     let1="E"
  540.     end
  541.     if num1==6 then
  542.     let1="F"
  543.     end
  544.     if num1==7 then
  545.     let1="G"
  546.     end
  547.     if num1==8 then
  548.     let1="H"
  549.     end
  550.     if num1==9 then
  551.     let1="I"
  552.     end
  553.     if num1==10 then
  554.     let1="J"
  555.     end
  556.     if num1==11 then
  557.     let1="K"
  558.     end
  559.     if num1==12 then
  560.     let1="L"
  561.     end
  562.     if num1==13 then
  563.     let1="M"
  564.     end
  565.     if num1==14 then
  566.     let1="N"
  567.     end
  568.     if num1==15 then
  569.     let1="O"
  570.     end
  571.     if num1==16 then
  572.     let1="P"
  573.     end
  574.     if num1==17 then
  575.     let1="Q"
  576.     end
  577.     if num1==18 then
  578.     let1="R"
  579.     end
  580.     if num1==19 then
  581.     let1="S"
  582.     end
  583.     if num1==20 then
  584.     let1="T"
  585.     end
  586.     if num1==21 then
  587.     let1="U"
  588.     end
  589.     if num1==22 then
  590.     let1="V"
  591.     end
  592.     if num1==23 then
  593.     let1="W"
  594.     end
  595.     if num1==24 then
  596.     let1="X"
  597.     end
  598.     if num1==25 then
  599.     let1="Y"
  600.     end
  601.     if num1==26 then
  602.     let1="Z"
  603.     end
  604.     if num1==27 then
  605.     let1=" "
  606.     end
  607.     if num1==28 then
  608.     let1="."
  609.     end
  610.     if num1==29 then
  611.     let1="!"
  612.     end
  613.     if num1==30 then
  614.     let1="?"
  615.     end
  616.     if num1==31 then
  617.     let1=","
  618.     end
  619.     if num2==1 then
  620.     let2="A"
  621.     end
  622.     if num2==2 then
  623.     let2="B"
  624.     end
  625.     if num2==3 then
  626.     let2="C"
  627.     end
  628.     if num2==4 then
  629.     let2="D"
  630.     end
  631.     if num2==5 then
  632.     let2="E"
  633.     end
  634.     if num2==6 then
  635.     let2="F"
  636.     end
  637.     if num2==7 then
  638.     let2="G"
  639.     end
  640.     if num2==8 then
  641.     let2="H"
  642.     end
  643.     if num2==9 then
  644.     let2="I"
  645.     end
  646.     if num2==10 then
  647.     let2="J"
  648.     end
  649.     if num2==11 then
  650.     let2="K"
  651.     end
  652.     if num2==12 then
  653.     let2="L"
  654.     end
  655.     if num2==13 then
  656.     let2="M"
  657.     end
  658.     if num2==14 then
  659.     let2="N"
  660.     end
  661.     if num2==15 then
  662.     let2="O"
  663.     end
  664.     if num2==16 then
  665.     let2="P"
  666.     end
  667.     if num2==17 then
  668.     let2="Q"
  669.     end
  670.     if num2==18 then
  671.     let2="R"
  672.     end
  673.     if num2==19 then
  674.     let2="S"
  675.     end
  676.     if num2==20 then
  677.     let2="T"
  678.     end
  679.     if num2==21 then
  680.     let2="U"
  681.     end
  682.     if num2==22 then
  683.     let2="V"
  684.     end
  685.     if num2==23 then
  686.     let2="W"
  687.     end
  688.     if num2==24 then
  689.     let2="X"
  690.     end
  691.     if num2==25 then
  692.     let2="Y"
  693.     end
  694.     if num2==26 then
  695.     let2="Z"
  696.     end
  697.     if num2==27 then
  698.     let2=" "
  699.     end
  700.     if num2==28 then
  701.     let2="."
  702.     end
  703.     if num2==29 then
  704.     let2="!"
  705.     end
  706.     if num2==30 then
  707.     let2="?"
  708.     end
  709.     if num2==31 then
  710.     let2=","
  711.     end
  712.     if num3==1 then
  713.     let3="A"
  714.     end
  715.     if num3==2 then
  716.     let3="B"
  717.     end
  718.     if num3==3 then
  719.     let3="C"
  720.     end
  721.     if num3==4 then
  722.     let3="D"
  723.     end
  724.     if num3==5 then
  725.     let3="E"
  726.     end
  727.     if num3==6 then
  728.     let3="F"
  729.     end
  730.     if num3==7 then
  731.     let3="G"
  732.     end
  733.     if num3==8 then
  734.     let3="H"
  735.     end
  736.     if num3==9 then
  737.     let3="I"
  738.     end
  739.     if num3==10 then
  740.     let3="J"
  741.     end
  742.     if num3==11 then
  743.     let3="K"
  744.     end
  745.     if num3==12 then
  746.     let3="L"
  747.     end
  748.     if num3==13 then
  749.     let3="M"
  750.     end
  751.     if num3==14 then
  752.     let3="N"
  753.     end
  754.     if num3==15 then
  755.     let3="O"
  756.     end
  757.     if num3==16 then
  758.     let3="P"
  759.     end
  760.     if num3==17 then
  761.     let3="Q"
  762.     end
  763.     if num3==18 then
  764.     let3="R"
  765.     end
  766.     if num3==19 then
  767.     let3="S"
  768.     end
  769.     if num3==20 then
  770.     let3="T"
  771.     end
  772.     if num3==21 then
  773.     let3="U"
  774.     end
  775.     if num3==22 then
  776.     let3="V"
  777.     end
  778.     if num3==23 then
  779.     let3="W"
  780.     end
  781.     if num3==24 then
  782.     let3="X"
  783.     end
  784.     if num3==25 then
  785.     let3="Y"
  786.     end
  787.     if num3==26 then
  788.     let3="Z"
  789.     end
  790.     if num3==27 then
  791.     let3=" "
  792.     end
  793.     if num3==28 then
  794.     let3="."
  795.     end
  796.     if num3==29 then
  797.     let3="!"
  798.     end
  799.     if num3==30 then
  800.     let3="?"
  801.     end
  802.     if num3==31 then
  803.     let3=","
  804.     end
  805.     if num4==1 then
  806.     let4="A"
  807.     end
  808.     if num4==2 then
  809.     let4="B"
  810.     end
  811.     if num4==3 then
  812.     let4="C"
  813.     end
  814.     if num4==4 then
  815.     let4="D"
  816.     end
  817.     if num4==5 then
  818.     let4="E"
  819.     end
  820.     if num4==6 then
  821.     let4="F"
  822.     end
  823.     if num4==7 then
  824.     let4="G"
  825.     end
  826.     if num4==8 then
  827.     let4="H"
  828.     end
  829.     if num4==9 then
  830.     let4="I"
  831.     end
  832.     if num4==10 then
  833.     let4="J"
  834.     end
  835.     if num4==11 then
  836.     let4="K"
  837.     end
  838.     if num4==12 then
  839.     let4="L"
  840.     end
  841.     if num4==13 then
  842.     let4="M"
  843.     end
  844.     if num4==14 then
  845.     let4="N"
  846.     end
  847.     if num4==15 then
  848.     let4="O"
  849.     end
  850.     if num4==16 then
  851.     let4="P"
  852.     end
  853.     if num4==17 then
  854.     let4="Q"
  855.     end
  856.     if num4==18 then
  857.     let4="R"
  858.     end
  859.     if num4==19 then
  860.     let4="S"
  861.     end
  862.     if num4==20 then
  863.     let4="T"
  864.     end
  865.     if num4==21 then
  866.     let4="U"
  867.     end
  868.     if num4==22 then
  869.     let4="V"
  870.     end
  871.     if num4==23 then
  872.     let4="W"
  873.     end
  874.     if num4==24 then
  875.     let4="X"
  876.     end
  877.     if num4==25 then
  878.     let4="Y"
  879.     end
  880.     if num4==26 then
  881.     let4="Z"
  882.     end
  883.     if num4==27 then
  884.     let4=" "
  885.     end
  886.     if num4==28 then
  887.     let4="."
  888.     end
  889.     if num4==29 then
  890.     let4="!"
  891.     end
  892.     if num4==30 then
  893.     let4="?"
  894.     end
  895.     if num4==31 then
  896.     let4=","
  897.     end
  898.     if num5==1 then
  899.     let5="A"
  900.     end
  901.     if num5==2 then
  902.     let5="B"
  903.     end
  904.     if num5==3 then
  905.     let5="C"
  906.     end
  907.     if num5==4 then
  908.     let5="D"
  909.     end
  910.     if num5==5 then
  911.     let5="E"
  912.     end
  913.     if num5==6 then
  914.     let5="F"
  915.     end
  916.     if num5==7 then
  917.     let5="G"
  918.     end
  919.     if num5==8 then
  920.     let5="H"
  921.     end
  922.     if num5==9 then
  923.     let5="I"
  924.     end
  925.     if num5==10 then
  926.     let5="J"
  927.     end
  928.     if num5==11 then
  929.     let5="K"
  930.     end
  931.     if num5==12 then
  932.     let5="L"
  933.     end
  934.     if num5==13 then
  935.     let5="M"
  936.     end
  937.     if num5==14 then
  938.     let5="N"
  939.     end
  940.     if num5==15 then
  941.     let5="O"
  942.     end
  943.     if num5==16 then
  944.     let5="P"
  945.     end
  946.     if num5==17 then
  947.     let5="Q"
  948.     end
  949.     if num5==18 then
  950.     let5="R"
  951.     end
  952.     if num5==19 then
  953.     let5="S"
  954.     end
  955.     if num5==20 then
  956.     let5="T"
  957.     end
  958.     if num5==21 then
  959.     let5="U"
  960.     end
  961.     if num5==22 then
  962.     let5="V"
  963.     end
  964.     if num5==23 then
  965.     let5="W"
  966.     end
  967.     if num5==24 then
  968.     let5="X"
  969.     end
  970.     if num5==25 then
  971.     let5="Y"
  972.     end
  973.     if num5==26 then
  974.     let5="Z"
  975.     end
  976.     if num5==27 then
  977.     let5=" "
  978.     end
  979.     if num5==28 then
  980.     let5="."
  981.     end
  982.     if num5==29 then
  983.     let5="!"
  984.     end
  985.     if num5==30 then
  986.     let5="?"
  987.     end
  988.     if num5==31 then
  989.     let5=","
  990.     end
  991.     if num1>0 and num2>0 and num3>0 and num4>0 and num5>0 then
  992.     document(30,8,let1..let2..let3..let4..let5)
  993.     end
  994. end
  995.