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
Are you mixing up players and users? We'll check on the others
What is the message you're trying to trigger off of?
It'd be helpful to have an example of a message that you want to match on as well
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)
DoneWe fixed a few things in there. Let us know if you run into any other issues.
They're populating correctly now 🙂