home *** CD-ROM | disk | FTP | other *** search
/ Invenzioni E Inventori 1: Lavoro E Vita Quotidiana / invenzioni-inventori-1.iso / mac / Invenzio / Citta / shared.cst / 03038_Script_correggi < prev    next >
Text File  |  1997-10-14  |  10KB  |  331 lines

  1. on correggi
  2.   put "INIZIO ****"
  3.   cursore
  4.   corr_testo
  5.   corr_ps
  6.   go "menu"
  7.   
  8.   put "FINE ****"
  9.   
  10.   
  11. end
  12.  
  13. on cursore
  14.   set lab to the labellist
  15.   if offset("menu",lab)>0 then
  16.     
  17.     go "menu"
  18.     set mar to marker(0)
  19.     set num_script to  the framescript
  20.     set str to the scripttext of member num_script
  21.     if offset("cursor 4",str)=0 then
  22.       set off1 to offset("global",str)
  23.       if off1>0 then
  24.         put "modifico la script ",num_script," ed inserisco cursor 4"
  25.         set str1 to char 1 to off1-1 of str
  26.         set str2 to char off1 to length(str) of str
  27.         set str to str1 & "cursor 4 " & return & str2
  28.         set the scripttext of member num_script to str
  29.       else
  30.         put "NON inserisco cursor 4 in VIAGGIO - ERRORE"
  31.       end if
  32.       
  33.       
  34.     else
  35.       put "NON inserisco CURSOR 4 in Menu perchΦ giα presente"
  36.     end if
  37.     
  38.     if offset("cursor -1",str)=0 then
  39.       set off1 to offset("end"&return,str)
  40.       if off1=0 then set off1 to offset("end",str)
  41.       if off1>0 then
  42.         put "modifico la script ",num_script," ed inserisco cursor -1"
  43.         set str1 to char 1 to off1-1 of str
  44.         set str2 to char off1 to length(str) of str
  45.         set new_str to str1 & "cursor -1 " & return & str2
  46.         
  47.         set the scripttext of member num_script to new_str
  48.       else
  49.         put "NON inserisco cursor -1 in MENU - ERRORE" 
  50.       end if
  51.       
  52.     else
  53.       
  54.       put "NON inserisco cursor -1 in MENU perchΦ giα presente"
  55.     end if
  56.   else
  57.     put "Attenzione - Il marker MENU NON Φ presente"
  58.   end if
  59.   
  60.   if offset("articolo",lab)>0 then
  61.     
  62.     
  63.     go "articolo"
  64.     set mar to marker(0)
  65.     set num_script to  the framescript
  66.     set str to the scripttext of member num_script
  67.     if offset("cursor 4",str)=0 then
  68.       set off1 to offset("global",str)
  69.       if off1>0 then
  70.         put "modifico la script ",num_script," ed inserisco cursor 4"
  71.         set str1 to char 1 to off1-1 of str
  72.         set str2 to char off1 to length(str) of str
  73.         set new_str to str1 & "cursor 4 " & return & str2
  74.         set the scripttext of member num_script to new_str
  75.       else
  76.         put "NON inserisco cursor 4 in articolo - ERRORE"
  77.       end if
  78.       
  79.       
  80.     else
  81.       put "NON inserisco cursor 4 in articolo  perchΦ giα presente"
  82.     end if
  83.     set mar to mar+1
  84.     go to frame mar
  85.     set num_script to  the framescript
  86.     
  87.     set str to the scripttext of member num_script
  88.     if offset("cursor -1",str)=0 then
  89.       set off1 to offset("end"&return,str)
  90.       if off1=0 then set off1 to offset("end",str)
  91.       if off1>0 then
  92.         put "modifico la script ",num_script," ed inserisco cursor -1"
  93.         set str1 to char 1 to off1-1 of str
  94.         set str2 to char off1 to length(str) of str
  95.         set new_str to str1 & "cursor -1 " & return & str2
  96.         set the scripttext of member num_script to new_str
  97.       else
  98.         put "NON inserisco Cursor -1 in articolo - ERRORE"
  99.       end if
  100.     else
  101.       put "NON inserisco Cursor -1 in articolo perchΦ giα presente"
  102.     end if
  103.   else
  104.     put "Attenzione - Il marker ARTICOLO NON Φ presente"
  105.   end if
  106.   
  107.   if offset("viaggio",lab)>0 then
  108.     
  109.     
  110.     go "viaggio"
  111.     set mar to marker(0)
  112.     set num_script to  the framescript
  113.     set str to the scripttext of member num_script
  114.     if offset("cursor 4",str)=0 then
  115.       set off1 to offset("global",str)
  116.       if off1>0 then
  117.         put "modifico la script ",num_script," ed inserisco cursor 4"
  118.         set str1 to char 1 to off1-1 of str
  119.         set str2 to char off1 to length(str) of str
  120.         set new_str to str1 & "cursor 4 " & return & str2
  121.         set the scripttext of member num_script to new_str
  122.       else
  123.         put "NON inserisco cursor 4 in VIAGGIO - ERRORE"
  124.       end if
  125.       
  126.       
  127.     else
  128.       put "NON inserisco cursor 4 in VIAGGIO  perchΦ giα presente"
  129.     end if
  130.     set mar to mar+1
  131.     go to frame mar
  132.     set num_script to  the framescript
  133.     
  134.     set str to the scripttext of member num_script
  135.     if offset("cursor -1",str)=0 then
  136.       set off1 to offset("end"&return,str)
  137.       if off1=0 then set off1 to offset("end",str)
  138.       if off1>0 then
  139.         put "modifico la script ",num_script," ed inserisco cursor -1"
  140.         set str1 to char 1 to off1-1 of str
  141.         set str2 to char off1 to length(str) of str
  142.         set new_str to str1 & "cursor -1 " & return & str2
  143.         set the scripttext of member num_script to new_str
  144.       else
  145.         put "NON inserisco Cursor -1 in Viaggio - ERRORE"
  146.       end if
  147.     else
  148.       put "NON inserisco Cursor -1 in Viaggio perchΦ giα presente"
  149.     end if
  150.   else
  151.     put "Attenzione - Il marker VIAGGIO NON Φ presente"
  152.   end if
  153.   
  154.   if offset("principio",lab)>0 then
  155.     
  156.     go "principio"
  157.     set mar to marker(0)
  158.     set num_script to  the framescript
  159.     set str to the scripttext of member num_script
  160.     if offset("cursor 4",str)=0 then
  161.       set off1 to offset("global",str)
  162.       if off1>0 then
  163.         put "modifico la script ",num_script," ed inserisco cursor 4"
  164.         set str1 to char 1 to off1-1 of str
  165.         set str2 to char off1 to length(str) of str
  166.         set new_str to str1 & "cursor 4 " & return & str2
  167.         set the scripttext of member num_script to new_str
  168.       else
  169.         put "NON inserisco cursor 4 in p.s. - ERRORE"
  170.       end if
  171.       
  172.       
  173.     else
  174.       put "NON inserisco cursor 4 in p.s.  perchΦ giα presente"
  175.     end if
  176.     set mar to mar+1
  177.     go to frame mar
  178.     set num_script to  the framescript
  179.     
  180.     set str to the scripttext of member num_script
  181.     if offset("cursor -1",str)=0 then
  182.       set off1 to offset("end"&return,str)
  183.       if off1=0 then set off1 to offset("end",str)
  184.       if off1>0 then
  185.         put "modifico la script ",num_script," ed inserisco cursor -1"
  186.         set str1 to char 1 to off1-1 of str
  187.         set str2 to char off1 to length(str) of str
  188.         set new_str to str1 & "cursor -1 " & return & str2
  189.         set the scripttext of member num_script to new_str
  190.       else
  191.         put "NON inserisco Cursor -1 in p.s. - ERRORE"
  192.       end if
  193.     else
  194.       put "NON inserisco Cursor -1 in p.s. perchΦ giα presente"
  195.     end if
  196.   else
  197.     put "Attenzione - Il marker PRINCIPIO NON Φ presente"
  198.   end if
  199.   
  200.   
  201.   
  202.   go "menu"
  203. end
  204.  
  205.  
  206. on corr_testo
  207.   set num_can to 0
  208.   set num_cast to 0
  209.   set nome to ""
  210.   
  211.   go "articolo"
  212.   
  213.   repeat with x=1 to 48
  214.     
  215.     set y to the castnum of sprite x
  216.     if y>0 and y<1000 then
  217.       if offset ("testo",the name of member y)>0 then
  218.         set num_can to x
  219.         set num_cast to y
  220.         set nome to the name of member y
  221.       end if
  222.     end if
  223.     
  224.   end repeat
  225.   put num_can,num_cast,nome
  226.   
  227.   set nome_hi to ""
  228.   set num_hi to 0
  229.   
  230.   repeat with x =num_cast -30 to num_cast +30
  231.     if offset("testo",the name of member x) and x<> num_cast then
  232.       set nome_hi to the name of member x
  233.       set num_hi to x
  234.     end if
  235.   end repeat
  236.   put num_hi,nome_hi
  237.   if num_hi <>0 and nome_hi <>"" then
  238.     set mar to marker(0)
  239.     set mar to mar+2
  240.     go to frame mar
  241.     set num_script to  the framescript
  242.     set str to the scripttext of member num_script
  243.    
  244.     
  245.     if offset("castnum",str)=0 then
  246.       set off1 to offset("go to",str)
  247.       if off1>0 then
  248.         put "modifico la script ",num_script," ed inseriscoset the cast num ..."
  249.         set str1 to char 1 to off1-1 of str
  250.         set str2 to char off1 to length(str) of str
  251.         set str to str1 & "set the castnum of sprite " & num_can & " to " & num_hi  & return  & str2
  252.         
  253.         set the scripttext of member num_script to str
  254.       else
  255.         put "NON inserisco set the castnum in ARTICOLO - ERRORE"
  256.       end if
  257.     else
  258.       put "NON inserisco set the castnum in ARTICOLO perchΦ giα presente"
  259.     end if
  260.   else
  261.     put "NON trovo l'hi-lite dell'icona testo"
  262.   end if
  263.   
  264.   
  265.   
  266. end
  267.  
  268. on corr_ps
  269.   set num_can to 0
  270.   set num_cast to 0
  271.   set nome to ""
  272.   
  273.   go "principio"
  274.   
  275.   repeat with x=1 to 48
  276.     
  277.     set y to the castnum of sprite x
  278.     if y>0 and y<1000 then
  279.       if offset ("pri_s",the name of member y)>0 then
  280.         set num_can to x
  281.         set num_cast to y
  282.         set nome to the name of member y
  283.       end if
  284.     end if
  285.     
  286.   end repeat
  287.   put num_can,num_cast,nome
  288.   
  289.   set nome_hi to ""
  290.   set num_hi to 0
  291.   
  292.   repeat with x =num_cast -30 to num_cast +30
  293.     if offset("pri_s",the name of member x) and x<> num_cast then
  294.       set nome_hi to the name of member x
  295.       set num_hi to x
  296.     end if
  297.   end repeat
  298.   put num_hi,nome_hi
  299.   if num_hi <>0 and nome_hi <>"" then
  300.     set mar to marker(0)
  301.     set mar to mar+2
  302.     go to frame mar
  303.     set num_script to  the framescript
  304.     set str to the scripttext of member num_script
  305.    
  306.     
  307.     if offset("castnum",str)=0 then
  308.       set off1 to offset("go to",str)
  309.       if off1>0 then
  310.         put "modifico la script ",num_script," ed inserisco set the castnum..."
  311.         set str1 to char 1 to off1-1 of str
  312.         set str2 to char off1 to length(str) of str
  313.         set str to str1 & "set the castnum of sprite " & num_can & " to " & num_hi  & return  & str2
  314.         
  315.         set the scripttext of member num_script to str
  316.       else
  317.         put "NON inserisco set the castnum in P.S. - ERRORE"
  318.       end if
  319.     else
  320.       put "NON inserisco set the castnum in P.S. perchΦ giα presente"
  321.     end if
  322.   else
  323.     put "NON trovo l'hi-lite dell'icona p.s."
  324.   end if
  325.   
  326.   
  327.   
  328. end
  329.  
  330.  
  331.