Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
When.PlayerMessage NICK
#1
Rainbow 
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"
Reply
#2
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').
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)