You could use this to creat a character every time you test you new mod:
__________________________________________________________-
#include "events_h"
#include "global_objects_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:
{
PreloadCharGen(); //preloads resources needed for character generation
StartCharGen(GetHero(),0); //initiates character generation
break;
}
}
if (!nEventHandled) //If this event wasn't handled by this script, let the core script try
{
HandleEvent(ev, RESOURCE_SCRIPT_MODULE_CORE);
}
}
_________________________________________________________________
Or you could use this to get a default character with normal stats, skipping the character generation altogether:
___________________________________________________________________
#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);
// give the player some equipment
object oItem = UT_AddItemToInventory(R"gen_im_arm_cht_lgt_rlr.uti");
EquipItem(oHero,oItem);
oItem = UT_AddItemToInventory(R"gen_im_arm_bot_lgt_rlr.uti");
EquipItem(oHero,oItem);
oItem = UT_AddItemToInventory(R"gen_im_arm_glv_lgt_rlr.uti");
EquipItem(oHero,oItem);
oItem = UT_AddItemToInventory(R"gen_im_arm_shd_sml_wdn.uti");
EquipItem(oHero,oItem);
oItem = UT_AddItemToInventory(R"gen_im_wep_mel_lsw_lsw.uti");
EquipItem(oHero,oItem);
break;
}
}
}
This was all take from SilentCid's video tutorials, which are very good by the way. These scripts I just posted were taken from the bioware website network somwhere by cid as per what he said in his videos. A good link to start would be
http://social.biowar...x.php/Tutorials . SilentCid's video tutorials are recommended as good stuff at this link
http://social.bioware.com/project/527/ . That would be cid's video tutorials.