Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local description = ""
- local wantingToBreak = false
- for i=1,#PERKS[index][2] do
- local c = PERKS[index][2]:sub(i, i)
- -- The below code works, don't ask why or how, just accept it
- if wantingToBreak then
- if c == " " then
- description = description .. "\r\n"
- wantingToBreak = false
- else
- description = description .. c
- if i % 35 == 0 then
- wantingToBreak = true
- end
- end
- else
- description = description .. c
- if i % 35 == 0 then
- wantingToBreak = true
- end
- end
- -- End hacky mess
- end
- GameTooltip:AddLine(description)
Advertisement
Add Comment
Please, Sign In to add comment