Can AI detect savegame name?
Posted: 03 Mar 2010 01:54
Hello,
As the title says can an AI detect if a specific scenario has been loaded?
In the "dream about OpenTTD 2.0" thread the idea came up to create a tutorial AI using a breakpoint.
I am willing to give it a go but I am still learning so things might advance slowly.
As Zuu pointed out to me it is possible to make the AI wait for the removal of a sign before continuing.
I am looking at making a sort of head to head map where the AI shows the basic steps to get to the game going on one side of the map, then the newcomer to OpenTTD can experiment on the other side and remove the breakpoint to get the next lesson. Maybe I could even place multiple breakpoint-signs, something in the lines of: Remove this sign to start lesson 1, remove this sign to start lesson two, ...
As of today, yay for me, I am able to make my AI choose between normal behaviour (road building) and saying this is the tutorial branch depending on the configuration setting but I think it would be cooler if my AI reacted to the name of the scenario that is loaded.
So the question is, is this possible at all?
Another question I have is if it is possible to change the configuration settings ingame?
I tried but the game did not allow me to do so. Maybe I did something wrong?
It would be nice if when the lessons are over to swith to normal behaviour and continue a bit on the same map, this would allow the player to look back on the tutorials while getting used to eg. signal placement.
Thank you in advance for the help.
As the title says can an AI detect if a specific scenario has been loaded?
In the "dream about OpenTTD 2.0" thread the idea came up to create a tutorial AI using a breakpoint.
I am willing to give it a go but I am still learning so things might advance slowly.
As Zuu pointed out to me it is possible to make the AI wait for the removal of a sign before continuing.
I am looking at making a sort of head to head map where the AI shows the basic steps to get to the game going on one side of the map, then the newcomer to OpenTTD can experiment on the other side and remove the breakpoint to get the next lesson. Maybe I could even place multiple breakpoint-signs, something in the lines of: Remove this sign to start lesson 1, remove this sign to start lesson two, ...
As of today, yay for me, I am able to make my AI choose between normal behaviour (road building) and saying this is the tutorial branch depending on the configuration setting but I think it would be cooler if my AI reacted to the name of the scenario that is loaded.
So the question is, is this possible at all?
Another question I have is if it is possible to change the configuration settings ingame?
I tried but the game did not allow me to do so. Maybe I did something wrong?
It would be nice if when the lessons are over to swith to normal behaviour and continue a bit on the same map, this would allow the player to look back on the tutorials while getting used to eg. signal placement.
Thank you in advance for the help.