Thread Tools Display Modes
06/06/14, 01:54 PM   #1
dimmoro
Join Date: May 2014
Posts: 3
GetString valid list

Hello everyone,
Is there a forum page, wiki, etc., on finding a valid list of arguments for the GetString function?

For example, we can GetString("SI_ITEMTRAITTYPE",3) works to return "3" item trait type as a string.

Wondering if anyone has a list, or is there a way I can generate a list, or figure out from looking at the Raw globals dump; of all the valid variables that would go where "SI_ITEMTRAITTYPE" is.

Thank you.
  Reply With Quote
06/06/14, 03:03 PM   #2
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
There is 25 item trait types (http://wiki.esoui.com/Globals#ItemTraitType), so you can run some simple loop to get them:
Lua Code:
  1. for i = 0, 24 do
  2.    d(GetString("SI_ITEMTRAITTYPE", i))
  3. end
  Reply With Quote
06/06/14, 03:07 PM   #3
Kentarii
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 42
Are these the ones you are looking for?
Lua Code:
  1. "[eng] No trait", -- SI_ITEMTRAITTYPE0
  2.     "[eng] Powered", -- SI_ITEMTRAITTYPE1
  3.     "[eng] Charged", -- SI_ITEMTRAITTYPE2
  4.     "[eng] Precise", -- SI_ITEMTRAITTYPE3
  5.     "[eng] Infused", -- SI_ITEMTRAITTYPE4
  6.     "[eng] Defending", -- SI_ITEMTRAITTYPE5
  7.     "[eng] Training", -- SI_ITEMTRAITTYPE6
  8.     "[eng] Sharpened", -- SI_ITEMTRAITTYPE7
  9.     "[eng] Weighted", -- SI_ITEMTRAITTYPE8
  10.     "[eng] Intricate", -- SI_ITEMTRAITTYPE9
  11.     "[eng] Ornate", -- SI_ITEMTRAITTYPE10
  12.     "[eng] Sturdy", -- SI_ITEMTRAITTYPE11
  13.     "[eng] Impenetrable", -- SI_ITEMTRAITTYPE12
  14.     "[eng] Reinforced", -- SI_ITEMTRAITTYPE13
  15.     "[eng] Well-fitted", -- SI_ITEMTRAITTYPE14
  16.     "[eng] Training", -- SI_ITEMTRAITTYPE15
  17.     "[eng] Infused", -- SI_ITEMTRAITTYPE16
  18.     "[eng] Exploration", -- SI_ITEMTRAITTYPE17
  19.     "[eng] Divines", -- SI_ITEMTRAITTYPE18
  20.     "[eng] Ornate", -- SI_ITEMTRAITTYPE19
  21.     "[eng] Intricate", -- SI_ITEMTRAITTYPE20
  22.     "[eng] Healthy", -- SI_ITEMTRAITTYPE21
  23.     "[eng] Arcane", -- SI_ITEMTRAITTYPE22
  24.     "[eng] Robust", -- SI_ITEMTRAITTYPE23
  25.     "[eng] Ornate", -- SI_ITEMTRAITTYPE24
  Reply With Quote
06/06/14, 03:40 PM   #4
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
Originally Posted by Kentarii View Post
Are these the ones you are looking for?
I didn't want to use just copy&paste from localizegeneratedstrings.lua, because "[eng] " will be removed by GetString(...)

How to get list of all strings:
Lua Code:
  1. for key, value in zo_insecurePairs(_G) do
  2.     if type(value) == "number" and (key):find("^SI_") then
  3.        d(key .. " = " .. GetString(value))
  4.     end
  5. end

Or just use Zgoo.
  Reply With Quote
06/06/14, 04:44 PM   #5
dimmoro
Join Date: May 2014
Posts: 3
Thank You

Appreciate the quick replies!

Now we know what we can put into the first argument of GetStrings to get a string, and what we need to make.

Thank you
  Reply With Quote

ESOUI » AddOns » AddOn Help/Support » GetString valid list


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off