a way to randomly run a trigger?

  • Thread starter Thread starter guest1
  • Start date Start date
G

guest1

Guest
Is there a way? or could i do it by like time and then have the time start over?
 
Yes , there is a way, let me open up the editor to make the trigger.

Edit~

Ok here it is


Code:
  Events
        Time - Elapsed game time is (Random real number between 1.00 and 5000.00) seconds
    Conditions
    Actions
        Environment - Create at (Playable map area) the weather effect Ashenvale Rain (Heavy)
        Game - Display to (All players) the text: It is raining!

the event is under Time\Math - Random number
 
K thx i got that working now i need to know is there a way to randly choose from triggers heres an example..(not from my map) but there are arenas and there the selection for each arena has a trigger is there a way to make it so it randomly runs one of those triggers?
 
Yes, there is:

Code:
Arena Select

Events: <Something>

Conditions: <Something>

Actions:
-Set tmpRandomInt = (Random number from 1 to <Something>)
-If tmpRandomInt equals 1 then
-Trigger - Run Trigger <First Arena Trigger>
-If tmpRandomInt equals 2 then
-.... <repeat>
 
:eek: :eek: :eek: :eek: OMG i am making a map where i needed that trigger (to randomly select a arena game type) thnx Laika
 
i need something like that but i dont get how to do it like u showed
 
An example

Ok, here is an example to run a random trigger at an interval.

In this case it will either display: HELLO, OUCH!, or wtf? every 15 seconds to all players.

The actions in this case are completely arbitrary, and are just used as an example.

Variables needed:
Trigger array: Random_Trigger_List[]
Integer: tmpInt

Code:
Setup Triggers

Events: Map Initialization

Conditions: NONE

Actions:
Set Random_Trigger_List[1] = My_Trigger_1
Set Random_Trigger_List[2] = My_Trigger_2
Set Random_Trigger_List[3] = My_Trigger_3

Code:
Randomize Triggers

Events: Every 15 seconds of Game-time.

Conditions: NONE

Actions:
Set tmpInt = (A random number between 1 and 3)
Trigger - Run Trigger <Random_Trigger_List[tmpInt]>

Code:
My Trigger 1

Events: NONE

Condtions: NONE

Actions:
Game - Display auto-timed message to (All Players): HELLO

Code:
My Trigger 2

Events: NONE

Condtions: NONE

Actions:
Game - Display auto-timed message to (All Players): OUCH!

Code:
My Trigger 3

Events: NONE

Condtions: NONE

Actions:
Game - Display auto-timed message to (All Players): wtf?
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    Happy Thursday!
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    we were down for a minute - think a log file or something got too big
    +1
  • Ghan Ghan:
    The alerts say it was down for a while unfortunately.
  • Ghan Ghan:
    Didn't know what was going on while I was at work.
  • Ghan Ghan:
    Disk filled up with logs. Fixed now.
    +1
  • The Helper The Helper:
    not a problem at all thanks for getting us back up
  • The Helper The Helper:
    I think the bots are finding a way to get through the anubis
  • The Helper The Helper:
    Happy Wednesday Everyone! Hope everyone has a Fantastic Day!
    +1
  • The Helper The Helper:
    Yeah, stats are showing big bot influx like 12k page views.
  • Wizard Wizard:
    :wave:
    +1
  • Ghan Ghan:
    TH changed his avatar again. 6 more weeks of summer.
    +3
  • Wizard Wizard:
    lol
    +1
  • The Helper The Helper:
    Guys just a heads up I am going to be shutting the site down soon. I am just waiting on the NUON people to decide whether they want to transfer forum data and keep the discord. My email is [email protected] for anyone that wants to keep in touch and I have a facebook too. I will make an official post later. Love you guys and will miss everyone!
    +1
  • V-SNES V-SNES:
    Sent a pm @The Helper
  • Stephen Stephen:
    Oh no - please don't lose the Nuon content
    +1
  • The Helper The Helper:
    Someone email AtariAge and see if they want me to transfer the forum data over to it
  • Ghan Ghan:
    Could probably keep NUON stuff around here if we wanted.
  • Ghan Ghan:
    Hmm what to do about the World Editor site though?
  • Stephen Stephen:
    I'd rather personally just own a backup of the Nuon data than see it go to AtariAge honestly. If it gets enshittified as per usual, or if some of the "regular" Jaguar folks get there, it's not gonna be fun
  • The Helper The Helper:
    There will be a github of the forum data so the NUON Forum Data I guess would be available there
  • The Helper The Helper:
    World Editor is technically Ryoko stuff not mine you guys can keep that I am not in that even
  • jonas jonas:
    :( end of an era :(
  • The Helper The Helper:
    Dont think of it as an end jonas - think of it as a beginning, because really my friend that is what it is.

The Helper Discord

Members online

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top