Few variables not working - Battlebit

Tried to create a message for a command in game. Variables weren't working so I added all the squad ones to a console log and got this as the result: (Activity Log) JesseUCAVedYou used the !lead command and became squad leader of {{player.squadName}}. User ID {{user.id}} User Nickname {{user.nickname}} Team Index {{player.teamIndex}} BattleBit Remastered Squad Index {{player.squadIndex}} BattleBit Remastered Squad Name {{player.squadName}} BattleBit Remastered Is Squad Leader true (5) (Trigger).
7 Replies
Hordicus
Hordicus•7mo ago
Are you mixing up players and users? We'll check on the others What is the message you're trying to trigger off of?
[RS] JesseUCAVedYou [EN]
[RS] JesseUCAVedYou [EN]OP•7mo ago
Theres a difference? Either way neither of them filled the info. Here is the share url if that helps: https://www.battlemetrics.com/rcon/triggers/add?trigger=%7B%22types%22%3A%5B%22playerMessage%22%5D%2C%22personal%22%3Afalse%2C%22condition%22%3A%7B%22or%22%3A%5B%7B%22operand%22%3A%22server.players%22%2C%22operator%22%3A%22gte%22%2C%22value%22%3A0%7D%5D%7D%2C%22rateLimits%22%3Anull%2C%22inputs%22%3A%5B%5D%2C%22logCondition%22%3Atrue%2C%22actions%22%3A%5B%7B%22id%22%3A%22gLld3oWzG%22%2C%22command%22%3A%22globalChat%22%2C%22gameId%22%3Anull%2C%22options%22%3A%7B%22message%22%3A%22%7B%7Bplayer.name%7D%7D+that+command+is+reserved+for+clan+members+only.+Apply+to+join+at+Discord.gg%2FRSClan.%22%7D%2C%22order%22%3A3%2C%22condition%22%3A%7B%22and%22%3A%5B%7B%22operand%22%3A%22msg.body%22%2C%22operator%22%3A%22regexp%22%2C%22value%22%3A%22%2F%21lead%2Fi%22%7D%2C%7B%22operand%22%3A%22player.flags%22%2C%22operator%22%3A%22lacks%22%2C%22value%22%3A%22b25f4aa0-cec6-11ee-8dfd-c9ee19d0e107%22%7D%5D%7D%2C%22showResult%22%3Afalse%7D%2C%7B%22id%22%3A%22fka1t-rVWR%22%2C%22command%22%3A%22battlebit%3APromoteSquadLeader%22%2C%22gameId%22%3A%22battlebit%22%2C%22options%22%3A%7B%7D%2C%22order%22%3A0%2C%22condition%22%3A%7B%22or%22%3A%5B%7B%22and%22%3A%5B%7B%22operand%22%3A%22player.flags%22%2C%22operator%22%3A%22has%22%2C%22value%22%3A%22b25f4aa0-cec6-11ee-8dfd-c9ee19d0e107%22%7D%2C%7B%22operand%22%3A%22msg.body%22%2C%22operator%22%3A%22regexp%22%2C%22value%22%3A%22%2F%21lead%2Fi%22%7D%5D%7D%5D%7D%2C%22showResult%22%3Afalse%7D%2C%7B%22id%22%3A%22QKV_1rCYKc%22%2C%22command%22%3A%22battlebit%3AKill%22%2C%22gameId%22%3A%22battlebit%22%2C%22options%22%3A%7B%7D%2C%22order%22%3A1%2C%22condition%22%3A%7B%22or%22%3A%5B%7B%22and%22%3A%5B%7B%22operand%22%3A%22player.flags%22%2C%22operator%22%3A%22has%22%2C%22value%22%3A%22b25f4aa0-cec6-11ee-8dfd-c9ee19d0e107%22%7D%2C%7B%22operand%22%3A%22msg.body%22%2C%22operator%22%3A%22regexp%22%2C%22value%22%3A%22%2F%21killme%2Fi%22%7D%5D%7D%5D%7D%2C%22showResult%22%3Afalse%7D%2C%7B%22id%22%3A%22FZA9GNThR6%22%2C%22command%22%3A%22globalChat%22%2C%22gameId%22%3Anull%2C%22options%22%3A%7B%22message%22%3A%22%7B%7Bplayer.name%7D%7D+used+the+%21lead+command+and+became+squad+leader+of+their+squad.%22%2C%22chatCommands%22%3A%7B%22battlebit%22%3A%22battlebit%3ASayToAllChat%22%7D%7D%2C%22order%22%3A2%2C%22condition%22%3A%7B%22and%22%3A%5B%7B%22operand%22%3A%22msg.body%22%2C%22operator%22%3A%22regexp%22%2C%22value%22%3A%22%2F%21lead%2Fi%22%7D%2C%7B%22operand%22%3A%22player.flags%22%2C%22operator%22%3A%22has%22%2C%22value%22%3A%22b25f4aa0-cec6-11ee-8dfd-c9ee19d0e107%22%7D%5D%7D%2C%22showResult%22%3Afalse%7D%5D%2C%22actionIds%22%3A%5B%22gLld3oWzG%22%2C%22fka1t-rVWR%22%2C%22QKV_1rCYKc%22%2C%22FZA9GNThR6%22%5D%7D
Hordicus
Hordicus•7mo ago
It'd be helpful to have an example of a message that you want to match on as well
[RS] JesseUCAVedYou [EN]
[RS] JesseUCAVedYou [EN]OP•7mo ago
I was trying to get this {{player.name}} used the !lead command and became squad leader of their squad. to say {{player.name}} used the !lead command and became squad leader of {{player.squadName}} (or whatever would result in an indication of a squad. So something like JesseUCAVedYou used the !lead command and became squad leader of squad A(or squad Alpha) Done
Hordicus
Hordicus•7mo ago
We fixed a few things in there. Let us know if you run into any other issues.
[RS] JesseUCAVedYou [EN]
[RS] JesseUCAVedYou [EN]OP•6mo ago
They're populating correctly now 🙂
[RS] JesseUCAVedYou [EN]
[RS] JesseUCAVedYou [EN]OP•6mo ago
No description
Want results from more Discord servers?
Add your server