WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Lua Constant - Currency? (https://www.wowinterface.com/forums/showthread.php?t=59274)

Cowky 10-23-22 11:31 AM

Lua Constant - Currency?
 
Hey,

i've started with my very first self made addon. I wanted to start with some very basic.
Just to adjust some "constants" for the trade chat window. So that i have some very short text strings for a tiny loot log.

So far its working very well. Just for the Currency stuff i cant find the constant name to adjust. Can you help me?

It would be nice if you can tell me where/how to find stuff like that. And maybe a good beginner friendly guide for .lua programming?

Here's some code as example what i mean:
Code:

LOOT_ITEM = "%s |cffffff00+|r %s"
LOOT_ITEM_MULTIPLE = "%s |cffffff00+|r %sx%d"
LOOT_ITEM_SELF = "|cffffff00+|r %s"
LOOT_ITEM_SELF_MULTIPLE = "|cffffff00+|r %sx%d"

FACTION_STANDING_DECREASED = "%s -%d"
FACTION_STANDING_INCREASED = "%s +%d"


LudiusMaximus 10-24-22 01:15 AM

Global strings can be looked up here: https://www.townlong-yak.com/framexm...balStrings.lua

Regarding advice for beginners, I just recently posted this:
https://www.wowinterface.com/forums/...250#post341250

Cowky 10-25-22 10:56 AM

Thank you very much. Appreciate your help.

maybe i should have searched for "global strings" instead of constants :banana:


All times are GMT -6. The time now is 09:39 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI