Advertisement
FichteFoll

Untitled

Jul 18th, 2012
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.13 KB | None | 0 0
  1. clip1, clip2 = string.format("\\clip(%d,%d,%d,%d)", 0, 65, 1280, 65), string.format("\\clip(%d,%d,%d,%d)", 0, 0, 1280, 65)
  2. partic1, partic2 = l.bottom - l.styleref.outline, l.top + syl.height / 3
  3.  
  4. if (l.actor ~= "main") then
  5.     l.start_time = line.start_time - 400 + (chari-1) * 20
  6.     l.end_time   = line.start_time
  7.     l_duration   = l.end_time - l.start_time
  8.     l.layer      = 1
  9.     l.text       = string.format("{%s\\shad0\\blur2\\be1\\bord2.5\\3c&HB17738&\\1c&HFFFFFF&\\fad(50,0)%s\\pos(%d,%d)\\t(0,%d,%s)}%s",
  10.                                  an,
  11.                                  -- \clip
  12.                                  clip1,
  13.                                  -- \pos
  14.                                  charx, chary,
  15.                                  -- \t(\clip)
  16.                                  l_duration, clip2,
  17.                                  -- TEXT
  18.                                  char)
  19.  
  20.     subs.append(l)
  21.    
  22.     for i = 0, 4 do
  23.         l.start_time = line.start_time - 400 + (chari-1) * 20
  24.         l.end_time   = line.start_time
  25.         l_duration   = (l.end_time - l.start_time) / 2
  26.         l.layer      = 0
  27.         l.text       = string.format("{%s\\move(%d,%d,%d,%d,%d,%d)%s\\fad(50,50)\\3c&HB17738&\\1c&HB17738&\\t(0,%d,%s)\\be1\\blur2\\bord1.5\\p%d}%s",
  28.                                      an,
  29.                                      -- \move
  30.                                      charx, partic1,
  31.                                      charx - math.random(-20,20), partic2,
  32.                                      0, l_duration,
  33.                                      -- \clip
  34.                                      clip1,
  35.                                      -- \t(\clip)
  36.                                      l_duration, clip2,
  37.                                      -- \p -- DRAWINGS
  38.                                      2, shape)
  39.  
  40.         subs.append(l)
  41.     end
  42.  
  43.     --Template
  44.     l.text      = string.format("{%s\\1c&HFFFFFF&\\3c&H000000&\\pos(%d,%d)}%s", an, charx, chary, char)
  45.     l.start_time= line.start_time
  46.     l.end_time  = line.start_time + syl.start_time
  47.     l.layer     = 0
  48.  
  49.     subs.append(l)
  50. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement