A little script to change the default party.
Posted: Sat Sep 15, 2012 1:48 pm
I think its pretty much self-explaining what it does
EDIT: I think there is no way to edit the profile though.
EDIT2: Added potrait but set it to nil in the example, I don't know the filenames etc (thanks Emciel)
Code: Select all
-- Go to the bottom to set your default party.
function setParty(champID, champAllow, champName, champRace, champClass, champGender, champPortrait)
if champAllow ~= true then
party:getChampion(champID):setEnabled(champAllow)
end
if champName then
party:getChampion(champID):setName(champName)
end
if champRace then
party:getChampion(champID):setRace(champRace)
end
if champClass then
party:getChampion(champID):setClass(champClass)
end
if champGender then
party:getChampion(champID):setSex(champGender)
end
if champPortrait then
party:getChampion(champID):setPortrait(champPortrait)
end
end
--[[ Use the setParty(ID,ENABLE,NAME,RACE,CLASS,GENDER,PORTRAIT)
Use "nil" without the quotes to keep the default value.
Feel free to use it in your map without giving credits.
ID - Which champion should be changed. 1=topleft, 2=topright etc...
ENABLE - Enables(true) or disables(false) the champion.
NAME - Changes the name of the Champion (Strings have " in the beginning and at the end.)
RACE - Changes the race: "Human", "Minotaur" or "Lizardman"
CLASS - Changes the class: "Fighter", "Rogue" or "Mage"
GENDER - Changes the sex: "male" or "female" (keep it lowercase!)
PORTRAIT - Changes the portrait of the champion
]]--
setParty(1,true,"ContarStonesKull","Human","Fighter","male", nil)
setParty(2,true,"Mork","Minotaur","Fighter","male", nil)
setParty(3,true,"Yennica Whitefeather","Human","Rogue","female", nil)
setParty(4,true,"Sancsaron","Human","Mage","male", nil)
EDIT2: Added potrait but set it to nil in the example, I don't know the filenames etc (thanks Emciel)