Help with: Random Events

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

Panda-Assassin
Senior Member
Posts: 123
Joined: July 4th, 2009, 12:00 am
Title: Pandaren-Assassin

Help with: Random Events

Post by Panda-Assassin »

I've seen this kind of event in some games where random things just happen. I mean at random times during the game not periodically at set times. Would anyone know the triggers for this?? What I'm aiming for is at a random time of the game, random things appear. To make it easy for you and get me to learn, let's say I want something that people that can step into and they can be sent away to a walkable place on the map.

Thank you in advance!! :D
"A unit of time is as precious as a unit of gold, but you cannot don't click me back one unit of time with one unit of gold."

Thanks for all the help Syre!
User avatar
UndeadxAssassin
Grammar King
Posts: 2119
Joined: June 22nd, 2008, 10:11 pm
Title: Worst human for 4eva
Location: Mostly USEast

Re: Help with: Random Events

Post by UndeadxAssassin »

I got this line from the game Are You a Lucker.

Code: Select all

call TriggerRegisterTimerEventPeriodic( gg_trg_Rain_of_Fire, GetRandomInt(0,100) )
Is this what you're looking for?

Basically in this trigger, Rain of Fire is activated at a random time (from 0 to 100 seconds).
(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!
Panda-Assassin
Senior Member
Posts: 123
Joined: July 4th, 2009, 12:00 am
Title: Pandaren-Assassin

Re: Help with: Random Events

Post by Panda-Assassin »

Yeah, it seems like what I'm looking for, just need to get it to work. Thanks. :D
Edit: Would this come under actions as a custom script??
"A unit of time is as precious as a unit of gold, but you cannot don't click me back one unit of time with one unit of gold."

Thanks for all the help Syre!