Thread Tools Display Modes
10-23-22, 11:31 AM   #1
Cowky
A Defias Bandit
Join Date: Oct 2022
Posts: 2
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"
  Reply With Quote
10-24-22, 01:15 AM   #2
LudiusMaximus
A Rage Talon Dragon Guard
 
LudiusMaximus's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 325
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
__________________
~ Be the change you want to see in the world... of warcraft interface! ~
  Reply With Quote
10-25-22, 10:56 AM   #3
Cowky
A Defias Bandit
Join Date: Oct 2022
Posts: 2
Thank you very much. Appreciate your help.

maybe i should have searched for "global strings" instead of constants
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Lua Constant - Currency?


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