Page 1 of 1
Is it possible to change the default portraits?
Posted: Sat Mar 28, 2015 7:03 pm
by fazzasx
Hi Everyone..
I wanted to ask if its possible to change the built in default portraits to your own ones?
I want to create a mod that uses its own portraits and whilst I can use SDP to setup a default party. If I want to choose a custom party it seems I only can choose whats there by default?
Can anyone advise how to change this?
I did have a good look around google and could not see anything but I might be looking in the wrong place?
Simon
Re: Is it possible to change the default portraits?
Posted: Sat Mar 28, 2015 7:25 pm
by THOM
always a good place to seach is the scripting reference:
http://www.grimrock.net/modding/scripti ... /#Champion
The command you are looking for is
:setPortrait(filename)
Re: Is it possible to change the default portraits?
Posted: Sat Mar 28, 2015 8:05 pm
by maneus
Make a script in your editor on a level with code:
Code: Select all
party:getChampion(1):setPortrait("mod_assets/textures/portraits/yourfilename.tga")
party:getChampion(2):setPortrait("mod_assets/textures/portraits/yourfilename.tga")
party:getChampion(3):setPortrait("mod_assets/textures/portraits/yourfilename.tga")
party:getChampion(4):setPortrait("mod_assets/textures/portraits/yourfilename.tga")
This will replace the original portraits with your custom portraits.
Make sure that you have save the custom portraits at the same path you have stated in the script.
The portraits must have a pixel size of 128x128 and must be saved as .dds file.
Re: Is it possible to change the default portraits?
Posted: Sun Mar 29, 2015 11:58 pm
by fazzasx
Thanks for this guys,
I was asking really if its possible to have custom portraits and skills etc pre-defined before the game starts?
For example when you load LOG and you select custom dungeon, you then have the option to customise the characters. But all I can see then is the default portraits that are 'inbuilt' I would like to see if possible the ones I created?
If that's not possible, then could you theoretically start the game with one champion and somehow recruit the ones through some framework / gui mechanism or something? I saw that Back to the Dungeon, DM remake had this but the panels look very custom made to me. Having some kind of portrait area where you can pick and choose would be perfect.
If anyone knows where I can look to try this out do let me know
Simon
Re: Is it possible to change the default portraits?
Posted: Mon Mar 30, 2015 12:12 am
by minmay
fazzasx wrote:Thanks for this guys,
I was asking really if its possible to have custom portraits and skills etc pre-defined before the game starts?
For example when you load LOG and you select custom dungeon, you then have the option to customise the characters. But all I can see then is the default portraits that are 'inbuilt' I would like to see if possible the ones I created?
not possible
fazzasx wrote:If that's not possible, then could you theoretically start the game with one champion and somehow recruit the ones through some framework / gui mechanism or something? I saw that Back to the Dungeon, DM remake had this but the panels look very custom made to me. Having some kind of portrait area where you can pick and choose would be perfect.
Take a look at
The Sunset Gate, it has something very close to what you're describing, although it's buggy (you'll want to incorporate
this to prevent players from carrying over skill bonuses/traits that they shouldn't).
Re: Is it possible to change the default portraits?
Posted: Mon Mar 30, 2015 12:36 am
by Dr.Disaster
fazzasx wrote:For example when you load LOG and you select custom dungeon, you then have the option to customise the characters. But all I can see then is the default portraits that are 'inbuilt' I would like to see if possible the ones I created?
That won't work with the buildin customize GUI. Nevertheless you could make your own, similar to The Sunset Gate mod minmay mentioned.
Re: Is it possible to change the default portraits?
Posted: Sat Apr 04, 2015 12:30 pm
by fazzasx
Thanks all for the replies to this. I will try to package it all together and see how it goes
