Search found 10 matches
- Tue Oct 24, 2023 10:52 pm
- Forum: Panzer Corps 2
- Topic: 1946 Insider Articles
- Replies: 22
- Views: 3847
Re: 1946 Insider Articles
I am a big fan of the modification level of Panzer Corps 1. Is there also a new way to mod the game with the new upgrade. For now Panzer Corps 2 isnt modify - no tutorials for new 3d models, terrain graphics, sounds etc. Even though it was announced: https://www.slitherine.com/forum/viewtopic.php?t=...
- Sun Sep 24, 2023 4:09 pm
- Forum: Panzer Corps 2 Scenario Design
- Topic: Lua problem
- Replies: 19
- Views: 2041
Re: Lua problem
not sure where u got that line from. if u have discord please add me as friend, my handle is :grondel alot easier to help u there. sers, Thomas You can try to talk to a brand new user who ends their user name with 2 numbers and immediately ask questions about modding, but I'm guessing this will be ...
- Sat Sep 23, 2023 3:12 pm
- Forum: Panzer Corps 2 Scenario Design
- Topic: Lua problem
- Replies: 19
- Views: 2041
Re: Lua problem
Sorry - dont have discord. Its possible to help me here please.
- Sat Sep 23, 2023 3:28 am
- Forum: Panzer Corps 2 Scenario Design
- Topic: Lua problem
- Replies: 19
- Views: 2041
Re: Lua problem
Sorry - dont work!
This line causes errors: local heroes = gameWorld.GetPlayer(playerID).heroes
SCRIPT ERROR: [string'']: attempt to index a nil value (global 'gameWorld')
Any ideas ?
This line causes errors: local heroes = gameWorld.GetPlayer(playerID).heroes
SCRIPT ERROR: [string'']: attempt to index a nil value (global 'gameWorld')
Any ideas ?
- Sat Sep 23, 2023 2:52 am
- Forum: Panzer Corps 2 Scenario Design
- Topic: Lua problem
- Replies: 19
- Views: 2041
Re: Lua problem
Thanks! But... function FindItemInTable(table, item) for index, i in ipairs(table) do if i == item then return index end end return -1 end function IsItemInTable(table, item) return FindItemInTable(table, item) ~= -1 end function FindHeroesWithTraits(heroes) local heroesToRemove = {} for _, hero in ...
- Sat Sep 23, 2023 2:21 am
- Forum: Panzer Corps 2 Scenario Design
- Topic: Lua problem
- Replies: 19
- Views: 2041
Re: Lua problem
Thank you - dont run! Hero isnt erase also!
This line causes errors: return World.round == 0
SCRIPT ERROR: [string'']: attempt to index a nil value (global 'gameWorld')
Any ideas ?
This line causes errors: return World.round == 0
SCRIPT ERROR: [string'']: attempt to index a nil value (global 'gameWorld')
Any ideas ?
- Sat Sep 23, 2023 12:10 am
- Forum: Panzer Corps 2 Scenario Design
- Topic: Lua problem
- Replies: 19
- Views: 2041
Re: Lua problem
Thanks! This is my Lua script yet: function FindItemInTable(table, item) for index, i in ipairs(table) do if i == item then return index end end return -1 end function IsItemInTable(table, item) return FindItemInTable(table, item) ~= -1 end function FindHeroesWithTraits(heroes) local heroesToRemove ...
- Fri Sep 22, 2023 9:55 pm
- Forum: Panzer Corps 2 Scenario Design
- Topic: Lua problem
- Replies: 19
- Views: 2041
Re: Lua problem
function IsRodrigez(hero) return hero.name == NSLOCTEXT("scenario_Madrid", "Tentente Rodrigez", "Tentente Rodrigez") end this won´t work. the easiestway to search for heros is by a unique trait combination. in the editor folder of the game is a file called properties.t...
- Fri Sep 22, 2023 9:36 pm
- Forum: Panzer Corps 2 Scenario Design
- Topic: Lua problem
- Replies: 19
- Views: 2041
Re: Lua problem
Hallo, I like to create my own spanish civil war campaign with 5 scenarios. Inside the campaign I create an message in the first scenario that one of the Heros killed by an spion. Its possible to remove this core unit hero at the start of the next scenario with an Lua script and replace him with an...
- Fri Sep 22, 2023 8:32 pm
- Forum: Panzer Corps 2 Scenario Design
- Topic: Lua problem
- Replies: 19
- Views: 2041
Lua problem
Hallo, I like to create my own spanish civil war campaign with 5 scenarios. Inside the campaign I create an message in the first scenario that one of the Heros killed by an spion. Its possible to remove this core unit hero at the start of the next scenario with an Lua script and replace him with ano...