Aller au contenu

Photo

Importing OC character into custom module


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

#1
hunharibo

hunharibo
  • Members
  • 126 messages
I havent found any wiki entry for this, and it was pretty easy to figure out, so i am putting it here in case someone wonders how this is done. 

In your module's module_load event when starting the character generator, the function actually accepts 3 variables.

Instead of putting

PreloadCharGen();
StartCharGen(GetHero(),0)

in the event's code, replace the second line with 

StartCharGen(GetHero(),0,1)

That's it, now you have the option of importing a character from another module at character creation.

Modifié par hunharibo, 10 décembre 2009 - 05:48 .


#2
Halchek

Halchek
  • Members
  • 36 messages
Nice but the description of the function contains the following warning:-



Description:



Do not use, use the functions in ui_h instead!! Starts the character generation or level up process. the option of creating a new character. <\\code>



What is to be found in ui_h I wonder?


#3
hunharibo

hunharibo
  • Members
  • 126 messages
i couldnt find any functions in ui_h that would relate to the chargen at all.

#4
Halchek

Halchek
  • Members
  • 36 messages
is it a combination of functions perhaps?



I don't suppose you have a reference to the ui_h help files do you? I wouldn't mind having a nose but can't find anything.

#5
Irena Katarya

Irena Katarya
  • Members
  • 1 messages
In case this hasn't already been covered...



With the toolset update that includes the Single Player sources you can find this, and other include files, by doing the following:

Open the toolset.

Use File->Manage Modules

Select the Single Player module and Open it

Select "ALL" in the Pallette window

Expand the "_Core Includes" item and search for the include file you are interested in.