Problem with cheat trigger

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

Loras
Newcomer
Posts: 15
Joined: January 25th, 2009, 4:24 pm

Problem with cheat trigger

Post by Loras »

first i'em newbie and my english is no so good and i'em not sure this is right sub-forum but.. my question
I trying to make trigger which make selected unit invulnerable or something other action i try with gui but i fail please help
but if trigger is in jass language i will use it again
User avatar
UndeadxAssassin
Grammar King
Posts: 2115
Joined: June 22nd, 2008, 10:11 pm
Title: Worst human for 4eva
Location: Mostly USEast

Re: Problem with cheat trigger

Post by UndeadxAssassin »

For future references, you should post this in the Triggering/Editting Section.

As for your question, this should work

Code: Select all

     Player - Player 1 (Red) types a chat message containing -invul as An exact match

Conditions

Actions

     Unit Group - Pick every unit in (Units currently selected by (Triggering player)) and do (Actions)
          Loop
             Unit - Make (Picked unit) Invulnerable


For the conditions, since you said this was for a cheatpack, you could put something like

((Triggering player) is in CHEATER) Equal to True

CHEATER should be replaced with whatever you named the people who activated the cheats.
(20:53:52) Bartimaeus: Thank you, Jen.
(20:53:56) Bartimaeus: Truly, you are wise.


(23:44:12) Bartimaeus: I was in pubic school until middle school...


Learn how to extract and read RAW Codes here!

Need help? Click here and ask your question!