View Single Post
05/10/14, 12:57 PM   #12
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
Originally Posted by Iyanga View Post
plural? Either neutral or some strings are broken. Using the POI "Tangle Rock" on this returns the third argument.
Lua Code:
  1. local fmt = <<1{first/second}>>
  2. msg = zo_strformat(fmt, text)
if text == "test^m"
returns "first"

if text == "test^f"
returns "second"

if text == "test^n"
returns "second"

if text == "test^p"
returns "second"

Lua Code:
  1. local fmt = <<1{first/second/third}>>
  2. msg = zo_strformat(fmt, text)
if text == "test^m"
returns "first"

if text == "test^f"
returns "second"

if text == "test^n"
returns "first"

if text == "test^p"
returns "third"

Lua Code:
  1. local fmt = <<1{first/second/third/fourth}>>
  2. msg = zo_strformat(fmt, text)
if text == "test^m"
returns "first"

if text == "test^f"
returns "second"

if text == "test^n"
returns "third"

if text == "test^p"
returns "fourth"
  Reply With Quote