stoneharry

Untitled

May 19th, 2014
525
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.58 KB | None | 0 0
  1.     local description = ""
  2.     local wantingToBreak = false
  3.     for i=1,#PERKS[index][2] do
  4.         local c = PERKS[index][2]:sub(i, i)
  5.         -- The below code works, don't ask why or how, just accept it
  6.         if wantingToBreak then
  7.             if c == " " then
  8.                 description = description .. "\r\n"
  9.                 wantingToBreak = false
  10.             else
  11.                 description = description .. c
  12.                 if i % 35 == 0 then
  13.                     wantingToBreak = true
  14.                 end
  15.             end
  16.         else
  17.             description = description .. c
  18.             if i % 35 == 0 then
  19.                 wantingToBreak = true
  20.             end
  21.         end
  22.         -- End hacky mess
  23.     end
  24.     GameTooltip:AddLine(description)
Advertisement
Add Comment
Please, Sign In to add comment