Total War: WARHAMMER III

Total War: WARHAMMER III

Execute External Lua File (Modding Tool)
25 Comments
BrutusCz 11 Jun, 2024 @ 12:08pm 
When I started learning some scripting, I would be absolutelly lost without this. It's amazing to just see things in real time.
Loyd88 29 May, 2024 @ 10:49pm 
@Aisede often in Windows, files extentions are hidden, so you must rename the "exec.lua" from File Explorer (in Win 11). Because right now is "exec.lua.txt" that's why it cannot find the file
Spell 23 Oct, 2023 @ 6:14pm 
Thank you, this mod is invaluable for mod-making.
prop joe  [author] 13 May, 2023 @ 11:57am 
considering I was using this to mod last week the mod itself works fine
ReinHarD 9 May, 2023 @ 10:12am 
Can this mod still work now?
I tried the steps in the introduction and confirmed that my F9 is bound to "View camera bookmark 1", but I created a game and pressed F9, but nothing happened.
Playmate 20 Mar, 2023 @ 11:15pm 
This is incredibly useful, thanks man!
prop joe  [author] 10 Mar, 2023 @ 3:08pm 
I'm not sure but if a function starts with dev it usually means it's only usable in the dev version of the game we don't have access to
Joey Jo-Jo Jr Shabadoo 10 Mar, 2023 @ 11:28am 
Im trying to use this to change the UI scale to a value lower than 1. "DevSetUiScale(0.9)".
Is it possible to call this function with this mod?
Freiya 27 Jan, 2023 @ 3:22am 
Thanks for the mod, it's extremely useful.
Silito13 24 Jan, 2023 @ 11:30am 
Is there a way to progress the Prophecy of Sotek with this? Stuck on the first stage after completing everything
chris_sansom 24 Nov, 2022 @ 6:04pm 
Hey man - this is excellent for someone starting out like me - so I can't thank you enough.

Sorry to be demanding - have you at all tried to use the cm:add_unit_to_province_mercenary_pool function ?

I'm trying to mess around with it for Valkia, and for example I can add units to the province mercenary pool for units already in there by using add_units_to_province_mercenary_pool_by_region - but I've not been able to add any units to the pool that weren't already there.

All the above testing would have been much more painful without this mod, so thankyou very much. And also sorry for asking in this thread - probably not the right forum for this kind of question.
prop joe  [author] 7 Sep, 2022 @ 2:22pm 
there is a lua console mod, you can try that as a workaround
The Demon Doctor 7 Sep, 2022 @ 2:04pm 
I am attempting to force start a certain event which doesnt start for some reason, already reviced the script from the mod creator but need to use lua to activate it. which dosent work for me atm
The Demon Doctor 7 Sep, 2022 @ 9:19am 
I am attempting to use lua but it appears not to find it, I have also attempted to make a folder and put the file in it but at first it said premission denied and now it cant find the exact same folder it did about 10 min ago
Freiya 2 Sep, 2022 @ 4:31am 
For information in case you already have a camera view saved to "View camera bookmark 1" and want to delete it, you have to exit the game and delete the file located here :
C:\Users\yourusername\AppData\Roaming\The Creative Assembly\Warhammer3\camera bookmarks
Street's Closed Pizza Boy 27 Aug, 2022 @ 4:17am 
@AndyPandy sure bud. Try this script for your items. Just copy and paste into exec.lua

local faction = cm:get_local_faction_name()
local ancillarya = "wh_main_anc_armour_armour_of_destiny"
local ancillaryb = "wh_main_anc_talisman_talisman_of_preservation"
local ancillaryc = "wh3_main_anc_weapon_slaaneshs_blade"
local ancillaryd = "wh3_main_anc_caravan_bejewelled_dagger"
cm:add_ancillary_to_faction(cm:get_faction(faction), ancillarya, false)
cm:add_ancillary_to_faction(cm:get_faction(faction), ancillaryb, false)
cm:add_ancillary_to_faction(cm:get_faction(faction), ancillaryc, false)
cm:add_ancillary_to_faction(cm:get_faction(faction), ancillaryd, false)

This will add these ancillaries to your item pool and not directly to a character. You can change which items are added to the pool by changing the item variable strings to the items listed in the ancillaries tables.
Street's Closed Pizza Boy 27 Aug, 2022 @ 2:31am 
@Alsede This mod won't be much use to you unless you're writing scripts yourself to interact with the game. The purpose of this mod is to allow mod developers to test how their scripts interact with the game without having to change one thing and reload the whole game. If you don't know anything at all about scripting, and I only know a minimum amount myself, I suggest you look up guides on lua scripting for total war games before trying to make use of this mod.

@prop joe Thank you for porting this excellent mod over to Warhammer 3. I've used this mod so much in Warhammer 2 for figuring out how little things work (and a little cheating :p ). I still have a lot to learn about scripts, but this makes life so much easier without having to reload the game.
Aisede 30 Jul, 2022 @ 5:12pm 
I got an error. "LOADFILE: cannot open exec.lua: No such file or directory" . Does anybody know how to resolve this? I've never used lua before
prop joe  [author] 1 May, 2022 @ 12:12pm 
no
Jon383 1 May, 2022 @ 8:08am 
Is it possible to take over the AI faction and control (similar to a hot seat)?
PandaPrime 14 Apr, 2022 @ 4:21pm 
Anyone know how to add items and ancilliaries? I am trying to create a script that adds to the selected Lord the Armor of Destiny (wh_main_anc_armour_armour_of_destiny), Talisman of Preservation (wh_main_anc_talisman_talisman_of_preservation), Slaanesh's Blade (wh3_main_anc_weapon_slaaneshs_blade), Bejewlled Dagger (wh3_main_anc_caravan_bejewelled_dagger) and The Great Celestial Banner (wh3_main_anc_magic_standard_the_great_celestial_banner).

Also looking at adding traits as well such as Skarbrand's Defeat Trait (wh3_main_trait_defeated_skarbrand)
purr 10 Apr, 2022 @ 6:19am 
Quick feedback loops are the best! Thank you for this
prop joe  [author] 9 Apr, 2022 @ 4:33am 
@Melagius
no, avoiding restarting the game is the whole premise of the mod

@Lord Tzeentch
check a link in the console commands workshop page
Melagius 9 Apr, 2022 @ 4:30am 
Sounds great!
I'll test it later. Do you need to restart the game when changes in the external script are made?
Lord Tzeentch 9 Apr, 2022 @ 4:28am 
Hi, thanks for the mod, by any chance
Do you have the list of ancillaries that can be use?