GiraffeMan3125 Posted April 29, 2020 Posted April 29, 2020 I really want to make a plugin for OpenRCT2 and I'm new to JS. How do I get the all the rides in the park, get the prices of the rides, and how would I change the ride price? Please help me.
Elec11 Posted October 13, 2021 Posted October 13, 2021 I might be almost a year late to answer however, this could still be usefull to others. you can loop through all the rides with a simple for loop: Quote //This loops through all rides for (var i = 0; i < Object.keys(map.rides).length; i++) { console.log(map.rides[i]); //List all ride details/attributes for the current ride map.rides[i].price = [100]; //This will change the price to 10.00 for the current ride } map.rides[ride number]; includes all the details you need. map.rides[i].price = [number]; sets the price to whatever you want. I have included a file so you can take a look around. map,rides[1] Output.txt 1
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