chunk
comment
-- "--"
comment_content "------------------------------------------------------------"...
comment
-- "--"
comment_content " LUA-Script for MISS205.WLD (mission 6 of the original \"Roma"...
comment
-- "--"
comment
-- " "...
comment_content ""
comment_content ""
comment
-- "--"
comment_content " Authors: CrazyL, Spikeone, ArthurMurray47 "...
comment
-- "--"
comment_content "------------------------------------------------------------"...
comment
-- "--"
comment_content "------------------------------ TODO ------------------------"...
comment
-- "--"
comment_content " EnableNextMissions()"
comment
-- "--"
comment_content " Set Portraits"
comment
-- "--"
comment_content " Set AI Agression Level"
comment
-- "--"
comment_content "------------------------------------------------------------"...
comment
-- "--"
comment_content "------------------------------ Lua Version used ------------"...
function_declaration
function "function"
identifier "getRequiredLuaVersion"
parameters
( "("
) ")"
block
return_statement
return "return"
expression_list
number "1"
end "end"
function_declaration
function "function"
identifier "isMapPreviewEnabled"
parameters
( "("
) ")"
block
return_statement
return "return"
expression_list
false "false"
end "end"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "requiredFeature"
= "="
expression_list
number "5"
function_declaration (+74 nodes collapsed)
comment
-- "--"
comment_content "------------------------------ mission events and texts ----"...
comment
-- "--"
comment_content " Message-Window (mission statement and hints): 52 chars wide"
assignment_statement
variable_list
identifier "eIdx"
= "="
expression_list
table_constructor
{ "{"
field
number "1"
, ","
field
number "2"
, ","
field
number "3"
, ","
field
number "99"
} "}"
function_call (+329 nodes collapsed)
comment
-- "--"
comment_content " format mission texts"
function_declaration (+265 nodes collapsed)
comment
-- "--"
comment_content "------------------------------ general settings ------------"...
function_declaration (+378 nodes collapsed)
function_declaration
function "function"
identifier "getAllowedChanges"
parameters
( "("
) ")"
block
return_statement
return "return"
expression_list
table_constructor
{ "{"
field
[ "["
string
" "\""
string_content "addonsAll"
" "\""
] "]"
= "="
false "false"
, ","
field
[ "["
string
" "\""
string_content "ownNation"
" "\""
] "]"
= "="
false "false"
, ","
field
[ "["
string
" "\""
string_content "ownColor"
" "\""
] "]"
= "="
false "false"
, ","
field
[ "["
string
" "\""
string_content "ownTeam"
" "\""
] "]"
= "="
false "false"
, ","
field
[ "["
string
" "\""
string_content "aiNation"
" "\""
] "]"
= "="
false "false"
, ","
field
[ "["
string
" "\""
string_content "aiColor"
" "\""
] "]"
= "="
false "false"
, ","
field
[ "["
string
" "\""
string_content "aiTeam"
" "\""
] "]"
= "="
false "false"
} "}"
end "end"
comment
-- "--"
comment_content " start callback"
function_declaration (+1264 nodes collapsed)
comment
-- "--"
comment_content " save callback"
function_declaration (+60 nodes collapsed)
comment
-- "--"
comment_content " load callback"
function_declaration (+72 nodes collapsed)
comment
-- "--"
comment_content "------------------------------ set buildings ---------------"...
function_declaration (+30 nodes collapsed)
comment
-- "--"
comment_content "------------------------------ set resources ---------------"...
comment
-- "--"
comment_content " Don't add goods/people onLoad!"
function_declaration (+1497 nodes collapsed)
comment
-- "--"
comment_content "------------------------------ mission events --------------"...
function_declaration (+89 nodes collapsed)
function_declaration (+72 nodes collapsed)
comment
-- "--"
comment_content " execute mission events, e == 1 is initial event, e == 99 is"...
function_declaration (+192 nodes collapsed)