全面战争:战锤3

全面战争:战锤3

Execute External Lua File (Modding Tool)
25 条留言
BrutusCz 2024 年 6 月 11 日 下午 12:08 
When I started learning some scripting, I would be absolutelly lost without this. It's amazing to just see things in real time.
Loyd88 2024 年 5 月 29 日 下午 10:49 
@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 2023 年 10 月 23 日 下午 6:14 
Thank you, this mod is invaluable for mod-making.
prop joe  [作者] 2023 年 5 月 13 日 上午 11:57 
considering I was using this to mod last week the mod itself works fine
ReinHarD 2023 年 5 月 9 日 上午 10:12 
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 2023 年 3 月 20 日 下午 11:15 
This is incredibly useful, thanks man!
prop joe  [作者] 2023 年 3 月 10 日 下午 3:08 
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 2023 年 3 月 10 日 上午 11:28 
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 2023 年 1 月 27 日 上午 3:22 
Thanks for the mod, it's extremely useful.
Silito13 2023 年 1 月 24 日 上午 11:30 
Is there a way to progress the Prophecy of Sotek with this? Stuck on the first stage after completing everything
chris_sansom 2022 年 11 月 24 日 下午 6:04 
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  [作者] 2022 年 9 月 7 日 下午 2:22 
there is a lua console mod, you can try that as a workaround
The Demon Doctor 2022 年 9 月 7 日 下午 2:04 
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 2022 年 9 月 7 日 上午 9:19 
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 2022 年 9 月 2 日 上午 4:31 
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 2022 年 8 月 27 日 上午 4:17 
@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 2022 年 8 月 27 日 上午 2:31 
@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 2022 年 7 月 30 日 下午 5:12 
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  [作者] 2022 年 5 月 1 日 下午 12:12 
no
Jon383 2022 年 5 月 1 日 上午 8:08 
Is it possible to take over the AI faction and control (similar to a hot seat)?
PandaPrime 2022 年 4 月 14 日 下午 4:21 
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 2022 年 4 月 10 日 上午 6:19 
Quick feedback loops are the best! Thank you for this
prop joe  [作者] 2022 年 4 月 9 日 上午 4:33 
@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 2022 年 4 月 9 日 上午 4:30 
Sounds great!
I'll test it later. Do you need to restart the game when changes in the external script are made?
Lord Tzeentch 2022 年 4 月 9 日 上午 4:28 
Hi, thanks for the mod, by any chance
Do you have the list of ancillaries that can be use?