I need help getting a players name for condition

a j j bones

New Member
Reaction score
3
im trying to make it when a player with the b.net name Nucking-futs type in -deathknight and special unit is spawned. i dont want anyone else but Nucking-futs to be able to spawn the unit. this trigger isnt working

Code:
death knight
    Events
        Player - Player 1 (Red) types a chat message containing -call death knight as An exact match
    Conditions
        (Name of (Triggering player)) Equal to Nucking-futs
    Actions
        Set L = (Center of Start Region <gen>)
        Unit - Create 1 |cffff0000Death Knight for Player 1 (Red) at L facing Default building facing degrees
        Camera - Pan camera for Player 1 (Red) to L over 0.00 seconds
        Game - Display to (All players) the text: Death Knight has be...
        Custom script:   call RemoveLocation (udg_L)
 
T

The Mapmaker

Guest
i think you also have to do the length of the string too (condition)
 

Sim

Forum Administrator
Staff member
Reaction score
534
>this trigger isnt working

Do you mean that the unit is not spawning or that anybody can spawn it?
 
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