+ Reply to Thread
Results 1 to 4 of 4

Thread: Vertical Text

  1. #1
    Ascendant Credo's Avatar
    Join Date
    Jan 2011
    Posts
    4,172

    Default Vertical Text

    Is there an easy way to make text vertical such as:
    1
    2
    3
    4
    Where the input to would be a string "1234"

    Basically trying to make the following vertical, where GetStack gets the current stack of the currency
    Code:
    favor:SetText(GetStack("Favor"))
    Even free cost too much now

  2. #2
    Champion Lorandii's Avatar
    Join Date
    Jun 2011
    Posts
    516

    Default

    Code:
    local input = "1234"
    for number in string.gmatch(input, "%d+") do
        print(number)
    end
    If that doesn't work, change it to "%a+"

  3. #3
    Ascendant Credo's Avatar
    Join Date
    Jan 2011
    Posts
    4,172

    Default

    Thanks! I'll give it a try!
    Even free cost too much now

  4. #4
    Champion Lorandii's Avatar
    Join Date
    Jun 2011
    Posts
    516

    Default

    http://www.lua.org/pil/20.1.html
    Here is the official Lua doc on patterns; click the <- -> buttons on the page, not in your browser, to read through the chapter.

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts