Checking a Players Name

killbuzz

Member
Reaction score
9
Ok, so how can you make so if a player's name is for example "killbuzz" if that person types something like "gold" then that person can get something like gold. (If someone else types it though, they will get nothing.)

I want to use it as a way of making certain heros available to a few select people.
 

ManyTimes

I'm so lonesome I could cry...
Reaction score
293
Code:
Untitled Trigger 002
    Events
        Player - Player 1 (Red) types a chat message containing gold as An exact match
    Conditions
        (Name of (Triggering player)) Equal to killbuzz
    Actions
        Player - Add 1000 to Player 1 (Red) Current gold
 

killbuzz

Member
Reaction score
9
Code:
Untitled Trigger 002
    Events
        Player - Player 1 (Red) types a chat message containing gold as An exact match
    Conditions
        (Name of (Triggering player)) Equal to killbuzz
    Actions
        Player - Add 1000 to Player 1 (Red) Current gold

Okay, its the condition part I have trouble with, how do you get it to check the name of the player?
 

ManyTimes

I'm so lonesome I could cry...
Reaction score
293
choose condition > string comparison > left click the first thing you can choose (Entered chat string)> click the button "P" on your keyboard, assuming you have an English editor, else scroll down till you find "player name"
 

killbuzz

Member
Reaction score
9
choose condition > string comparison > left click the first thing you can choose (Entered chat string)> click the button "P" on your keyboard, assuming you have an English editor, else scroll down till you find "player name"

Okay, thanks!
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top