Denison Posted March 14 Share Posted March 14 Всем привет, недавно решил кастомизировать немного свой конфиг. Если по конкретике, я хочу выводить средний урон по технике в playerPanel.xc, только в том случае, если боев на танке больше 100: {{?t-battles>=100}}DMG: <font color='{{c:xtdb}}'>{{tdb%d}}</font> Так же хотел добавить условие проверки на анонимайзер, чтобы не выводить строку для анонимных игроков К слову, какие языки программирования в конфиге XVM поддерживаются? И где можно найти больше примеров использования макросов? @ Quote Link to comment Short link Share on other sites More sharing options...
Solution Bazooka Posted March 14 Solution Share Posted March 14 @Denison These links might be helpful: https://gitlab.com/xvm/xvm/-/blob/81c60d5f7d7bbbfa0efd055afe2edb5b1b093b08/release/doc/macros_ru.txt https://gitlab.com/xvm/xvm/-/blob/81c60d5f7d7bbbfa0efd055afe2edb5b1b093b08/release/doc/py_macros_ru.txt https://koreanrandom.com/forum/topic/14524-расширенный-формат-макросов/ https://koreanrandom.com/forum/topic/53356-как-выделить-анонимов-другим-цветом/ @ Quote Link to comment Short link Share on other sites More sharing options...
HEKPOMAHT Posted March 14 Share Posted March 14 так наверно: {{anonym?|{{t-battles>100?DMG: <font color='{{c:xtdb}}'>{{tdb%d}}</font>}}}} @ Quote Link to comment Short link Share on other sites More sharing options...
Bazooka Posted March 14 Share Posted March 14 The {{anonym}} macro only works for the player and their platoon mates. It won't work for other players because it's impossible to determine whether a player is anonymous or simply has no statistics. Therefore, if you want to hide the row for "anonymous" players, you'll need to hide the row for anyone without statistics, and keep in mind that this will include both anonymous players and regular players. @ Quote Link to comment Short link Share on other sites More sharing options...
Denison Posted March 14 Author Share Posted March 14 1 час назад, Bazooka сказал: The {{anonym}} macro only works for the player and their platoon mates. It won't work for other players because it's impossible to determine whether a player is anonymous or simply has no statistics. Therefore, if you want to hide the row for "anonymous" players, you'll need to hide the row for anyone without statistics, and keep in mind that this will include both anonymous players and regular players. hmm, thanks for the explanation! I thought it was quite simple to check: if no stats are found for a player, he is probably playing with an anonymizer Thanks for the sources as well, although I've already familiarized myself with them :) 1 час назад, HEKPOMAHT сказал: так наверно: {{anonym?|{{t-battles>100?DMG: <font color='{{c:xtdb}}'>{{tdb%d}}</font>}}}} Да, это как раз то что мне нужно, работает. Спасибо) @ Quote Link to comment Short link Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.