Hi Minmay thxs for the reply mate.
Ok what I intend to do is when the game starts the player wont select champs they are already done. In log 1 you could say have every champ as a human etc.. with changed stats, level, equipment, names etc.. So basic champ not new created one just the ones that come with log 2 but I want to change some of the stats, dex, str, etc..numbers. Its like a pre-made party like you could do in log1.
I think I get what your saying so the method below would not be the same in log 2 I know so how do I go about the game starting with 4 rattling champs with different classes etc...??
This is from log 1 just a example or what I am after:
Code: Select all
----Starting with one Champ----
function initChampion()
local i = party:getChampion(1)
i:setName("Juhon")
i:removeItem(7)
i:removeItem(8)
-- i:insertItem(8, spawn("empty_wine_bottle"))
i:setRace("Human")
i:setClass("Rogue")
i:setSex("male")
i:trainSkill("daggers", 4, true)
i:trainSkill("athletics", 6, true)
i:trainSkill("dodge", 3, true)
i:trainSkill("throwing_weapons", 2, true)
i:addTrait("athletic",true)
i:addTrait("agile",true)
i:setStatMax("health", 65)
i:setStat("health", 65)
i:setStatMax("energy", 52)
i:setStat("energy", 52)
i:setStat("strength", 16)
i:setStat("dexterity", 15)
i:setPortrait("mod_assets/textures/portraits/cano.tga")
hudPrint("")
hudPrint("")
hudPrint("")
hudPrint("")
party:getChampion(2):setEnabled(false)
party:getChampion(3):setEnabled(false)
party:getChampion(4):setEnabled(false)
end