How Can i Create a secret code like trigger

For fulfilled maps that most likely don't work on the latest patch (1.24 or later).

Moderator: Cheaters

User avatar
lilmanbryan
Member
Posts: 52
Joined: January 10th, 2008, 6:29 am
Title: Learning to Model
Location: Shoreline, Wa

How Can i Create a secret code like trigger

Post by lilmanbryan »

how can i create a trigger, so that if a player types in say, -blah
then it will give the player that typed that in say, a immolation cloak?
[blinking]lilmanbryan[/blinking] appreciates you reading this...

[blinking]Look Down...[/blinking]

Spoiler:
You Weren't Supposed to Look Here...


[blinking]Look Up...[/blinking]
Durchdringen
Honorary wc3edit.net Traitor
Posts: 468
Joined: December 10th, 2007, 10:50 pm
Title: The Professional
Location: USA

Re: How Can i Create a secret code like trigger

Post by Durchdringen »

You mean like an item?
Do you support Durchdringen? If so, add the spoiler to your sig. Durch cares for you, so show your support for Durch!
Spoiler:
(broken image) Thanks for the support!
Julian5
Member
Posts: 62
Joined: October 3rd, 2007, 4:17 am
Title: Dragon
Location: The land of dragons.

Re: How Can i Create a secret code like trigger

Post by Julian5 »

I assume he means an item. :o

Code: Select all

itemhax
    Events
        Player - Player 1 (Red) types a chat message containing -itemhax as An exact match
    Conditions
    Actions
        Unit Group - Pick every unit in (Units currently selected by Player 1 (Red)) and do (Hero - Create Cloak of Flames and give it to (Picked unit))
Dragons FTW!
Image
^ Made by Windflamedmon. :D
Image
Image
User avatar
lilmanbryan
Member
Posts: 52
Joined: January 10th, 2008, 6:29 am
Title: Learning to Model
Location: Shoreline, Wa

Re: How Can i Create a secret code like trigger

Post by lilmanbryan »

Yes An item. so i would type in -blah and i would get an immolation cloak.
[blinking]lilmanbryan[/blinking] appreciates you reading this...

[blinking]Look Down...[/blinking]

Spoiler:
You Weren't Supposed to Look Here...


[blinking]Look Up...[/blinking]
User avatar
Bartimaeus
Tyrannical Drama Queen
Posts: 4430
Joined: November 19th, 2007, 5:05 am
Been thanked: 2 times

Re: How Can i Create a secret code like trigger

Post by Bartimaeus »

lilmanbryan wrote:Yes An item. so i would type in -blah and i would get an immolation cloak.
Julien just told you. Also, this should be either moved to JASS or GUI section, according to which one you'd prefer it in.
User avatar
lilmanbryan
Member
Posts: 52
Joined: January 10th, 2008, 6:29 am
Title: Learning to Model
Location: Shoreline, Wa

Re: How Can i Create a secret code like trigger

Post by lilmanbryan »

Bartimaeus wrote:
lilmanbryan wrote:Yes An item. so i would type in -blah and i would get an immolation cloak.
Julien just told you. Also, this should be either moved to JASS or GUI section, according to which one you'd prefer it in.
Oh, ok sry i didnt see that.
thank you Julian.
Oh, and GUI sec
[blinking]lilmanbryan[/blinking] appreciates you reading this...

[blinking]Look Down...[/blinking]

Spoiler:
You Weren't Supposed to Look Here...


[blinking]Look Up...[/blinking]
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Re: How Can i Create a secret code like trigger

Post by Aero »

Code: Select all

itemhax
    Events
        Player - Player 1 (Red) types a chat message containing -itemhax as An exact match
    Conditions
    Actions
        Unit Group - Pick every unit in (Units currently selected by Player 1 (Red)) and do (Hero - Create Cloak of Flames and give it to (Picked unit))
This is fine but leaks a group.
Fix that and you're good.