Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Wed May 22, 2013 9:04 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Wed May 30, 2012 10:33 pm 
Offline
OpenTTD Developer
OpenTTD Developer
User avatar

Joined: Mon Jun 09, 2003 6:21 pm
Posts: 3986
Location: /home/sweden
So far I'm unaware of any scenario on bananas that use a game script other than the basic tutorial. Perhaps one of the problems is that scenario authors and Game Script authors tend to not be the same group of people? The Game Script authors are perhaps clever enough to write what they want generic enough that it works on any map and doesn't need a scenario.

So, perhaps if *someone* makes a Game Script that allows some simple dynamics to be added to scenarios by binding the scenario to this Scenario toolbox GS and configure it to execute some actions at given dates.

For example if a scenario author put the sign "Ind 2, 1978" at a tile in the scenario editor, that could be a message to the Scenario toolbox GS to build industry type 2 at this tile in 1978. There could be a additional flag to tell what logic it will employ if the tile is occupied at 1978. Of course the GS will remove all these command signs at the start up of a new game.

As I have not been into thinking about what scenarios to make, my ideas are probably limited to a subset of what is possible and is useful to scenario authors. It may not just be limited to building a specific industry at some location a given year. There could be lots of other things.


What do you think about these ideas? Would you use a GS like this for your scenario if it was available? Are there any fundamental things that you would like to be able to declare to the GS to do. Or is it just a useless idea? :-) Let me last add that I'm not sure that I will invest the time to create something like this. The idea just came by my mind. :-)

_________________
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)


Top
 Profile  
 
PostPosted: Thu May 31, 2012 10:36 am 
Offline
OpenTTD Developer
OpenTTD Developer

Joined: Sun Sep 09, 2007 5:03 am
Posts: 2454
Location: home
I like the idea, using signs makes the actual GS script independent from the scenario, which means the script can be re-used and improved as needed.
It also lowers the barrier of doing this kind of stuff significantly imho. Many people don't know how to program, but can make a scenario.

As for use of GS in a scenario, you probably want some form of randomization in industry creation (ie "somewhere between 1960 and 1995 make an industry here").
Other things that you may want to do are 'assignments', have a user need to 'transport x from A to B' (this may already be possible, I don't know all the details of what you can do with GS). Like industry creation, it should be randomized, so people don't start laying tracks between A and B, knowing that the game will ask for it :p


Top
 Profile  
 
PostPosted: Mon Jun 04, 2012 6:34 am 
Offline
Traffic Manager
Traffic Manager

Joined: Thu Jun 29, 2006 8:36 am
Posts: 160
I actually tried to make such a GS a while ago, but gave up as you can not do scenario stuff like place rocky tiles and found towns. Also, some actions had to be done in company mode so you would first have to get money for the script to work. Or it could very well be that I am just bad at writing GS and missed some parts of the API.
But I'm still interested in such functionality.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Powered by phpBB © 2000-2013 phpBB Group

Copyright © Owen Rudge/The Transport Tycoon Forums 2001-2013.
Hosted by Zernebok Hosting.