BBot - The best bot of the world
When.PlayerMessage NICK - Printable Version

+- BBot - The best bot of the world (https://forums.bmega.net)
+-- Forum: Scripts & Macros (https://forums.bmega.net/forum-4.html)
+--- Forum: Requests (https://forums.bmega.net/forum-17.html)
+--- Thread: When.PlayerMessage NICK (/thread-20993.html)



When.PlayerMessage NICK - seypher - 01-12-2019

Helo, is possible to get player nick using "When.PlayerMessage"?
The script is to: when player say "word" in chat, appears his nick on HUD.Display(NICK).

Quote:When.PlayerMessage(scriptfunc, word)
Exit()

{scriptfunc}
HUD.Display(GET PLAYER NICK)

*NOTE*: ALREADY TRIED "!Str.Match.0" and "!Str.Match.1"


RE: When.PlayerMessage NICK - MegaNo0body - 01-12-2019

Hello,

When will set some variables starting with Message
Message.isSystem
Message.Pos.X
Message.Text
Message.Author.Level
Message.Author.Name <- here you go

To see what variables you have, please go to Variables and filter for Message after a When was triggered (the variables are only set when required by a macro 'When.??Message').