Aller au contenu

Photo

Starting as a young boy?


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

#1
st4rdog

st4rdog
  • Members
  • 104 messages
I've created a boy creature and used this script to start as him:

[code]#include "events_h"
#include "global_objects_h"
#include "sys_chargen_h"
#include "utility_h"

void main()
{
    event ev = GetCurrentEvent();
    int nEventType = GetEventType(ev); //extract event type from current event
    int nEventHandled = FALSE; //keep track of whether the event has been handled
    switch(nEventType)
    {
        case EVENT_TYPE_MODULE_START:
        {
            // skip character generation
            object oHero = GetHero();
            Chargen_InitializeCharacter(oHero);
            Chargen_SelectGender(oHero,GENDER_MALE);
            Chargen_SelectRace(oHero,RACE_HUMAN);
            Chargen_SelectCoreclass(oHero,class_WARRIOR);
            Chargen_SelectBackground(oHero,BACKGROUND_NOBLE);
            
            LoadItemsFromTemplate(oHero, "hero_young.utc", TRUE);
            
            break;
        }
    }
    if (!nEventHandled) //If this event wasn't handled by this script, let the core script try
    {
        HandleEvent(ev, RESOURCE_SCRIPT_MODULE_CORE);
    }
}[/code]

But it starts me as the default naked male model. Is this possible or will I have to cutscene young part of my hero's life?

Modifié par st4rdog, 11 novembre 2009 - 07:09 .


#2
bboyser8

bboyser8
  • Members
  • 100 messages
LoadItemsFromTemplate just loads the items, not appearance. I'm not sure if there's a way to make the character have a specific model as their appearance, and if there is I don't know what it is.

#3
georage

georage
  • Members
  • 247 messages
Of course there's a way to make the PC change appearance, in the OC they even make the PC a mouse!

#4
ixobelle

ixobelle
  • Members
  • 109 messages
I'm not a script expert, but I made an NPC girl, and she wasn't "Human, Female"... she was "Human Girl, Female"



Try changing race to "RACE_HUMAN, BOY".



the "human comma space boy" is what it's listed as under the creature creator

#5
ixobelle

ixobelle
  • Members
  • 109 messages
I'm not a script expert, but I made an NPC girl, and she wasn't "Human / Female"... she was "Human, Girl / Female"



Try changing race to "RACE_HUMAN, BOY".



the "human comma space boy" is what it's listed as under the creature creator