• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[Trigger] Checking player name?

Not open for further replies.
Level 2
Sep 5, 2015
Is there anyway to check a players name through triggers?
I create a shop that has a very overpowered item in it. But I only want a player with the name "Sakkuzi" to be able to buy it?
Last edited:
Level 10
Apr 4, 2010
  • Sakkuzi
    • Events
      • Unit - A unit Sells an item (from shop)
    • Conditions
      • (Item-type of (Sold Item)) Equal to Over Powered Item
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Name of (Owner of (Buying unit))) Equal to Sakkuzi
        • Then - Actions
          • Do nothing
        • Else - Actions
          • Item - Remove (Sold Item)
          • Player - Add Refund to (Owner of (Buying unit)) Current gold
          • Game - Display to (Player group((Owner of (Buying unit)))) the text: Sorry, only Sakkuzi can buy this item
EDIT: To check for name it's found in String Comparison
Last edited:
Not open for further replies.