Ainz Ooal Gown Posted April 6, 2019 Share Posted April 6, 2019 Description: This is basically a fancy lift system that displays doors opening and closing then warping a player. This system can be copied and paste / used many times, as you will only need to change the "Warp" points in "Lift Up" (lift 1) and "Lift Down" (lift 2). Video: https://ascensiongamedev.com/resources/filehost/a58c6c76386b9421958fa3337aba5509.mp4 Process: A player can walk up to a lift, press action button press to call the lift. Lift doors will then open allowing the player to enter the lift. Lift doors will then close. Player is then warped to another lift located anywhere in your world. Doors to lift open ejecting the player, then closing again. Issue: Only one I found so far, when triggered all lifts in game visually change for the Player ONLY. This isn't a big issue, as the player wont see any of the other lifts. Build: First we need to make a player variable to hold the lift stage process, so create a new player variable and call it "Player Lift". Second we create a Player Lift Switch for a On/Off condition we use later. Player Variable: Player Lift Player Switch: Lift Now we need a start and finish point for the lift. This can be on the same map or anywhere in your world, as well as this system can be replicated (used) many times. (Tiles are not included in tutorial, sorry) Setting the map tiles for lift: Spoiler Here I have put the lift right next to each other. But as you can see you need to have it so the doors are closed. NOTE: “Ele Reset” is not needed, I used it during testing to reset the player lift variable. Next we make a map event. This will be the "Lift Up" event (we will make the second lift later based on the first one). Spoiler Place the map event at the base of the lift: Each event page uses the "Player Lift" variable we created earlier, which allows the page to run if the condition is met: Spoiler This will be the condition of page 1 and ever page on from this will be "Player Lift is equal to +1". So page 1 "Player Lift" var will be 0, page 2 "Player Lift" will be 1 and so on. This event has 17 pages, but most of them are only stages for the doors to open and close. We use the "Player Lift"variable to also set what stage of the lift process we are currently on: Page 1: Spoiler Page 1 "Trigger" will be set as "Action Button", as we want to player to call the lift through an action. Pages 2 - 5: Spoiler Each page has entity preview set to the doors opening. Page 2 to 5 "Triggers" are "Autorun": Page 5 is different as now the doors to the lift are fully open. So we want the "Trigger" to be set to "Player Touch" so that when the player steps into the lift the process continues. NOTE: If the player does not trigger page 6 by walking into the lift, the lift doors for every lift event in your game will stay open. To get around this you can create a "Common Event" to check this: Spoiler What is happening here is the following: If "Player Lift" variable = 5 then Wait 30 seconds If after 30 seconds "Player Lift" is still set to 5 then set "Player Lift" variable to 14 (this is the end stage of lift system which closes the lift doors) Page 6: Spoiler Page 6 is where the action starts. The "Trigger" Process for the page is "Player Touch", so only triggers when a player walks onto the event (enters lift). When this happens the users control of his character is locked out until the lift process finishes. NOTE: This page is "Passable" to allow the player to touch the event and move through it. All previous stages are NOT passable. This page is also different as we have a new command, to move the player: Now we have the player in the lift we want to close the doors, pages 7 - 9: Spoiler Page 10 we now warp the player to the second lift event, but we make the warp point 2 spaces above the event and make the player face down, as well as have a condition on the "Player Lift" Switch: Spoiler Here is where the "Player Switch Lift" comes into action. We use a condition for this bit: NOTE: We don't set a entity preview, as the map tiles should be the lift doors closed. Warp point: Pages 11 - 13 doors open in second lift: Spoiler In each one of these pages we "Set Move Route for Player". Now we don't actually move the player but hold them so he cant move in lift, so we set a "Wait" for 1000ms (1 second): Spoiler Page 14: Spoiler This is when we want the player to exit the lift so we "Set Move Route for Player" to "Move Down" three times: Spoiler NOTE: Page 14 is set to "Passable" to allow the player to walk out of the lift: Pages 15 - 17: Spoiler Now we want the lift doors to close: Awesome! If you have got this far then I have to tell you we have another 17 pages to go... I joke! Now we have the "Lift Up" or (Lift 1) complete we can use it as a template for "Lift Down" (Lift 2). So Save the event the copy and paste the event to the place you want the second end of the lift you want to be! Once you have pasted the lift we have to change a few things: Set the "Warp" point on page 10 to "Lift Up" (Lift 1) position but 2 spaces above, like so: Spoiler We need to change the Player Switch "Lift": Spoiler Page 1, we change the "Player Switch Lift" = True Page 10, we also change the condition "Player Switch Lift" = False Complete! Now you should have a fully working Lift System! You can copy and paste the lift as many times as you want, and you just need to set the "Warp" points! Event system is very powerful and with it you can accomplish many features the core engine does not have Enjoy! Kibbelz, Xeno, buu and 2 others 4 1 Link to comment Share on other sites More sharing options...
Sweet Candy Posted April 6, 2019 Share Posted April 6, 2019 Many thanks ~ ♥ And great job with this system (✿◠‿◠) Link to comment Share on other sites More sharing options...
Ainz Ooal Gown Posted April 6, 2019 Author Share Posted April 6, 2019 Just now, A l m a said: Many thanks ~ ♥ And great job with this system (✿◠‿◠) Haha thanks Took some doing to make sure I covered everything. Lol Hoping it will inspire people to use the power of the event system, as can add many features to your game using it! Link to comment Share on other sites More sharing options...
Kibbelz Posted April 6, 2019 Share Posted April 6, 2019 I personally would make the lift more like pokemon where you go to a seperate map and leave the map and arive at your floor destination. You can even select your floor using a multi select dialogue. Good tutorial and interesting use of the event editor though! Link to comment Share on other sites More sharing options...
Ainz Ooal Gown Posted April 6, 2019 Author Share Posted April 6, 2019 8 minutes ago, Kibbelz said: I personally would make the lift more like pokemon where you go to a seperate map and leave the map and arive at your floor destination. You can even select your floor using a multi select dialogue. Good tutorial and interesting use of the event editor though! Thats a good idea, could be done by adding a option set to pick the floor. Why I did it based on a variable to set the lift process so it can be be extended. Would also need to change the Player Switch Lift to a variable for the defined floors I think. Might add an extention to the tutorial with that Kibbelz, thanks Kibbelz 1 Link to comment Share on other sites More sharing options...
Little Pixel Posted April 6, 2019 Share Posted April 6, 2019 would this work with the interaction of multple players though trying to use at the same time ? Link to comment Share on other sites More sharing options...
Ainz Ooal Gown Posted April 6, 2019 Author Share Posted April 6, 2019 5 minutes ago, Little Pixel said: would this work with the interaction of multple players though trying to use at the same time ? I’ve not tested it with multiple players, but in theory it should work with no issues. If you have the map as a safe zone then the players can move through eachover so can call the lift at the same time and interact with event at same time. If not a safe zone then players can’t walk through each over so have to wait in line for player in front to enter lift event... if that makes sense lol I will do some testing and let you know Link to comment Share on other sites More sharing options...
Little Pixel Posted April 6, 2019 Share Posted April 6, 2019 2 minutes ago, Ainz Ooal Gown said: I’ve not tested it with multiple players, but in theory it should work with no issues. If you have the map as a safe zone then the players can move through eachover so can call the lift at the same time and interact with event at same time. If not a safe zone then players can’t walk through each over so have to wait in line for player in front to enter lift event... if that makes sense lol I will do some testing and let you know what about the animation cycles ? Link to comment Share on other sites More sharing options...
Ainz Ooal Gown Posted April 6, 2019 Author Share Posted April 6, 2019 Just now, Little Pixel said: what about the animation cycles ? Hmmm not sure, I believe the animation plays for everyone? I will test this and advise. Kibbelz 1 Link to comment Share on other sites More sharing options...
Little Pixel Posted April 6, 2019 Share Posted April 6, 2019 i only ask because iv been tryig to perfect such a system for my project Link to comment Share on other sites More sharing options...
Ainz Ooal Gown Posted April 6, 2019 Author Share Posted April 6, 2019 8 minutes ago, Little Pixel said: i only ask because iv been tryig to perfect such a system for my project Actually now that I think it will work(visually) for just the individual for animations and whole process, as it is using a "Player" variable and not a "Global". So only the player will see the lift change (doors open/close and such). EDIT: Just tested and works so that only the player using lift see changes (doors open/close) this is because its based on a player variable. If you did global then everyone would see change, but then you would have to have a global variable for each lift you make for the stages/process. Link to comment Share on other sites More sharing options...
jcsnider Posted April 6, 2019 Share Posted April 6, 2019 Looks absolutely fantastic. Only advice I can give is a new animation where the 'down' button lights up on the elevator for just a little more realism Ainz Ooal Gown 1 Link to comment Share on other sites More sharing options...
Ainz Ooal Gown Posted April 7, 2019 Author Share Posted April 7, 2019 6 hours ago, jcsnider said: Looks absolutely fantastic. Only advice I can give is a new animation where the 'down' button lights up on the elevator for just a little more realism Haha thanks buddy! Yeah nice one, I shall add the button display for the down lift today jcsnider 1 Link to comment Share on other sites More sharing options...
Guest Posted April 7, 2019 Share Posted April 7, 2019 Looks great but lifts aren't in the timezone of my game ;-; (or correct me if I'm wrong did they have lifts in 10th century?) Link to comment Share on other sites More sharing options...
Ainz Ooal Gown Posted April 7, 2019 Author Share Posted April 7, 2019 1 hour ago, The Bunny Gamer said: Looks great but lifts aren't in the timezone of my game ;-; (or correct me if I'm wrong did they have lifts in 10th century?) Might of used a pulley system lift haha Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now