gate not closing

N

nRage

Guest
Ok, i've been trying to make a gate open and close and when it's destroyed revive itself. So, i got it to open by typing -open and close by typing -close. Then i made this trigger:

Code:
gate revive 1
    Events
        Destructible - Elven Gate (Diagonal 1) 0002 <gen> dies
    Conditions
        (Elven Gate (Diagonal 1) 0002 <gen> is dead) Equal to True
    Actions
        Wait 70.00 seconds
        Destructible - Close Elven Gate (Diagonal 1) 0002 <gen>

With this trigger i had to change the close gate trigger so that the gate has to be alive to be closed, otherwise you can revive the gate by yourself which i don't want:
Code:
close gate 1
    Events
        Player - Player 3 (Teal) types a chat message containing -close as An exact match
        Player - Player 2 (Blue) types a chat message containing -close as An exact match
        Player - Player 1 (Red) types a chat message containing -close as An exact match
    Conditions
        (Elven Gate (Diagonal 1) 0002 <gen> is alive) Equal to True
    Actions
        Destructible - Close Elven Gate (Diagonal 1) 0002 <gen>

the -open to open a gate still works with or without the close and revive ,
Code:
Untitled Trigger 001
    Events
        Player - Player 3 (Teal) types a chat message containing -open as An exact match
        Player - Player 2 (Blue) types a chat message containing -open as An exact match
        Player - Player 1 (Red) types a chat message containing -open as An exact match
    Conditions
        (Elven Gate (Diagonal 1) 0002 <gen> is alive) Equal to True
    Actions
        Destructible - Open Elven Gate (Diagonal 1) 0002 <gen>
My problem is, when you add the condition that the gate must be alive to close, it doesn't close! It only closes when the 70 seconds are up from the revive. Is there a fix to this?
 
Use booleans and such for when you open or close and when the gate is destroyed.

Why? Because Open and Destroyed both consider the gate DEAD. Closing "revives" the gate.
 
NRinpun said:
Use booleans and such for when you open or close and when the gate is destroyed.

Why? Because Open and Destroyed both consider the gate DEAD. Closing "revives" the gate.

please can you explain, i am having the same problem and dont quite understand your meaning
 
I don't get what you mean (my first map, don't really know much). I've made boolean comparrisons in the conditions but i can't figure out what you mean otherwise. Can you please post an example of some sort?
 
Well if you say "open" you should set a boolean variable WasOpened to True. That way, if your gate "dies" and WasOpened is equal to FALSE, you can conclude that your gate was killed by sword. If WasOpened is equal to TRUE when the gate dies, your gate was opened by command. Does this clear things up?
 
Code:
gate revive 1
    Events
        Destructible - Elven Gate (Diagonal 1) 0002 <gen> dies
    Conditions
        WasOpened Equal to False
    Actions
        Wait 70.00 seconds
        Destructible - Close Elven Gate (Diagonal 1) 0002 <gen>

Code:
close gate 1
    Events
        Player - Player 3 (Teal) types a chat message containing -close as An exact match
        Player - Player 2 (Blue) types a chat message containing -close as An exact match
        Player - Player 1 (Red) types a chat message containing -close as An exact match
    Conditions
        (Elven Gate (Diagonal 1) 0002 <gen> is alive) Equal to True
    Actions
        Destructible - Close Elven Gate (Diagonal 1) 0002 <gen>
        Set WasOpened = False

Code:
Untitled Trigger 001
    Events
        Player - Player 3 (Teal) types a chat message containing -open as An exact match
        Player - Player 2 (Blue) types a chat message containing -open as An exact match
        Player - Player 1 (Red) types a chat message containing -open as An exact match
    Conditions
        (Elven Gate (Diagonal 1) 0002 <gen> is alive) Equal to True
    Actions
        Destructible - Open Elven Gate (Diagonal 1) 0002 <gen>
        Set WasOpened = True

Something like this.
 
Oh excuse me, you need to change the conditon of close gate to WasOpened equal to true or something like that. (Wishes he was at his computer and in a more comfortable typing position)
 
Ok, i now understand what you mean, except it's still not working. I went on variables, add new, boolean, set it to true, and then followed where to put them in your example. The variable works because if on the revive, i change it to true instead of false, it doesn't revive. I'd be willing to post the map to anyone willing to help.
 
Just mess with the conditions and the variable setting, that seems to be your issue.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Varine Varine:
    Today I had to scramble, I didn't work most of dinner service and no one told me shit. They had a rough few hours lol
  • Varine Varine:
    I have two salmon, Sockeye and Atlantic. Atlantic is used for the kids salmon and the salmon and beet salad, and can also be added onto any dish or just as a side. Atlantic salmon will almost exclusively ever be FARMED, as it is endangered in the wild, and we ALWAYS cut them to 4 ounces.
  • Varine Varine:
    SOCKEYE salmon, very different and this IS wild caught. We have an ENTREE version, and an add on version. The entree is 7 ounces, the add on is 4. Why? Because that is how someone that wasn't me set up the computer.
  • Varine Varine:
    I had to have this conversation like ten fucking times tonight
  • Varine Varine:
    The issue being, I came into work and had none of this whatsoever
  • Varine Varine:
    No one told me shit
  • Varine Varine:
    So, taking into consideration that what I typed out up there is kind of some fucking nonsense that under normal circumstances no one really needs to fucking be able to explain in any rational way
  • Varine Varine:
    Let alone trying to figure it out from a wildly stressed out me that is also on a phone call trying to get something to show up from Seattle tomorrow while trying to explain this salmon situation, that also is barely solved in maybe a few hours and and but I am bulking it with a few steelhead filets I have and that is a WHOLE fucking different thing to the 19 year old server that got put on day shift C crew that doesn't know who I am.
  • Varine Varine:
    I did however really want days. I like getting off at 4 half the time, and that makes it worth it!
  • Varine Varine:
    Also I hate my job right now but I think that was the hard part. Now it's just work
  • Varine Varine:
    @jonas I'm sorry? I don't know what you're referring to.
  • Varine Varine:
    Once we hit winter I feel like I get to back to having a pretty cool job. Like I bitch about it all the time, but it's work. I'm still gonna bitch
  • Varine Varine:
    All in all though I think this summer is going really well. Some complicated things, but at the end of the day it isn't THAT big of a deal. Not all of our servers have quite realized they are technically sales
  • Varine Varine:
    Like yeah it is a substitute, but FOMO. Chef isn't getting this again this year, he has to figure it out, so it's slightly off on the menu, but that is more or less the LOWEST quality and price. Right now, steelhead is a real stealhear, right?
  • Varine Varine:
    Like fuck off even I can do it
  • Varine Varine:
    I am going to get one of my servers to do that in her server voice and you'll see my point
  • Varine Varine:
    Maybe the bartender. Idk, it's one of my favorite things to hear them go from calm to customer service voice. They will translate it to like "The chef is trying to change that a bit right now so he does have a Alaskan river steelhead. Yeah like the one you might fish probably!" And then the girls can bat their eyes and do pretty girl server shit
  • Varine Varine:
    At least that's how imagine some of them. Did you know mayonnaise is dairy free? A suprisingly amount of people don't\
  • The Helper The Helper:
    mayo is eggs right?
  • The Helper The Helper:
    Seems I never watched the Witcher - looks like i have a lot of content
  • The Helper The Helper:
    Season 1 Episode 8 the marathon continues...
  • jonas jonas:
    mayo is eggs & oil
    +1
  • The Helper The Helper:
    I got halfway season 2 on The Witcher and it lost me. I am going to have to pick this one up again later.
  • jonas jonas:
    season 2 is with the new actor right? it's so far below the first one
  • The Helper The Helper:
    first season was good the 2nd season is bleh I hope I can make it through it for 3

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials
      Top