How can i hide an entered chat message from everyones view

a j j bones

New Member
Reaction score
3
i need to have a code i can type in that loads my admin character for my map but i dont want anyone else to see the code, how can i do this?

heres the trigger, this works but it shows everyone my code, i need it to still spawn the unit but not show the message anywhere.

Code:
death knight
    Events
        Player - Player 1 (Red) types a chat message containing -call death knight as An exact match
    Conditions
    Actions
        Set L = (Center of Start Region <gen>)
        Unit - Create 1 Death 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)
 

PurgeandFire

zxcvmkgdfg
Reaction score
508
Well, I'm not sure if it is possible in GUI, but you can use this JASS code:
JASS:
native DisplayTextToPlayer          takes player toPlayer, real x, real y, string message returns nothing


Code:
Custom Script: call DisplayTextToPlayer(Player(#),0,0,"msg")

Note that players in JASS go from 0 - 11

Player 1 = Player(0)
Player 2 = Player(1)
Player 3 = Player(2)
...
Player 12 = Player(11)

"msg" is just the message you want to enter. That should work. Don't worry about the real x and y, just leave it as 0.
 

a j j bones

New Member
Reaction score
3
ok so i have never use jass before, does the jass part go in my map header or somthin? and i put the custom script in actions?
i posted an example so you understand more of what i mean cause i didnt really explain it good
 
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