Trigger_random And Trigger_delay

OneEyedOneEyed Join Date: 2003-03-14 Member: 14493Members
edited July 2003 in Mapping Forum
<div class="IPBDescription">read please! need this help.</div> Ok, i can use these 2 to open something at whatever time i want. But the thing i dont understand is how do i reset them after the round is over so that they work AGAIN.

These are my settings for <b>trigger_random</b>
Name - ""
Shortest fire time - "0"
Longest fire time - "0"
Delay before reset - "-1"
<b>SmartEdit:</b>
doortimer1a - "1"
<b>Flags:</b>
Start On
Remove on Fire


Settings for <b>trigger_relay</b>
Name - "doortimer1a"
Target - "door1a"
Delay before trigger - "300"

Then of course it triggers my door.
This works fine the first round. But then the 2nd and 3rd rounds, its totally random out of my control. Please explain how to set it so it works 100% every round.

Comments

  • OneEyedOneEyed Join Date: 2003-03-14 Member: 14493Members
    /bump

    someone please help me, shouldnt be much of your time to help me out =)
  • OlljOllj our themepark-stalking nightmare Fade Join Date: 2002-12-12 Member: 10696Members
    edited July 2003
    you have 2 big problems:
    1) the trigger random removes itself on fire, so it fires just once, wich is stupid.
    2) long delays before triggering. When a game resets every deelay stays active. So one deelay can keep till the next round. In your case the door keeps open no matter how long it takes to finish the game. Keep all delays at 0 and make the doors toggle. -> you need more relays to make sure a door is closed or opened when it should.

    You also need a kind of "abort" routine for the case that a game resets even before any door opens.

    Im not sure about this but there might me a bug when a trigger random aims at doors directly. Put a trigger reelay between the trigger random and whatever it toggles.

    You need lots of trigger relays or masters.

    should , err could, err maybe maybe not, no clue, ... , work.

    read underlined first for overview:

    <b>blah</b> (trigger random)
    aims on "inittoggle"

    <b>inittoggle</b> (trigger relay) (this relay gets its aim toggled depending on the game state, what door is opened or opening next.)
    aims on "open1"

    <b><u>open1</b> (multi manager) (no door is opened door 1 opens next, game just started)</u>
    0.001 F4a (in case everyone f4s now "close1" resets the timer to door1 without touching door)
    0.002 set1 (sets the countdown timer to open door1 (=open2) )
    0.003 counter1 (initiates the countdown)
    <b>F4a</b> (trigger_changetarget)
    aims at inittoggle
    changes target to close1
    <b>set1</b> (game_counter_set)
    target counter1
    set timer to 10 minutes
    <b>counter1</b> (game_counter)
    has as target open2 (this is a deelayed counter with variable time)

    <b><u>open2</b> (multi manager) (door 1 opens right now, door2 opens next)</u>
    0.001 door1 (opens door 1 imidiately)
    0.002 F4b (in case everyone f4s now "close2" resets the timer to door2 to open it imidiatley, and closes the door again same with door1 cus its open too.)
    0.003 set2 (sets the countdown timer to open door2)
    0.004 counter2 (initiates the countdown)
    <b>F4b</b> (trigger_changetarget)
    aims at inittoggle
    changes target to close2
    <b>set2</b> (game_counter_set)
    target counter2
    sets timer to 10 minutes
    <b>counter2</b> (game_counter)
    target door2

    <b><u>close1</b> (multi manager) (uh. oh everyone f4ed before door1 opened. we must cancel the countdown when the next game starts.)</u>
    0.001 hovar1 (makes counter1 (reset below) aim at something that does not exist)
    0.002 reset1 (this and the above resets the timer without firing) <--------- <!--emo&:0--><img src='http://www.unknownworlds.com/forums/html/emoticons/wow.gif' border='0' style='vertical-align:middle' alt='wow.gif'><!--endemo--> <!--emo&:0--><img src='http://www.unknownworlds.com/forums/html/emoticons/wow.gif' border='0' style='vertical-align:middle' alt='wow.gif'><!--endemo--> <!--emo&:0--><img src='http://www.unknownworlds.com/forums/html/emoticons/wow.gif' border='0' style='vertical-align:middle' alt='wow.gif'><!--endemo-->
    0.113 flapping1 (makes counter1 aim at open2 again , must be more than 0.1 seconds later !!!)
    0.114 vines (sets the aim of inittoggle to open1 again , new game ready)
    0.115 inittoggle (starts the game)
    <b>hovar1</b> (trigger_changetarget)
    aims at counter1
    changes target to scorpian
    <b>flapping1</b> (trigger_changetarget)
    aims at counter1
    changes target to open2
    <b>reset1</b> (game_counter_set)
    - has as target the door1 and sets the timer to 0.1 seconds

    <b><u>close2</b> (multi manager) (uh. oh everyone f4ed before door2 opened. we must cancel the countdown and close door1 when the next game starts)</u>
    0.001 door1 (should be open now, must be closed) <!--emo&:0--><img src='http://www.unknownworlds.com/forums/html/emoticons/wow.gif' border='0' style='vertical-align:middle' alt='wow.gif'><!--endemo-->
    0.002 hovar2 (makes counter2(reset below) aim at something that does not exist)
    0.003 reset1 (this and the above resets the timer without firing) <--------- <!--emo&:0--><img src='http://www.unknownworlds.com/forums/html/emoticons/wow.gif' border='0' style='vertical-align:middle' alt='wow.gif'><!--endemo--> <!--emo&:0--><img src='http://www.unknownworlds.com/forums/html/emoticons/wow.gif' border='0' style='vertical-align:middle' alt='wow.gif'><!--endemo--> <!--emo&:0--><img src='http://www.unknownworlds.com/forums/html/emoticons/wow.gif' border='0' style='vertical-align:middle' alt='wow.gif'><!--endemo-->
    0.114 flapping2 (makes counter2 aim at door2 again, must be more than 0.1 seconds later !!!)
    0.115 vines (sets the aim of inittoggle to open1 again, new game ready)
    0.116 inittoggle (starts the game)
    <b>hovar2</b> (trigger_changetarget)
    aims at counter2
    changes target to scorpian
    <b>flapping2</b> (trigger_changetarget)
    aims at counter2
    changes target to door2
    <b>reset2</b> (game_counter_set)
    - has as target the door2 and sets the timer to 0.1 seconds

    <b><u>close3</b> (both doors are open. next time the game starts we better close them at first)</u>
    0.001 door1 (closes door 1)
    0.002 door2 (closes door2)
    0.003 vines (sets the aim of inittoggle to open1 again, new game ready)
    0.004 inittoggle (starts the game)

    <b>door2</b> (trigger_changetarget)
    aims at inittoggle
    sets target to close3

    <b>vines</b> (trigger_changetarget)
    aims at inittoggle
    changes target to open1

    <u><b>Both doors</u></b>
    are toggling doors with reset deelay -1 (unlimited).
    They need to open/close faster than 5 seconds (the time that "reset1/2 sets the timer to) or the door gets out of sync on rapid f4ing.

    <b>check the edit time i might still look and etit</b>
Sign In or Register to comment.