some advice on scripts needed (again!)

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
User avatar
WaspUK1966
Posts: 135
Joined: Sat Aug 09, 2014 9:17 am

some advice on scripts needed (again!)

Post by WaspUK1966 »

Couple of things: I know how to create custom portraits, and know by running a script saying party:getChampion(1):setPortrait etc that I can change the pic of a character ingame. How do I make the pics selectable when the game is exported ie at the start of a game, if the player selects custom characters rather than the default ones, I want the custom portraits available for selection as well as the inbuilt ones. Is this possible?
Also, can you reduce the light given off by the torches to make it more realistic? Say, for example, that it only lights up 2 squares in all directions, rather than the whole room as is presently the case?
Cheers guys (and girls!)
George
User avatar
Komag
Posts: 3659
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: some advice on scripts needed (again!)

Post by Komag »

I don't think you can reduce torch light distance - they light up three full squares away from the party, whereas magic light lights two full squares away (both not including the party square itself).
Finished Dungeons - complete mods to play
User avatar
Isaac
Posts: 3192
Joined: Fri Mar 02, 2012 10:02 pm

Re: some advice on scripts needed (again!)

Post by Isaac »

WaspUK1966 wrote:Couple of things: I know how to create custom portraits, and know by running a script saying party:getChampion(1):setPortrait etc that I can change the pic of a character ingame. How do I make the pics selectable when the game is exported ie at the start of a game, if the player selects custom characters rather than the default ones, I want the custom portraits available for selection as well as the inbuilt ones. Is this possible?
As far as I know, the only way to offer this, is to have the portraits installed in the Portraits directory.

It would be nice if Grimrock 2 checked the custom mod for a portraits folder and included any portraits found.

For Nexus mods you could offer the mod archive and a portraits archive ~separate.

*Perhaps you could make the archive include a dungeons folder (with your mod in it), and a portraits folder; but you had better make the file names outrageously unique. This is unconventional though, and would have to be explained... It's better IMO to offer two separate files; the mod, and the portraits.

I think the torch light is hard coded. It's possible to tinker with the torch.lua, but that is just the flames on the wall torches (AFAIK).
Post Reply