Larian Banner
Previous Thread
Next Thread
Print Thread
Change default random character in Divinity Engine #647518
23/07/18 05:23 PM
23/07/18 05:23 PM
Joined: Jul 2018
Posts: 9
S
Sourcerer Offline OP
stranger
Sourcerer  Offline OP
stranger
S

Joined: Jul 2018
Posts: 9
When I load a level say the Tutorial Level A, the Divinity Engine randomly selects a default character. Is there a way to specify which race and gender should be used? Perhaps something like the character creation template as config settings for the level/across the project?

Re: Change default random character in Divinity Engine [Re: Sourcerer] #647522
24/07/18 12:28 AM
24/07/18 12:28 AM
Joined: Sep 2017
Posts: 874
The Composer Online happy

Moderator
The Composer  Online Happy

Moderator

Joined: Sep 2017
Posts: 874
Only way I know how to do this, albeit you should absolutely undo this before publishing a mod due to cross-compatibility purposes, is the following:

[Linked Image]

Copy the "Start" goal to your mod and either just edit step two, or add a new origin entry in the INIT if you have a custom global character you wish to use.

Change line 151/152 to specify a specific integer rather than the random value, so it always spawns that entry in the DB_Origins database.

You probably could do some clever workarounds to just override the conclusion of 'start', but since this is an engine-thing only I don't see a reason why you'd ever want that so I won't bother chewing on that puzzle.

If you have an actual new Origin you want to add, you should follow the "My first origin" guide on the wiki, though it's down for maintenance at the moment so I can't grab the link for you.

The TL;DR of it is basically for the story bit, you need to add a new DB_Origins entry through a new goal placed under DOS2ModWrapper.

Re: Change default random character in Divinity Engine [Re: Sourcerer] #647523
24/07/18 12:44 AM
24/07/18 12:44 AM
Joined: Jan 2009
Posts: 6,856
Stabbey Offline
veteran
Stabbey  Offline
veteran

Joined: Jan 2009
Posts: 6,856
Hmmm... I don't want to force an origin on the player in a mod I'm working on, but I DO want to force them to take Thievery and Scoundrel as starting Civil and Combat abilities. Is that possible?

Re: Change default random character in Divinity Engine [Re: Sourcerer] #647559
25/07/18 12:19 PM
25/07/18 12:19 PM
Joined: Nov 2017
Posts: 129
L
LarIlya Offline
member
LarIlya  Offline
member
L

Joined: Nov 2017
Posts: 129
The character generation can't really put restrictions like that on players.
You may be able to change their Civilian ability scores after character generation, although that's far less elegant.

Re: Change default random character in Divinity Engine [Re: Sourcerer] #647560
25/07/18 12:46 PM
25/07/18 12:46 PM
Joined: Jan 2009
Posts: 6,856
Stabbey Offline
veteran
Stabbey  Offline
veteran

Joined: Jan 2009
Posts: 6,856
I figured that was the case. I guess my only option is to stick them in an enclosed space with a Thievery 1 locked door being the only way to proceed, then add in an Exploration XP trigger to give them enough XP to reach level 2, so they have an opportunity to take it if they missed out.

Re: Change default random character in Divinity Engine [Re: Sourcerer] #647561
25/07/18 01:41 PM
25/07/18 01:41 PM
Joined: Sep 2017
Posts: 874
The Composer Online happy

Moderator
The Composer  Online Happy

Moderator

Joined: Sep 2017
Posts: 874
Not that it's relevant to the OP's topic and thread, but I suppose a hack-job way of doing it Stabbey, could be to check all abilities values and if they're =>+1 their default value, subtract that value by the default value of the ability type and remove those points and then add equal points to thievery/scoundrel after game start.

It's a hack-job because players would still be led on to believe they can choose in character creation, but is overridden after the game begins.

Re: Change default random character in Divinity Engine [Re: Sourcerer] #647576
25/07/18 09:58 PM
25/07/18 09:58 PM
Joined: Nov 2017
Posts: 129
L
LarIlya Offline
member
LarIlya  Offline
member
L

Joined: Nov 2017
Posts: 129
Yeah that's the hack-job I'd suggest as well.


Moderated by  Larian_Koala, Larian_KVN 

Powered by UBB.threads™ PHP Forum Software 7.6.2