How do I make it so that the player starts out with a premade character?
I used the tutorial on character generation found on social.bioware.com/wiki/datoolset/index.php/Character_generation
However, this helps you with the following:
- Triggering character generation
- Skipping character generation, giving you a few items through script (gives you a default look)
- Skipping character generation, giving you a few items through loading a template (still gives you a default look)
- Leveling up
It doesn't explain how to make the player start off as a creature I created, it always gives me the default looks.
Which functions am I supposed to use to get a char I made?
Starting with a premade character
Débuté par
Cromalic
, nov. 20 2009 05:42
#1
Posté 20 novembre 2009 - 05:42
#2
Posté 20 novembre 2009 - 05:58
Not 100% sure but you seen the code for the script that gives you a few items through loading a template
case EVENT_TYPE_MODULE_START:
{
// skip character generation
object oHero = GetHero();
Chargen_InitializeCharacter(oHero);
Chargen_SelectRace(oHero,RACE_HUMAN);
Chargen_SelectCoreclass(oHero,class_WARRIOR);
Chargen_SelectBackground(oHero,BACKGROUND_NOBLE);
LoadItemsFromTemplate(oHero, "gcd_hero.utc", TRUE);
break;
}
The line you might want to look at would be the LoadItemsFromTemplate(oHero, "gcd_hero.utc", TRUE);
change the gcd_hero.utc to the creature name you have created.
case EVENT_TYPE_MODULE_START:
{
// skip character generation
object oHero = GetHero();
Chargen_InitializeCharacter(oHero);
Chargen_SelectRace(oHero,RACE_HUMAN);
Chargen_SelectCoreclass(oHero,class_WARRIOR);
Chargen_SelectBackground(oHero,BACKGROUND_NOBLE);
LoadItemsFromTemplate(oHero, "gcd_hero.utc", TRUE);
break;
}
The line you might want to look at would be the LoadItemsFromTemplate(oHero, "gcd_hero.utc", TRUE);
change the gcd_hero.utc to the creature name you have created.
#3
Posté 20 novembre 2009 - 06:03
I did change the name of gcd_hero.utc to my premade char, all it did was load the items from the inventory of that creature, but it didn't use those looks. I still got the default "Jaden" look.
#4
Posté 20 novembre 2009 - 06:15
Ok, I am in the process of messing with this and see what I can come up with.
#5
Posté 20 novembre 2009 - 06:29
Awesome, thanks a bunch!
#6
Posté 20 novembre 2009 - 07:25
EVENT_TYPE_CHARGEN_IMPORT_HERO is the event type to import your hero from a saved game but I am not remotely sure about adding a creature as a the player to be. Maybe someone who's been playing around longer than me on the script side of things could assist you.
#7
Posté 20 novembre 2009 - 07:32
Yup, still searching for the same, but unable to find anything.
Anyone?
Anyone?
#8
Posté 20 novembre 2009 - 07:33
And just for information this is for a custom module, not the single player campaign.
Still trying to find out how the player can start with a premade creature.
Still trying to find out how the player can start with a premade creature.





Retour en haut






