How would I go about setting up a starting character for my standalone module? I'm not interested in custom characters for this module, I want a specific, pre-made main character. I've been browsing scripts and the single player module for a while now with nothing gained whatsoever, so could somebody please tell me how this is done?
Am I just missing something?
Débuté par
Gammastar
, févr. 13 2010 12:44
#1
Posté 13 février 2010 - 12:44
#2
Posté 13 février 2010 - 01:05
Ah forget it, I'll just work the story a different way.
#3
Posté 13 février 2010 - 01:39
Gammastar wrote...
How would I go about setting up a starting character for my standalone module? I'm not interested in custom characters for this module, I want a specific, pre-made main character. I've been browsing scripts and the single player module for a while now with nothing gained whatsoever, so could somebody please tell me how this is done?
I'm doing the same thing you are with my own module. While not the most elegant solution, the following works:
1) Change your module startup script to skip character generation.You can read all about it on the WIKI.
2) Create a new creature file that will be the pre-made main character, and name it whatever you want (i.e. pregen.utc).
3) After you do an export, find pregen.utc in the export folder. Then, copy it to your module's core/override/toolsetexport directory. Then, re-name it default_player.utc.
Essentially, when you skip generation, the game looks for default_player.utc, which is usually that pre-made Jaden character that is bald, and has no weapons. When you override it with your own, it just picks yours up.
Now, like I said before, this cannot be the best way to do this. There may be a 2DA floating around there somewhere that allows you to define the default creature file, and then, you wouldn't have to do the whole copy/paste/re-name thing. I'll likely cross that bridge when I have to, but in the meantime, this has been working perfectly for me.
#4
Posté 13 février 2010 - 12:46
default_player.utc occurs in the chargen_preload 2da table in background.xls, but I haven't tried changing it yet.
#5
Posté 13 février 2010 - 05:02
Proleric1 wrote...
default_player.utc occurs in the chargen_preload 2da table in background.xls, but I haven't tried changing it yet.
Interesting... I'll give that a go and see what happens...
#6
Posté 13 février 2010 - 05:54
Nothing... I overrode default_player.utc with my own, and it still picked it up. I wonder where else it could be picking it up from...
#7
Posté 13 février 2010 - 06:02
It seems to be hard-coded in sys_chargen_h, too...





Retour en haut







