Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add lua files for continent campaign
- Loading branch information
Showing
10 changed files
with
604 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
------------------------------------------------------------------------------ | ||
-- LUA-Script for AFRICA.WLD (mission of the original "Continent Campaign") -- | ||
-- -- | ||
-- Author: Michael Ott (v1.0) -- | ||
------------------------------------------------------------------------------ | ||
|
||
|
||
-------------------------------- TODO ----------------------------------------- | ||
-- EnableNextMissions() | ||
-- Set Portraits | ||
-- Set AI Agression Level | ||
------------------------------------------------------------------------------- | ||
|
||
|
||
-------------------------------- Lua Version used ----------------------------- | ||
function getRequiredLuaVersion() | ||
return 1 | ||
end | ||
|
||
function isMapPreviewEnabled() | ||
return false; | ||
end | ||
|
||
-------------------------------- general settings ----------------------------- | ||
function onSettingsReady() | ||
rttr:Log("-----------------------\n AFRICA.lua loaded... \n-----------------------\n") | ||
rttr:ResetAddons() | ||
rttr:SetAddon(ADDON_FRONTIER_DISTANCE_REACHABLE, true) | ||
rttr:SetGameSettings({ | ||
["fow"] = EXP_CLASSIC, | ||
["teamView"] = false, | ||
["lockedTeams"] = false, | ||
["objective"] = GO_TOTALDOMINATION | ||
}) | ||
|
||
rttr:GetPlayer(0):SetNation(NAT_ROMANS) | ||
rttr:GetPlayer(0):SetColor(0) | ||
|
||
rttr:GetPlayer(1):SetAI(3) | ||
rttr:GetPlayer(1):SetNation(NAT_AFRICANS) | ||
rttr:GetPlayer(1):SetColor(1) | ||
rttr:GetPlayer(1):SetName('Shaka') | ||
rttr:GetPlayer(1):SetTeam(TM_TEAM1) | ||
|
||
rttr:GetPlayer(2):SetAI(3) | ||
rttr:GetPlayer(2):SetNation(NAT_AFRICANS) | ||
rttr:GetPlayer(2):SetColor(2) | ||
rttr:GetPlayer(2):SetName('Todo') | ||
rttr:GetPlayer(2):SetTeam(TM_TEAM1) | ||
|
||
rttr:GetPlayer(3):SetAI(3) | ||
rttr:GetPlayer(3):SetNation(NAT_AFRICANS) | ||
rttr:GetPlayer(3):SetColor(3) | ||
rttr:GetPlayer(3):SetName('Mnga Tscha') | ||
rttr:GetPlayer(3):SetTeam(TM_TEAM1) | ||
end | ||
|
||
function getAllowedChanges() | ||
return { | ||
["addonsAll"] = false, | ||
["ownNation"] = false, | ||
["ownColor"] = false, | ||
["ownTeam"] = false, | ||
["aiNation"] = false, | ||
["aiColor"] = false, | ||
["aiTeam"] = false | ||
} | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
------------------------------------------------------------------------------ | ||
-- LUA-Script for AUSTRA.WLD (mission of the original "Continent Campaign") -- | ||
-- -- | ||
-- Author: Michael Ott (v1.0) -- | ||
------------------------------------------------------------------------------ | ||
|
||
|
||
-------------------------------- TODO ----------------------------------------- | ||
-- EnableNextMissions() | ||
-- Set Portraits | ||
-- Set AI Agression Level | ||
------------------------------------------------------------------------------- | ||
|
||
|
||
-------------------------------- Lua Version used ----------------------------- | ||
function getRequiredLuaVersion() | ||
return 1 | ||
end | ||
|
||
function isMapPreviewEnabled() | ||
return false; | ||
end | ||
|
||
-------------------------------- general settings ----------------------------- | ||
function onSettingsReady() | ||
rttr:Log("-----------------------\n AUSTRA.lua loaded... \n-----------------------\n") | ||
rttr:ResetAddons() | ||
rttr:SetAddon(ADDON_FRONTIER_DISTANCE_REACHABLE, true) | ||
rttr:SetGameSettings({ | ||
["fow"] = EXP_CLASSIC, | ||
["teamView"] = false, | ||
["lockedTeams"] = false, | ||
["objective"] = GO_TOTALDOMINATION | ||
}) | ||
|
||
rttr:GetPlayer(0):SetNation(NAT_ROMANS) | ||
rttr:GetPlayer(0):SetColor(0) | ||
|
||
rttr:GetPlayer(1):SetAI(3) | ||
rttr:GetPlayer(1):SetNation(NAT_AFRICANS) | ||
rttr:GetPlayer(1):SetColor(1) | ||
rttr:GetPlayer(1):SetName('Todo') | ||
rttr:GetPlayer(1):SetTeam(TM_TEAM1) | ||
end | ||
|
||
function getAllowedChanges() | ||
return { | ||
["addonsAll"] = false, | ||
["ownNation"] = false, | ||
["ownColor"] = false, | ||
["ownTeam"] = false, | ||
["aiNation"] = false, | ||
["aiColor"] = false, | ||
["aiTeam"] = false | ||
} | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
------------------------------------------------------------------------------ | ||
-- LUA-Script for EUROPE.WLD (mission of the original "Continent Campaign") -- | ||
-- -- | ||
-- Author: Michael Ott (v1.0) -- | ||
------------------------------------------------------------------------------ | ||
|
||
|
||
-------------------------------- TODO ----------------------------------------- | ||
-- EnableNextMissions() | ||
-- Set Portraits | ||
-- Set AI Agression Level | ||
------------------------------------------------------------------------------- | ||
|
||
|
||
-------------------------------- Lua Version used ----------------------------- | ||
function getRequiredLuaVersion() | ||
return 1 | ||
end | ||
|
||
function isMapPreviewEnabled() | ||
return false; | ||
end | ||
|
||
-------------------------------- general settings ----------------------------- | ||
function onSettingsReady() | ||
rttr:Log("-----------------------\n EUROPE.lua loaded... \n-----------------------\n") | ||
rttr:ResetAddons() | ||
rttr:SetAddon(ADDON_FRONTIER_DISTANCE_REACHABLE, true) | ||
rttr:SetGameSettings({ | ||
["fow"] = EXP_CLASSIC, | ||
["teamView"] = false, | ||
["lockedTeams"] = false, | ||
["objective"] = GO_TOTALDOMINATION | ||
}) | ||
|
||
rttr:GetPlayer(0):SetNation(NAT_ROMANS) | ||
rttr:GetPlayer(0):SetColor(0) | ||
|
||
rttr:GetPlayer(1):SetAI(3) | ||
rttr:GetPlayer(1):SetNation(NAT_VIKINGS) | ||
rttr:GetPlayer(1):SetColor(1) | ||
rttr:GetPlayer(1):SetName('Knut') | ||
rttr:GetPlayer(1):SetTeam(TM_TEAM1) | ||
|
||
rttr:GetPlayer(2):SetAI(3) | ||
rttr:GetPlayer(2):SetNation(NAT_VIKINGS) | ||
rttr:GetPlayer(2):SetColor(2) | ||
rttr:GetPlayer(2):SetName('Olof') | ||
rttr:GetPlayer(2):SetTeam(TM_TEAM1) | ||
|
||
rttr:GetPlayer(3):SetAI(3) | ||
rttr:GetPlayer(3):SetNation(NAT_ROMANS) | ||
rttr:GetPlayer(3):SetColor(3) | ||
rttr:GetPlayer(3):SetName('Brutus') | ||
rttr:GetPlayer(3):SetTeam(TM_TEAM1) | ||
|
||
rttr:GetPlayer(4):SetAI(3) | ||
rttr:GetPlayer(4):SetNation(NAT_ROMANS) | ||
rttr:GetPlayer(4):SetColor(4) | ||
rttr:GetPlayer(4):SetName('Julius') | ||
rttr:GetPlayer(4):SetTeam(TM_TEAM1) | ||
|
||
rttr:GetPlayer(5):SetAI(3) | ||
rttr:GetPlayer(5):SetNation(NAT_VIKINGS) | ||
rttr:GetPlayer(5):SetColor(5) | ||
rttr:GetPlayer(5):SetName('Erik') | ||
rttr:GetPlayer(5):SetTeam(TM_TEAM1) | ||
end | ||
|
||
function getAllowedChanges() | ||
return { | ||
["addonsAll"] = false, | ||
["ownNation"] = false, | ||
["ownColor"] = false, | ||
["ownTeam"] = false, | ||
["aiNation"] = false, | ||
["aiColor"] = false, | ||
["aiTeam"] = false | ||
} | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
------------------------------------------------------------------------------ | ||
-- LUA-Script for GREEN.WLD (mission of the original "Continent Campaign") -- | ||
-- -- | ||
-- Author: Michael Ott (v1.0) -- | ||
------------------------------------------------------------------------------ | ||
|
||
|
||
-------------------------------- TODO ----------------------------------------- | ||
-- EnableNextMissions() | ||
-- Set Portraits | ||
-- Set AI Agression Level | ||
------------------------------------------------------------------------------- | ||
|
||
|
||
-------------------------------- Lua Version used ----------------------------- | ||
function getRequiredLuaVersion() | ||
return 1 | ||
end | ||
|
||
function isMapPreviewEnabled() | ||
return false; | ||
end | ||
|
||
-------------------------------- general settings ----------------------------- | ||
function onSettingsReady() | ||
rttr:Log("-----------------------\n GREEN.lua loaded... \n-----------------------\n") | ||
rttr:ResetAddons() | ||
rttr:SetAddon(ADDON_FRONTIER_DISTANCE_REACHABLE, true) | ||
rttr:SetGameSettings({ | ||
["fow"] = EXP_CLASSIC, | ||
["teamView"] = false, | ||
["lockedTeams"] = false, | ||
["objective"] = GO_TOTALDOMINATION | ||
}) | ||
|
||
rttr:GetPlayer(0):SetNation(NAT_ROMANS) -- nation | ||
rttr:GetPlayer(0):SetColor(0) -- blue | ||
|
||
rttr:GetPlayer(1):SetAI(3) -- hard AI | ||
rttr:GetPlayer(1):SetNation(NAT_VIKINGS) -- nation | ||
rttr:GetPlayer(1):SetColor(1) -- yellow | ||
rttr:GetPlayer(1):SetName('Olof') -- Enemy Name | ||
rttr:GetPlayer(1):SetTeam(TM_TEAM1) | ||
end | ||
|
||
function getAllowedChanges() | ||
return { | ||
["addonsAll"] = false, | ||
["ownNation"] = false, | ||
["ownColor"] = false, | ||
["ownTeam"] = false, | ||
["aiNation"] = false, | ||
["aiColor"] = false, | ||
["aiTeam"] = false | ||
} | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
------------------------------------------------------------------------------ | ||
-- LUA-Script for JAPAN.WLD (mission of the original "Continent Campaign") -- | ||
-- -- | ||
-- Author: Michael Ott (v1.0) -- | ||
------------------------------------------------------------------------------ | ||
|
||
|
||
-------------------------------- TODO ----------------------------------------- | ||
-- EnableNextMissions() | ||
-- Set Portraits | ||
-- Set AI Agression Level | ||
------------------------------------------------------------------------------- | ||
|
||
|
||
-------------------------------- Lua Version used ----------------------------- | ||
function getRequiredLuaVersion() | ||
return 1 | ||
end | ||
|
||
function isMapPreviewEnabled() | ||
return false; | ||
end | ||
|
||
-------------------------------- general settings ----------------------------- | ||
function onSettingsReady() | ||
rttr:Log("-----------------------\n JAPAN.lua loaded... \n-----------------------\n") | ||
rttr:ResetAddons() | ||
rttr:SetAddon(ADDON_FRONTIER_DISTANCE_REACHABLE, true) | ||
rttr:SetGameSettings({ | ||
["fow"] = EXP_CLASSIC, | ||
["teamView"] = false, | ||
["lockedTeams"] = false, | ||
["objective"] = GO_TOTALDOMINATION | ||
}) | ||
|
||
rttr:GetPlayer(0):SetNation(NAT_ROMANS) | ||
rttr:GetPlayer(0):SetColor(0) | ||
|
||
rttr:GetPlayer(1):SetAI(3) | ||
rttr:GetPlayer(1):SetNation(NAT_JAPANESE) | ||
rttr:GetPlayer(1):SetColor(1) | ||
rttr:GetPlayer(1):SetName('Tsunami') | ||
rttr:GetPlayer(1):SetTeam(TM_TEAM1) | ||
end | ||
|
||
function getAllowedChanges() | ||
return { | ||
["addonsAll"] = false, | ||
["ownNation"] = false, | ||
["ownColor"] = false, | ||
["ownTeam"] = false, | ||
["aiNation"] = false, | ||
["aiColor"] = false, | ||
["aiTeam"] = false | ||
} | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
-------------------------------------------------------------------------------- | ||
-- LUA-Script for NAMERICA.WLD (mission of the original "Continent Campaign") -- | ||
-- -- | ||
-- Author: Michael Ott (v1.0) -- | ||
-------------------------------------------------------------------------------- | ||
|
||
|
||
-------------------------------- TODO ----------------------------------------- | ||
-- EnableNextMissions() | ||
-- Set Portraits | ||
-- Set AI Agression Level | ||
------------------------------------------------------------------------------- | ||
|
||
|
||
-------------------------------- Lua Version used ----------------------------- | ||
function getRequiredLuaVersion() | ||
return 1 | ||
end | ||
|
||
function isMapPreviewEnabled() | ||
return false; | ||
end | ||
|
||
-------------------------------- general settings ----------------------------- | ||
function onSettingsReady() | ||
rttr:Log("-----------------------\n NAMERICA.lua loaded... \n-----------------------\n") | ||
rttr:ResetAddons() | ||
rttr:SetAddon(ADDON_FRONTIER_DISTANCE_REACHABLE, true) | ||
rttr:SetGameSettings({ | ||
["fow"] = EXP_CLASSIC, | ||
["teamView"] = false, | ||
["lockedTeams"] = false, | ||
["objective"] = GO_TOTALDOMINATION | ||
}) | ||
|
||
rttr:GetPlayer(0):SetNation(NAT_ROMANS) | ||
rttr:GetPlayer(0):SetColor(0) | ||
|
||
rttr:GetPlayer(1):SetAI(3) | ||
rttr:GetPlayer(1):SetNation(NAT_VIKINGS) | ||
rttr:GetPlayer(1):SetColor(1) | ||
rttr:GetPlayer(1):SetName('Knut') | ||
rttr:GetPlayer(1):SetTeam(TM_TEAM1) | ||
|
||
rttr:GetPlayer(2):SetAI(3) | ||
rttr:GetPlayer(2):SetNation(NAT_VIKINGS) | ||
rttr:GetPlayer(2):SetColor(2) | ||
rttr:GetPlayer(2):SetName('Olof') | ||
rttr:GetPlayer(2):SetTeam(TM_TEAM1) | ||
end | ||
|
||
function getAllowedChanges() | ||
return { | ||
["addonsAll"] = false, | ||
["ownNation"] = false, | ||
["ownColor"] = false, | ||
["ownTeam"] = false, | ||
["aiNation"] = false, | ||
["aiColor"] = false, | ||
["aiTeam"] = false | ||
} | ||
end |
Oops, something went wrong.