| Line 190: |
Line 190: |
| | | | |
| | == Scenarios == | | == Scenarios == |
| − | Nothing here yet
| + | Scenarios can define the start conditions, goals and events in-game. |
| | + | A scenario type XML file should contain the following tags: |
| | | | |
| | + | {|class="wikitable" |
| | + | |Scenario |
| | + | |This is the root tag, which all tags should be a child to. |
| | + | |- |
| | + | |Money |
| | + | |The available amount of money at the game start. Easy defined like this: |
| | + | |<pre><Amount>1000</Amount></pre> |
| | + | |- |
| | + | |Goals |
| | + | |Goals define the "win" condition/s. You define goals by putting first the needed Money and then the date when the money has to be reached in. You have to do it like this: |
| | + | |<pre><Goal>Money 200000,Date 6-1980</Goal></pre> or <pre><Goal>Money 2000000,Date 4-1988</Goal></pre> |
| | + | |- |
| | + | |Years |
| | + | |The available start years at the start of a new game. E.g.: |
| | + | |<pre><Year>1976</Year></pre> |
| | + | |- |
| | + | |Events |
| | + | |Events are differently made XML Files in the "Events" Folder. View Events for more info (currently no info there). E.g.: |
| | + | |<pre><Event>Test</Event></pre> // Replace "Test" with the name of your XML File |
| | + | |- |
| | + | |Simulation |
| | + | |Nothing here yet, sorry |
| | + | |- |
| | + | |} |
| | + | Example of a "scenario" file: |
| | + | |
| | + | <pre><Scenario> |
| | + | <Name>Test scenario</Name> |
| | + | <Money> |
| | + | <Amount>500</Amount> |
| | + | <Amount>1000</Amount> |
| | + | </Money> |
| | + | <Goals> |
| | + | <Goal>Money 1337,Date 5-1995</Goal> |
| | + | <Goal>Money 1000000,Date 5-2012</Goal> |
| | + | </Goals> |
| | + | <Years> |
| | + | <Year>1980</Year> |
| | + | <Year>1985</Year> |
| | + | <Year>2023</Year> |
| | + | </Years> |
| | + | <Events> |
| | + | <Event>Test</Event> |
| | + | </Events> |
| | + | <Simulation>TRUE</Simulation> |
| | + | </Scenario></pre> |
| | + | |
| | === Events === | | === Events === |
| | Nothing here yet | | Nothing here yet |