Stop import characters
Stop import characters
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.
- Eleven Warrior
- Posts: 752
- Joined: Thu Apr 18, 2013 2:32 pm
- Location: Australia
Re: Stop import characters
yeah mate there is. This is one way.
Second way is to make champ(s) start as you want them to be eg: (this is all 4 champs mate) I hope this helps you bro:) If not call us.
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)
Re: Stop import characters
Thanks for your reply but I think your code is to alter characters after you enter game. I want to remove the option to import characters at the start screen when choosing a custom game. Thanks Ian
-
- Posts: 275
- Joined: Sat Jun 16, 2012 5:32 am
Re: Stop import characters
Just place it on the map/world ( I think it has to be 1 second delay, so connect it to a timer with 1 sec delay, and timer to itself to deactivate.
put hidden presure plate or so where ur party starts so the timer will run and put all champs level 1.
put hidden presure plate or so where ur party starts so the timer will run and put all champs level 1.
Re: Stop import characters
you can't remove the option, you can only modify the champions once the dungeon starts
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Re: Stop import characters
OK thanks everyone.minmay wrote:you can't remove the option, you can only modify the champions once the dungeon starts
Re: Stop import characters
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
Re: Stop import characters
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
Thanks Ian
Re: Stop import characters
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.
Finished Dungeons - complete mods to play
Re: Stop import characters
What i did in my mod is...create all new classes,races and skills....that way noone can import charakters. If they try well that will end in a crash 
