Thread: Reverse string
View Single Post
12-25-21, 07:50 PM   #3
abel8909
A Murloc Raider
Join Date: Jan 2021
Posts: 4
Originally Posted by SDPhantom View Post
Specific to the WoW API, string.format() lets you specify which args go where by modifying the format specifier. By default, they are left-to-right in order. This would flip the order by specifying the second argument goes in the first slot and vice versa. Blizzard did this specifically to support localization.
Code:
FACTION_STANDING_INCREASED = "%2$d %1$s"
Note: The letters define the data type, changing these to be different than what the arguments are can cause type mismatch errors.
if it works, thank you very much, and another question if it does not bother you :P
how can I filter chat texts (from battleground) to replace them example

Babe claims the stables! If left unchallenged, the Alliance will control it in 1 minute!

for

Babe claims the stables!

this is the event
  Reply With Quote