home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1997 February / WPCFEB97.ISO / multi / times / data / tools.dir / 00010.ls < prev    next >
Encoding:
Text File  |  1996-08-12  |  2.5 KB  |  77 lines

  1. on goToPlace
  2.   global theSection, theSectionT, lineheight, col1amount, col2amount, col1width, col2width, theSLine, exitFrame, spHoriz, spVert, choiceMade, theGoString, toolWindow
  3.   setDelimOn()
  4.   set theGoStringCount to the number of items in theGoString
  5.   set whMovie to item 1 of theGoString
  6.   set theSectionTemp to value(item 2 of theGoString)
  7.   set theTopicTemp to value(item 3 of theGoString)
  8.   setDelimOff()
  9.   put whMovie
  10.   put theSection
  11.   if whMovie = "animals.dir" then
  12.     tell the stage
  13.       if theGoStringCount = 1 then
  14.         if the movieName = string(whMovie) then
  15.           setPuppets(1, 48, 0)
  16.           set choiceMade to 0
  17.           go(1)
  18.         else
  19.           go(1, string(whMovie))
  20.         end if
  21.       end if
  22.       if theGoStringCount = 2 then
  23.         if the movieName = string(whMovie) then
  24.           setPuppets(1, 48, 0)
  25.           set choiceMade to 0
  26.           go(1)
  27.         else
  28.           go(1, string(whMovie))
  29.         end if
  30.         set theSection to theSectionTemp
  31.         if theSection <= col1amount then
  32.           set theSLine to theSection
  33.           set the locH of sprite 43 to spHoriz
  34.           set the width of sprite 43 to col1width
  35.         else
  36.           set theSLine to theSection - col1amount
  37.           set the locH of sprite 43 to spHoriz + col1width
  38.           set the width of sprite 43 to col2width
  39.         end if
  40.         set the castNum of sprite 40 to cast "introButt3"
  41.         doSet(theSection, theSLine, spVert)
  42.         if theGoString = "response.dir>10" then
  43.           tell the stage
  44.             set the height of sprite 43 to 34
  45.             updateStage()
  46.           end tell
  47.         end if
  48.       end if
  49.       if theGoStringCount = 3 then
  50.         if the movieName = string(whMovie) then
  51.           setPuppets(1, 48, 0)
  52.           set choiceMade to 1
  53.           go(1)
  54.         else
  55.           go(1, string(whMovie))
  56.         end if
  57.         set theSection to theSectionTemp
  58.         set theSectionT to theSectionTemp
  59.         if theSection <= col1amount then
  60.           set theSLine to theSection
  61.           set the locH of sprite 43 to spHoriz
  62.           set the width of sprite 43 to col1width
  63.         else
  64.           set theSLine to theSection - col1amount
  65.           set the locH of sprite 43 to spHoriz + col1width
  66.           set the width of sprite 43 to col2width
  67.         end if
  68.         set the castNum of sprite 40 to cast "introButt3"
  69.         doSet(theSectionT, theSLine, spVert)
  70.         topicFieldList(theTopicTemp)
  71.       end if
  72.     end tell
  73.   else
  74.     go("km")
  75.   end if
  76. end
  77.