Page 1 of 1

Changing your portrait while in game

Posted: Sun Oct 19, 2014 2:01 am
by 7Soul
I'm trying to change the portrait through the console. I already have the .tga images on Portraits folder

This seems to be the code, but no parameter seem to work
party.party:getChampion(1):setPortrait("")

Re: Changing your portrait while in game

Posted: Sun Oct 19, 2014 4:19 am
by Skuggasveinn
If you are talking about a mod you are making then the portrait needs to be inside your mod_assets folder ("mod_assets/portraits")
Then the command works , you simple type the full mod_assets path to your portrait

e.g.
party.party:getChampion(1):setPortrait("mod_assets/portraits/mypic.tga") -- I just did this and it works.

If you are talking about the main campaign then I think (and I could be wrong) that you can't call something that's outside the asset folder of the main campaign.
you could call the portraits that are predefined within the game, given that you know there file names, but I don't think you can call for a picture that's laying in your portraits folder under "documents/almost human/Legend of Grimrock 2/portraits" , that's something you can only to when creating a new party.

Skuggasveinn.

Re: Changing your portrait while in game

Posted: Sun Oct 19, 2014 4:30 am
by 7Soul
Yeah I wanted to change the portraits of the party members of the main mission I'm playing. I named them after friends and now that I saw the portrait tutorial I figured I'd replace the portraits with pictures of them

Re: Changing your portrait while in game

Posted: Thu Jan 22, 2015 12:58 pm
by Dr.Disaster
Skuggasveinn wrote:If you are talking about the main campaign then I think (and I could be wrong) that you can't call something that's outside the asset folder of the main campaign.
You can do this but you have to give the fullpath to your custom portrait as parameter.

Code: Select all

party.party:getChampion(n):setPortrait("/Users/<your user profile name>/Documents/Almost Human/Legend of Grimrock 2/Portraits/your_custom_portrait.tga")