Destroy trigger

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

Moderator: Cheaters

User avatar
Ozzapoo
The Flying Cow!
Posts: 2196
Joined: November 2nd, 2007, 10:34 pm
Location: Melbourne

Re: Destroy trigger

Post by Ozzapoo »

If you destroy a trigger, it is the same as turning it off irreversably. So if you plan to use a trigger again, don't destroy it, just turn it off.
Visit Ozzapoo.net, my blog and the home of AutoCP and Cheatpack Detector!
AutoCP3 now available for free!
User avatar
Bl00D R3av3r
Senior Member
Posts: 165
Joined: January 25th, 2008, 5:20 pm
Title: Lazy

Re: Destroy trigger

Post by Bl00D R3av3r »

Then why should you ever destroy a trigger?
Image
Sig by TheWand
patrick-the-bomb
Senior Member
Posts: 165
Joined: February 25th, 2008, 2:56 am
Title: Sir Awesome

Re: Destroy trigger

Post by patrick-the-bomb »

Let's say you have an initialization trigger to give every player gold and you only want t to run once. Destroying the trigger works just as well as turning it off if it only has to work once per game.
User avatar
Kryptonyte
Forum Staff
Posts: 1400
Joined: March 17th, 2008, 12:07 am

Re: Destroy trigger

Post by Kryptonyte »

Here it is (in jass)

DestroyTrigger <- PEW PEW PWNS TRIGGER.
EnabledTrigger <- Turns on... duh.
DisabledTrigger <- Turns off... duh.

Why would you want to destroy a trigger?
Answer: BECAUSE WE CAN IN JASS, BITCHEZ.
Image
Made by the late ILikeHacking

My quote from SKillER
Spoiler:
Chat wrote:(19:12:41) SKillER: newfags cant triforce
(19:20:30) SKillER: ▲
▲ ▲
(19:20:35) SKillER: aww
(19:20:37) FatherSpace: FAIL
(19:20:43) Kryptonyte: Wow stop failing.
(19:20:47) SKillER: ▲
▲ ▲
(19:21:41) Kryptonyte: .

. ▲
▲ ▲
(19:22:20) Kryptonyte: I guess you were right, newfags can't triforce.
(19:22:29) SKillER: . . ▲
▲ ▲
(19:23:04) SKillER: OMFG
(19:23:06) SKillER: ... THIS CHAT
(19:23:06) SKillER: !
(19:23:36) SKillER: ▲
▲ ▲
(19:23:46) SKillER: ▲
.▲ ▲
Apparently, SKillER is a newfag.
User avatar
Ozzapoo
The Flying Cow!
Posts: 2196
Joined: November 2nd, 2007, 10:34 pm
Location: Melbourne

Re: Destroy trigger

Post by Ozzapoo »

Destroying a trigger also frees up memory, so if you have lots of triggers, hopefully it will lag less.
Visit Ozzapoo.net, my blog and the home of AutoCP and Cheatpack Detector!
AutoCP3 now available for free!
User avatar
Kryptonyte
Forum Staff
Posts: 1400
Joined: March 17th, 2008, 12:07 am

Re: Destroy trigger

Post by Kryptonyte »

Ozzapoo wrote:Destroying a trigger also frees up memory, so if you have lots of triggers, hopefully it will lag less.
Also, for loading/saving systems, noobs won't search for "destroytrigger" if they don't know about it. amirte?
Image
Made by the late ILikeHacking

My quote from SKillER
Spoiler:
Chat wrote:(19:12:41) SKillER: newfags cant triforce
(19:20:30) SKillER: ▲
▲ ▲
(19:20:35) SKillER: aww
(19:20:37) FatherSpace: FAIL
(19:20:43) Kryptonyte: Wow stop failing.
(19:20:47) SKillER: ▲
▲ ▲
(19:21:41) Kryptonyte: .

. ▲
▲ ▲
(19:22:20) Kryptonyte: I guess you were right, newfags can't triforce.
(19:22:29) SKillER: . . ▲
▲ ▲
(19:23:04) SKillER: OMFG
(19:23:06) SKillER: ... THIS CHAT
(19:23:06) SKillER: !
(19:23:36) SKillER: ▲
▲ ▲
(19:23:46) SKillER: ▲
.▲ ▲
Apparently, SKillER is a newfag.
User avatar
Vegas
Shopping Maul USA Creator
Posts: 1759
Joined: January 18th, 2007, 11:07 am
Title: No Comment
Location: Calgary Canada
Has thanked: 46 times
Been thanked: 8 times

Re: Destroy trigger

Post by Vegas »

So I would have to make a duplicate trigger and use an activater for it, such as a chat phrase.
User avatar
Kryptonyte
Forum Staff
Posts: 1400
Joined: March 17th, 2008, 12:07 am

Re: Destroy trigger

Post by Kryptonyte »

Um... yeah. Or, if possible, you can just make certain conditions.
(But idk what trigger you're doing or what it's about, but here's an example)

Say it's a game message system.
You could have conditions to check if they're in a certain group,
then display it to them. But yeah, depending on the trigger, you
would have to have an activation trigger and a disabling trigger
along with the trigger.
Image
Made by the late ILikeHacking

My quote from SKillER
Spoiler:
Chat wrote:(19:12:41) SKillER: newfags cant triforce
(19:20:30) SKillER: ▲
▲ ▲
(19:20:35) SKillER: aww
(19:20:37) FatherSpace: FAIL
(19:20:43) Kryptonyte: Wow stop failing.
(19:20:47) SKillER: ▲
▲ ▲
(19:21:41) Kryptonyte: .

. ▲
▲ ▲
(19:22:20) Kryptonyte: I guess you were right, newfags can't triforce.
(19:22:29) SKillER: . . ▲
▲ ▲
(19:23:04) SKillER: OMFG
(19:23:06) SKillER: ... THIS CHAT
(19:23:06) SKillER: !
(19:23:36) SKillER: ▲
▲ ▲
(19:23:46) SKillER: ▲
.▲ ▲
Apparently, SKillER is a newfag.
User avatar
Vegas
Shopping Maul USA Creator
Posts: 1759
Joined: January 18th, 2007, 11:07 am
Title: No Comment
Location: Calgary Canada
Has thanked: 46 times
Been thanked: 8 times

Re: Destroy trigger

Post by Vegas »

Its actually a trigger for single player. When playing alone, then this trigger is destroyed. Its for my XP system. If I just turn it off, then when someone goes to type in their xp, it activates the trigger again, so I see why it needs to be destroyed.

I guess for testing purposes, it would be better to make a second set of the same triggers that would be activated by me, only for me in test mode.

I guess I could just disable this trigger while I am testing, but if I forget the damn thing disabled and release the map, that would suck.