Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Hello. Working on setting up a default Character. I am attempting to set athletics to the first notch but I think i'm doing it wrong. When the train skill is set to 1, it jumps to the first skill gained in athletics.
function startparty()
for i = 2,4 do
party.party:getChampion(i):setEnabled(false)
party.party:getChampion(1):setName("Test")
party.party:getChampion(1):setSex("female")
party.party:getChampion(1):trainSkill("athletics",1,true)
party.party:getChampion(1):setPortrait("mod_assets/textures/portraits/a_human_female_21.tga")
end
end
The desired result would be 1/5 athletics. Not 3/5. Thanks for the look.
Everything inside that for loop runs 3 times. So you're training champion 1's athletics skill three times. (and also setting their name, portrait, etc three times)