Aller au contenu

Photo

Starting with a premade character


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

#1
Cromalic

Cromalic
  • Members
  • 114 messages
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?

#2
SilentCid

SilentCid
  • Members
  • 338 messages
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.

#3
Cromalic

Cromalic
  • Members
  • 114 messages
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
SilentCid

SilentCid
  • Members
  • 338 messages
Ok, I am in the process of messing with this and see what I can come up with.

#5
Cromalic

Cromalic
  • Members
  • 114 messages
Awesome, thanks a bunch! =]

#6
SilentCid

SilentCid
  • Members
  • 338 messages
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
Cromalic

Cromalic
  • Members
  • 114 messages
Yup, still searching for the same, but unable to find anything.

Anyone?

#8
Cromalic

Cromalic
  • Members
  • 114 messages
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.