Elevator Problems

HG-Bonfire

New Member
Reaction score
22
Ok, so the idea for the map is that there is a 6 by 6 grid of elevators, all set to 3, floating above a pool of water. When the game starts, 9 peasents are spawned randomly on the grid, one for each player, and then 3 random platforms drop into the water every 2.5 seconds. When a platform drops with a unit on it, the unit dies.

The problem is that the trigger has no control. About 1/2 of the time it actually works and the platform drops, the unit dies, and the elevator walls close. The other half, only 1 or 2 of those things happen, so platforms sometimes drop and the unit is still alive, sometimes units die for no reason at all, and sometimes the walls of the elevator close and trap people.

Heres the trigger,

Code:
Platform Drops 2
    Events
    Conditions
        Game Equal to 1
    Actions
        Wait 2.50 seconds
        Set Elevator1 = (Random destructible in Platform Droppers <gen>)
        Set Elevator2 = (Random destructible in Platform Droppers <gen>)
        Set Elevator3 = (Random destructible in Platform Droppers <gen>)
        Region - Center Platform Killer 1 <gen> on (Position of Elevator1)
        Region - Center Plaform Killer 2 <gen> on (Position of Elevator2)
        Region - Center Platform Killer 3 <gen> on (Position of Elevator3)
        Destructible - Close All walls of Elevator1
        Destructible - Close All walls of Elevator2
        Destructible - Close All walls of Elevator3
        Destructible - Set height of Elevator1 to 1
        Destructible - Set height of Elevator2 to 1
        Destructible - Set height of Elevator3 to 1
        Wait 1.00 seconds
        Unit Group - Pick every unit in (Units in Platform Killer 1 <gen>) and do (Unit - Kill (Picked unit))
        Unit Group - Pick every unit in (Units in Plaform Killer 2 <gen>) and do (Unit - Kill (Picked unit))
        Unit Group - Pick every unit in (Units in Platform Killer 3 <gen>) and do (Unit - Kill (Picked unit))
        Trigger - Run (This trigger) (checking conditions)

Any idea why it would be doing this?
 
B

Blackzabbith

Guest
HG-Bonfire said:
Ok, so the idea for the map is that there is a 6 by 6 grid of elevators, all set to 3, floating above a pool of water. When the game starts, 9 peasents are spawned randomly on the grid, one for each player, and then 3 random platforms drop into the water every 2.5 seconds. When a platform drops with a unit on it, the unit dies.

The problem is that the trigger has no control. About 1/2 of the time it actually works and the platform drops, the unit dies, and the elevator walls close. The other half, only 1 or 2 of those things happen, so platforms sometimes drop and the unit is still alive, sometimes units die for no reason at all, and sometimes the walls of the elevator close and trap people.

Heres the trigger,

Code:
Platform Drops 2
    Events
    Conditions
        Game Equal to 1
    Actions
        Wait 2.50 seconds
        Set Elevator1 = (Random destructible in Platform Droppers <gen>)
        Set Elevator2 = (Random destructible in Platform Droppers <gen>)
        Set Elevator3 = (Random destructible in Platform Droppers <gen>)
        Region - Center Platform Killer 1 <gen> on (Position of Elevator1)
        Region - Center Plaform Killer 2 <gen> on (Position of Elevator2)
        Region - Center Platform Killer 3 <gen> on (Position of Elevator3)
        Destructible - Close All walls of Elevator1
        Destructible - Close All walls of Elevator2
        Destructible - Close All walls of Elevator3
        Destructible - Set height of Elevator1 to 1
        Destructible - Set height of Elevator2 to 1
        Destructible - Set height of Elevator3 to 1
        Wait 1.00 seconds
        Unit Group - Pick every unit in (Units in Platform Killer 1 <gen>) and do (Unit - Kill (Picked unit))
        Unit Group - Pick every unit in (Units in Plaform Killer 2 <gen>) and do (Unit - Kill (Picked unit))
        Unit Group - Pick every unit in (Units in Platform Killer 3 <gen>) and do (Unit - Kill (Picked unit))
        Trigger - Run (This trigger) (checking conditions)

Any idea why it would be doing this?
i think its cause of your last trigger and your condition

maybe you should try something like this->
Code:
Untitled Trigger 002
    Events
        Time - Every 2.00 seconds of game time
    Conditions
        (your region contains your peasents 0064 <gen>) Equal to True

For this to work you need to create a region covering the whole area of your elevators.
 

HG-Bonfire

New Member
Reaction score
22
well this setup is part of a bunch of mini games that are activated by a random number, so when this is activated, the number is set to 1, so the conditions are right. If i have it set to every 2 seconds, it could cause the elevators to drop right when it starts, which could unfairly kill one of the spawned peasents
 
B

Blackzabbith

Guest
HG-Bonfire said:
well this setup is part of a bunch of mini games that are activated by a random number, so when this is activated, the number is set to 1, so the conditions are right. If i have it set to every 2 seconds, it could cause the elevators to drop right when it starts, which could unfairly kill one of the spawned peasents

Your trigger ->Conditions
Game Equal to 1
plus ending action-activate this trigger

you have waits in your trigger

your condition is every second

i think your problem is that your telling the trigger to repeat its self before it could finish. ;) which could be causing it to work sometimes and not work sometimes if you had made a an array variable that would of made things alot easier and then use the->
Code:
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    If - Conditions
    Then - Actions
    Else - Actions
action. which you could make loop itself instead of using -> Conditions
Game Equal to 1
ending action-activate this trigger

does this make any sense to you?
 

HG-Bonfire

New Member
Reaction score
22
I tried setting it up like you said, but it didnt fix the problem

Code:
Platform Drops 2
    Events
        Time - Every 6.00 seconds of game time
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Game Equal to 1
            Then - Actions
                Set Elevator1 = (Random destructible in Platform Droppers <gen>)
                Set Elevator2 = (Random destructible in Platform Droppers <gen>)
                Set Elevator3 = (Random destructible in Platform Droppers <gen>)
                Region - Center Platform Killer 1 <gen> on (Position of Elevator1)
                Region - Center Plaform Killer 2 <gen> on (Position of Elevator2)
                Region - Center Platform Killer 3 <gen> on (Position of Elevator3)
                Destructible - Set height of Elevator1 to 1
                Destructible - Set height of Elevator2 to 1
                Destructible - Set height of Elevator3 to 1
                Destructible - Close All walls of Elevator1
                Destructible - Close All walls of Elevator2
                Destructible - Close All walls of Elevator3
                Unit Group - Pick every unit in (Units in Platform Killer 1 <gen>) and do (Unit - Kill (Picked unit))
                Unit Group - Pick every unit in (Units in Plaform Killer 2 <gen>) and do (Unit - Kill (Picked unit))
                Unit Group - Pick every unit in (Units in Platform Killer 3 <gen>) and do (Unit - Kill (Picked unit))
            Else - Actions
                Do nothing

is that what you meant?
 

Ambeco

New Member
Reaction score
2
You dont need the if statement, just move the "game equals 1" back where you had it the first time. Also, are there any other doodads in the area? double check. The trigger itself looks fine, are you sure it doesn't work still?
 

HG-Bonfire

New Member
Reaction score
22
mabye its the other trigger im using to start the game

Code:
Platform Initialization
    Events
        Map initialization
    Conditions
        Game Equal to 1
    Actions
        Camera - Apply Water Platform Start <gen> for Player 1 (Red) over 0.00 seconds
        Camera - Apply Water Platform End <gen> for Player 1 (Red) over 2.00 seconds
        Visibility - Create an initially Enabled visibility modifier for Player 1 (Red) emitting Visibility across Platform Droppers <gen>
        Wait 2.00 seconds
        Camera - Set the camera bounds for Player 1 (Red) to Platform Droppers <gen>
        Destructible - Pick every destructible in Platform Droppers <gen> and do (Destructible - Set height of (Picked destructible) to 3)
        Destructible - Pick every destructible in Platform Droppers <gen> and do (Destructible - Open All walls of (Picked destructible))
        Wait 1.00 seconds
        Player Group - Pick every player in (All players controlled by a User player) and do (Unit - Create 1 Villager (Male) for Player 1 (Red) at (Center of Platform Droppers <gen>) facing Default building facing degrees)
        Trigger - Turn off (This trigger)

basically its just camera movement and placement of the peasents
 
B

Blackzabbith

Guest
just a suggestion but you could post the map.... if you want to..
 

HG-Bonfire

New Member
Reaction score
22
yah i think I can do that, its not even close to done anyways (only got 2 minigames out of the desired 30)

how do I post it?
 
B

Blackzabbith

Guest
you need to accept your e-mail confirmation to officially become a member. then at the bottom theres an additional options screen click manage attachments ;)
 

HG-Bonfire

New Member
Reaction score
22
oh yah, i think I accidentally deleted that cuz it was in the bulk folder

any way to get another email confirmation?
 

HG-Bonfire

New Member
Reaction score
22
k here it is, i removed all of the other minigames and stuff so the platform game is the only one on the map.
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
> anybody figure out why it's not working?

Well...

May the attached map be of some inspiration:
 

Attachments

  • HG-Party vs.1.0.w3x
    21.6 KB · Views: 144

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
> I like the warning system

I absolutely hated that there wasn't one... suddenly, you're dead... :p


That said, for futur reference, the action "Region - Move" has a little help text when selected... I'd suggest to read it once.

And, "random destructible" is to be taken literally. It's random.
And includes, for example, elevator walls...
It also doesn't care much about selecting the same one several times.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • WildTurkey WildTurkey:
    is there a stephen green in the house?
    +1
  • The Helper The Helper:
    What is up WildTurkey?
  • The Helper The Helper:
    Looks like Google fixed whatever mistake that made the recipes on the site go crazy and we are no longer trending towards a recipe site lol - I don't care though because it motivated me to spend alot of time on the site improving it and at least now the content people are looking at is not stupid and embarrassing like it was when I first got back into this like 5 years ago.
  • The Helper The Helper:
    Plus - I have a pretty bad ass recipe collection now! That section of the site is 10 thousand times better than it was before
  • The Helper The Helper:
    We now have a web designer at my job. A legit talented professional! I am going to get him to redesign the site theme. It is time.
  • Varine Varine:
    I got one more day of community service and then I'm free from this nonsense! I polished a cop car today for a funeral or something I guess
  • Varine Varine:
    They also were digging threw old shit at the sheriff's office and I tried to get them to give me the old electronic stuff, but they said no. They can't give it to people because they might use it to impersonate a cop or break into their network or some shit? idk but it was a shame to see them take a whole bunch of radios and shit to get shredded and landfilled
  • The Helper The Helper:
    whatever at least you are free
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top