Jump to content

Elec11

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by Elec11

  1. 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

    • Useful 1
  2. Hi all,


    I'm currently messing around with the OpenRCT2 Plugin/scripting system.
    I would like to update values in my window based on hooks, for example more precise financial information.
    Currently I'm closing and opening the window every ingame day, however it's slow and the window opening noise gets old really quick.
    If any of you know how to get an updatable value inside of the window, please share your ideas!


    Thanks in advance.

×
×
  • Create New...