set nHeight to the number of lines in the text of cast the castNum of sprite (gnFirstSprite + 1) * the textHeight of field the castNum of sprite (gnFirstSprite + 1)
if (the locV of sprite (gnFirstSprite + 1) + nHeight) > 387 then
set nTextHeight to the textHeight of cast (the castNum of sprite gnFirstSprite + 1)
set the puppet of sprite (gnFirstSprite + 1) to 1
set the locV of sprite (gnFirstSprite + 1) to the locV of sprite (gnFirstSprite + 1) - nTextHeight