Stop import characters
Posted: Sat Jul 04, 2015 12:45 pm
Is there a way to remove the import characters on custom dungeons. My games is designed for new characters, powerful ones would make it too easy. Thanks Ian.
Code: Select all
function remove1()
for i = 1,4 do
local c = party.party:getChampion(i)
local class = c:getClass()
if class == “rogue” then
party.party:getChampion(i):setEnabled(false)
end
end
Code: Select all
local c = party.party:getChampion(1)
--Champ 1
c:setName('Tifa Lockhart')
c:setClass('fighter')
c:setRace('ratling')
c:setSex('female')
--c:insertItem(1,spawn("dagger").item)
c:insertItem(3,spawn("peasant_cap").item)
c:insertItem(4,spawn("peasant_tunic").item)
c:insertItem(5,spawn("peasant_breeches").item)
c:insertItem(6,spawn("sandals").item)
c:gainExp(10)
c:setPortrait('assets/textures/portraits/ratling_female_03.tga')
--c:trainSkill('light_weapons',1)
c:setBaseStat('strength',16) --**
local c = party.party:getChampion(2)
--Champ 2
c:setName('Fiddler Thain')
c:setClass('rogue')
c:setRace('ratling')
c:setSex('male')
c:insertItem(3,spawn("peasant_cap").item)
c:insertItem(4,spawn("peasant_tunic").item)
c:insertItem(5,spawn("peasant_breeches").item)
c:insertItem(6,spawn("sandals").item)
c:gainExp(10)
c:setPortrait('assets/textures/portraits/ratling_male_04.tga')
c:trainSkill('missile_weapons',1)
c:trainSkill('throwing',1)
c:setBaseStat('strength',12)
local c = party.party:getChampion(3)
--Champ 3
c:setName('Thourun Wisthoff')
c:setClass('wizard')
c:setRace('ratling')
c:setSex('male')
c:insertItem(3,spawn("peasant_cap").item)
c:insertItem(4,spawn("peasant_tunic").item)
c:insertItem(5,spawn("peasant_breeches").item)
c:insertItem(6,spawn("sandals").item)
c:gainExp(10)
c:setPortrait('assets/textures/portraits/ratling_male_06.tga')
c:trainSkill('fire_magic',1)
c:trainSkill('earth_magic',1)
c:trainSkill('firearms',-1)
c:setSkillPoints(-1)
c:setBaseStat('strength',8)
local c = party.party:getChampion(4)
--Champ 4
c:setName('Zala Lockhart')
c:setClass('alchemist')
c:setRace('ratling')
c:setSex('female')
c:insertItem(3,spawn("peasant_cap").item)
c:insertItem(4,spawn("peasant_tunic").item)
c:insertItem(5,spawn("peasant_breeches").item)
c:insertItem(6,spawn("sandals").item)
c:gainExp(10)
c:setPortrait('assets/textures/portraits/ratling_female_04.tga')
c:trainSkill('alchemy',1)
c:trainSkill('firearms',1)
c:setBaseStat('strength',8)
OK thanks everyone.minmay wrote:you can't remove the option, you can only modify the champions once the dungeon starts
You should probably [highly recommended] place an all caps warning ~or at least a polite note in the description, mentioning that you plan to wipe the default characters when the game starts; otherwise the player might spend significant time building a party, only to lose them when the adventure begins.ian363 wrote:OK thanks everyone.minmay wrote:you can't remove the option, you can only modify the champions once the dungeon starts
Good plan, but I'll just tell people the game is designed for new characters and leave it up to them. I don't want to annoy anyone by down grading their hard won team.Isaac wrote:You should probably [highly recommended] place an all caps warning ~or at least a polite note in the description, mentioning that you plan to wipe the default characters when the game starts; otherwise the player might spend significant time building a party, only to lose them when the adventure begins.ian363 wrote:OK thanks everyone.minmay wrote:you can't remove the option, you can only modify the champions once the dungeon starts
This is the correct answer. Give a recommendation, then let the player choose whether they will follow it.ian363 wrote:I'll just tell people the game is designed for new characters and leave it up to them. I don't want to annoy anyone by down grading their hard won team.