Aller au contenu

Photo

Am I just missing something?


  • Veuillez vous connecter pour répondre
6 réponses à ce sujet

#1
Gammastar

Gammastar
  • Members
  • 42 messages
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?

#2
Gammastar

Gammastar
  • Members
  • 42 messages
Ah forget it, I'll just work the story a different way.

#3
Challseus

Challseus
  • Members
  • 1 032 messages

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
Proleric

Proleric
  • Members
  • 2 362 messages
default_player.utc occurs in the chargen_preload 2da table in background.xls, but I haven't tried changing it yet.

#5
Challseus

Challseus
  • Members
  • 1 032 messages

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
Challseus

Challseus
  • Members
  • 1 032 messages
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
Proleric

Proleric
  • Members
  • 2 362 messages
It seems to be hard-coded in sys_chargen_h, too...