[Trigger] How do I make own ''cheat codes''?

O

Olle1330

Guest
How do I make ''cheat codes'' so when I ex. write ''makeahero'', a hero comes for me? Or ex. I write ''kill'' and then my hero dies. Does somebody know how to do this?:D
 

Rheias

New Helper (I got over 2000 posts)
Reaction score
232
Do people ever read the rules? Should be in World Editor Help, don't worry about it, mod / admin will move it soon enough.

As for you question:

Code:
Untitled Trigger 002
    Events
        Player - Player 1 (Red) types a chat message containing -kill as A substring
        Player - Player 2 (Blue) types a chat message containing -kill as A substring
        Player - Player 3 (Teal) types a chat message containing -kill as A substring
        Player - Player 4 (Purple) types a chat message containing -kill as A substring
        . . . . . .
    Conditions
    Actions
        Unit - Kill (<some unit>)

&

Code:
Untitled Trigger 002
    Events
        Player - Player 1 (Red) types a chat message containing -createhero as A substring
        Player - Player 2 (Blue) types a chat message containing -createhero as A substring
        Player - Player 3 (Teal) types a chat message containing -createhero as A substring
        Player - Player 4 (Purple) types a chat message containing -createhero as A substring
        . . . . . . 
    Conditions
    Actions
        Unit - Create 1 <Hero's type> for (Triggering Player) at <Point> facing <Angle>

Go wild.
 

Tom Jones

N/A
Reaction score
437
The Tutorials, Spells, and Trigger section are reserved for submissions, please keep your questions in the main World Editor Help forum.
 
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