diff --git a/docs/_static/LuaLib/extra/readme_imgui.md.html b/docs/_static/LuaLib/extra/readme_imgui.md.html
index db768517..76ecd90c 100644
--- a/docs/_static/LuaLib/extra/readme_imgui.md.html
+++ b/docs/_static/LuaLib/extra/readme_imgui.md.html
@@ -274,7 +274,7 @@
Medieval 2: Total War - Engine Overhaul Project Lua Plugi
Welcome to the EOP Lua Plugin Documentation!
Please note that many of the examples require additional checks and not all functions are fully documented. If you need additional help, we welcome you to join the Discord!
-
Last updated: 2024-02-06 06:50:31
+ Last updated: 2024-02-13 19:09:49
diff --git a/docs/_static/LuaLib/index.html b/docs/_static/LuaLib/index.html
index 8dc218fa..e95d5f6d 100644
--- a/docs/_static/LuaLib/index.html
+++ b/docs/_static/LuaLib/index.html
@@ -44,6 +44,10 @@ Data Types
M2TWEOP
M2TWEOP
M2TWEOP.getModPath ()
+ M2TWEOP.toggleConsole ()
+ M2TWEOP.toggleDeveloperMode ()
+ M2TWEOP.reloadScript ()
+ M2TWEOP.restartLua ()
M2TWEOP.saveGame (path)
M2TWEOP.getGameVersion ()
M2TWEOP.setPerfectSpy (set)
@@ -62,6 +66,7 @@ Data Types
M2TWEOP.toggleUnitsBMapHighlight ()
M2TWEOP.getBattleCamCoords ()
M2TWEOP.setReligionsLimit (newLimit)
+ M2TWEOP.setEquipmentCosts (equipmentType, newCost)
M2TWEOP.isTileFree (X, Y)
M2TWEOP.getGameTileCoordsWithCursor ()
M2TWEOP.getTileRegionID (x, y)
@@ -1133,7 +1138,7 @@ Medieval 2: Total War - Engine Overhaul Project Lua Plugi
Welcome to the EOP Lua Plugin Documentation!
Please note that many of the examples require additional checks and not all functions are fully documented. If you need additional help, we welcome you to join the Discord!
-
Last updated: 2024-02-06 06:50:31
+ Last updated: 2024-02-13 19:09:49
@@ -1171,6 +1176,22 @@
Function to return the path to the mod folder, starts from the drive not the game folder. |
+ M2TWEOP.toggleConsole () |
+ Open/close the lua console. |
+
+
+ M2TWEOP.toggleDeveloperMode () |
+ Toggle developer mode. |
+
+
+ M2TWEOP.reloadScript () |
+ Reload the lua script (without restarting the plugin itself, onPluginLoad doesn't fire). |
+
+
+ M2TWEOP.restartLua () |
+ Restart the lua plugin (onPluginLoad fires). |
+
+
M2TWEOP.saveGame (path) |
Save the game. |
@@ -1240,7 +1261,11 @@
M2TWEOP.setReligionsLimit (newLimit) |
- Set the maximum number of religions in the mod (per descr_religions.txt) |
+ Set the maximum number of religions in the mod (per descr_religions.txt). |
+
+
+ M2TWEOP.setEquipmentCosts (equipmentType, newCost) |
+ Set the siege points required to make different siege equipment. |
M2TWEOP.isTileFree (X, Y) |
@@ -3920,6 +3945,30 @@ Fields:
+
+ toggleConsole
+ toggleConsole
+
+
+
+
+ reloadScript
+ reloadScript
+
+
+
+
+ restartLua
+ restartLua
+
+
+
+
+ toggleDeveloperMode
+ toggleDeveloperMode
+
+
+
saveGame
saveGame
@@ -3998,6 +4047,12 @@ Fields:
+
+ setEquipmentCosts
+ setEquipmentCosts
+
+
+
isTileFree
isTileFree
@@ -4127,6 +4182,82 @@ Usage:
print(mPath);
+
+
+
+ M2TWEOP.toggleConsole ()
+
+
+
+ Open/close the lua console.
+
+
+
+
+
+
+ Usage:
+ M2TWEOP.toggleConsole();
+
+
+
+
+
+ M2TWEOP.toggleDeveloperMode ()
+
+
+
+ Toggle developer mode.
+
+
+
+
+
+
+ Usage:
+ M2TWEOP.toggleDeveloperMode();
+
+
+
+
+
+ M2TWEOP.reloadScript ()
+
+
+
+ Reload the lua script (without restarting the plugin itself, onPluginLoad doesn't fire).
+
+
+
+
+
+
+ Usage:
+ M2TWEOP.reloadScript();
+
+
+
+
+
+ M2TWEOP.restartLua ()
+
+
+
+ Restart the lua plugin (onPluginLoad fires).
+
+
+
+
+
+
+ Usage:
+ M2TWEOP.restartLua();
+
+
@@ -4598,7 +4729,7 @@ Usage:
- Set the maximum number of religions in the mod (per descr_religions.txt)
+ Set the maximum number of religions in the mod (per descr_religions.txt). Do not use religions > 10 in CombatVsReligion attributes!
Parameters:
@@ -4617,6 +4748,38 @@ Usage:
M2TWEOP.setReligionsLimit(25);
+
+
+
+ M2TWEOP.setEquipmentCosts (equipmentType, newCost)
+
+
+
+ Set the siege points required to make different siege equipment.
+
+
+ Parameters:
+
+ - equipmentType
+ int
+ 0 = ram, 1 = ladder, 2 = siege tower
+
+ - newCost
+ int
+
+
+
+
+
+
+
+
+
+ Usage:
+ M2TWEOP.setEquipmentCosts(0, 25);
+
+
@@ -6369,7 +6532,7 @@ Fields:
kill
- kill
+ kill
@@ -7395,6 +7558,12 @@ Fields:
+
+ regionID
+ int
+
+
+
isMarkedToKill
int
@@ -7545,7 +7714,7 @@ Fields:
kill
- kill
+ kill
@@ -8413,6 +8582,14 @@ Fields:
+
+ combatVsReligion
+ int[10]
+ Maximum 10. EVEN IF YOU SET RELIGION LIMIT.
+
+ combatVsFaction
+ int[31]
+ Maximum 31.
@@ -9080,12 +9257,6 @@ Fields:
-
- traitPoints
- int
-
-
-
levels
traitLevel[10]
@@ -12014,7 +12185,7 @@ Fields:
getSiege
- getSiege
+ getSiege
@@ -12469,7 +12640,7 @@ Fields:
getSiege
- getSiege
+ getSiege
@@ -13946,6 +14117,12 @@ Fields:
+
+ regionID
+ int
+
+
+
settlement
settlementStruct
@@ -14815,6 +14992,18 @@ Fields:
+
+ siegeTurns
+ integer
+
+
+
+
+ soldierCount
+ integer
+
+
+
@@ -31031,7 +31220,7 @@ Returns:
Usage:
local objective = battleObjective:getType(0)
+ local objective = battleObjective:getType()
@@ -31289,6 +31478,12 @@ Fields:
+
+ battleBuildings
+ battleBuildings
+
+
+
settlementWallsBreached
int
diff --git a/docs/_static/LuaLib/readme_imgui.md.html b/docs/_static/LuaLib/readme_imgui.md.html
index db768517..76ecd90c 100644
--- a/docs/_static/LuaLib/readme_imgui.md.html
+++ b/docs/_static/LuaLib/readme_imgui.md.html
@@ -274,7 +274,7 @@ Medieval 2: Total War - Engine Overhaul Project Lua Plugi
Welcome to the EOP Lua Plugin Documentation!
Please note that many of the examples require additional checks and not all functions are fully documented. If you need additional help, we welcome you to join the Discord!
-
Last updated: 2024-02-06 06:50:31
+ Last updated: 2024-02-13 19:09:49