1
2map.file = "millionaire.sve"
3
4scenario.short_description = "Millionaire"
5scenario.author = "prissi (scripting by Dwachs)"
6scenario.version = "0.1"
7
8function get_rule_text(pl)
9{
10	return ttext("No limits.")
11}
12
13function get_goal_text(pl)
14{
15	return ttext("Become millionaire as fast as possible.")
16}
17
18function get_info_text(pl)
19{
20	return ttext("You started a small transport company to become rich. Your grandparents did not have a glue, where all their money flows into.")
21}
22
23function get_result_text(pl)
24{
25	local cash = get_cash(pl)
26
27	local text = ttext("Your bank account is worth {tcash}.")
28	text.tcash = cash
29
30	local text2 = ""
31	if ( cash >= 1000000 )
32		text2 = ttext("<it>Congratulation!</it><br> <br> You won the scenario!")
33	else
34		text2 = ttext("You still have to work a little bit harder.")
35
36	return text + "<br> <br>" + text2
37}
38
39function get_cash(pl)
40{
41	return player_x(pl).cash[0]
42}
43
44function is_scenario_completed(pl)
45{
46	return  get_cash(pl) / 10000
47}
48