General talk about editing, cheating, and deprotecting maps.
Moderator: Cheaters
Nightmare
Junior Member
Posts: 38 Joined: December 28th, 2007, 6:15 pm
Post
by Nightmare » April 9th, 2008, 8:03 pm
How do you put this in jass:
Disable this trigger after 300 seconds.
and also add in
Remove all units for (Triggering Player) when used.
also if this helps this is a loading trigger, and the substring to say is -loadhero <code> if that helps at all.
Thanks for all your help! If you need more info just tell me
thanks!
-Nightmare
initialD
Some Honorary Title
Posts: 1713 Joined: June 8th, 2007, 5:08 am
Title: Angry Bird
Post
by initialD » April 10th, 2008, 5:39 am
To destroy trigget after 300 seconds:
local trigger t7=CreateTrigger()
call TriggerSleepAction(300)
call DestroyTrigger(t7)
set t7=null
To remove units:
Call RemoveUnit(Units)
For details, ask Aero. :p
Aero
Forum Staff
Posts: 829 Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada
Post
by Aero » April 10th, 2008, 4:23 pm
Use a timer....
Create a timer variable called whatever you want (I'm calling it "abc" for this example).
Make a new trigger again called whatever you want.
For the event, have this:
Event - abc Expires
For the actions. make it do whatever you want.
Then, in you're map init trigger, do this:
Timer - Start abc as a One-Shot timer that will expire in 300 seconds.
Ta-dah, you're done.