Aller au contenu

Photo

Character Generation


25 réponses à ce sujet

#1
Tact_dog

Tact_dog
  • Members
  • 8 messages
I need some help i tried doing what DA builder wiki said but they dont not explain well enough i try to make one but i dont know what to do

#2
melkhi

melkhi
  • Members
  • 6 messages
http://social.biowar...cter_generation



look here, there are examples

#3
Tact_dog

Tact_dog
  • Members
  • 8 messages
thanks i think i got it. but were do i put the script

#4
Proleric

Proleric
  • Members
  • 2 343 messages
Add the module event script to your module. File > Manage Modules > Properties.

#5
Tact_dog

Tact_dog
  • Members
  • 8 messages
so i put it in client script? sorry im kinda noob at this toolset

#6
Proleric

Proleric
  • Members
  • 2 343 messages
No, you put it in the Script field.

My bad - I'd forgotten there is also a Client Script field, which doesn't do anything useful.

#7
bigrickman

bigrickman
  • Members
  • 31 messages
what i'd like to know is how do you set a custom head if you skip the chargen and force a set character.

#8
bigrickman

bigrickman
  • Members
  • 31 messages
and name for that matter

#9
Mengtzu

Mengtzu
  • Members
  • 258 messages
Brawndo on rpg.net had that issue, and solved it. He says:



"The simple solution? In the core files, find "default.utc." Duplicate this and make it part of your module. Change the appearance to match the race and gender of your desired character. Make sure, when exported, it's landed in ...Addins\\YourModule\\module\\override."

#10
bigrickman

bigrickman
  • Members
  • 31 messages
i'll try that, thanks.

#11
bigrickman

bigrickman
  • Members
  • 31 messages
got it working but you have to use default_player.utc



default didnt work for me and you cant actually create default_player because of the conflict so just create a default.utc and then copy and rename it to the override directory.

#12
Jopon

Jopon
  • Members
  • 17 messages
Tact you are basically asking how the toolset works. There are lots of guides on wiki that will teach you that. It is not a three sentence answer to the question you are asking. Then only way you can learn is to read everything, then spend lots of time playing around with the toolset untill you figure it out.

#13
Proleric

Proleric
  • Members
  • 2 343 messages

bigrickman wrote...

got it working but you have to use default_player.utc

default didnt work for me and you cant actually create default_player because of the conflict so just create a default.utc and then copy and rename it to the override directory.

Good to know.

I prefer to avoid manual tweaks to folders, in case they create integrity problems for players. Has anyone tried changing the default template in the chargen_preload table of the background 2da?

#14
Tact_dog

Tact_dog
  • Members
  • 8 messages
im reading the guides im startin to get it now i jus tneed to fix the problem with the toolset crashing

#15
Nattfodd

Nattfodd
  • Members
  • 321 messages

bigrickman wrote...

got it working but you have to use default_player.utc

default didnt work for me and you cant actually create default_player because of the conflict so just create a default.utc and then copy and rename it to the override directory.


I read your solution and it works for me. Only i don't know how to assign a name to the generated charachter. I mean the name you can see in inventory and stats page.

#16
Proleric

Proleric
  • Members
  • 2 343 messages
You can set the Name field in your utc file.

I notice that the name Jaden is also hard-coded in one of the Bioware chargen scripts, so maybe a safer option is
SetName(GetHero(), "Susan") ;
in your module event script, immediately after character generation.

#17
Nattfodd

Nattfodd
  • Members
  • 321 messages
Thanks.



How do you discovered SetName() was the right function?

#18
Proleric

Proleric
  • Members
  • 2 343 messages
Honest answer? SetName is the function I'd use in NWN. So I looked to see whether it exists in DAO, which it does.

Professional answer? Search for a suitable function using the index. Right now, SetName is under Appearance functions, which isn't especially intuitive IMO. There's a discussion going on in the wiki editors' group about potential improvements to this documentation.

Alternatively, in the toolset you can filter function names. Knowing that the field you want to change is called Name, filtering on Name tells you that there are functions called GetName, SetName etc. Click on a function to display its syntax in the help window. This method works quite well, but you can get caught out - for example, stuff about placeables contains the letters PLC but not the word placeable.

Modifié par Proleric1, 04 janvier 2010 - 07:25 .


#19
Nattfodd

Nattfodd
  • Members
  • 321 messages
Thanks for you answer, that seems obvious but it isn't.



I known the filtering method but i can't find this help window that you are taking about. I'll try to search it.

#20
cstanish

cstanish
  • Members
  • 90 messages

Proleric1 wrote...

Honest answer? SetName is the function I'd use in NWN. So I looked to see whether it exists in DAO, which it does.

Professional answer? Search for a suitable function using the index. Right now, SetName is under Appearance functions, which isn't especially intuitive IMO. There's a discussion going on in the wiki editors' group about potential improvements to this documentation.


Somewhere in between Proleric1's two answers, I'm going to say how I worked out the SetName function: 

I had the builder-to-builder package for someone else's mod (Red Riding Hood Redux).  It had a custom character in it, so I looked at the script in that one and determined how he did it from there.

I've learned more looking at existing scripts than anywhere else.  The Demo Tutorial module that comes with the toolset is also very handy for this.

#21
Nattfodd

Nattfodd
  • Members
  • 321 messages
Yes now i'm trying this way. I'm looking into single player and demo module scripts, It's no simple because of not all scripts contains detailed comments, but they could help a lot.

#22
pfellah

pfellah
  • Members
  • 2 messages
I agree with Tact. Until someone comes up with a tutorial about scripts and plots that the average person can understand (think, 39yo housewife), I'm going to be at a loss. It will be difficult to encourage new people to learn about modding if the Wiki's and such assume a level of basic knowledge (terminology, boolean logic and how objects work together) that isn't there. ;) St4rdog is my hero, for example...and telling people "just read the Wiki more carefully" isn't fair to a lay person who really wants to learn because a lot of the Wiki stuff makes no freekin' sense.

#23
beaukane

beaukane
  • Members
  • 24 messages
have solved the problem to buypass chargen and get a character of any race, class, gender, background and any name you choose. i will post the script but it still leaves you with a bald character. i just hope it helps and somebody can figure out how to change the facial features.

#include "sys_chargen_h"
#include "utility_h"

void main()
{
        // keep track of whether the event has been handled
        int nEventHandled = FALSE;

        event ev = GetCurrentEvent();
        switch(GetEventType(ev))
        {
                case EVENT_TYPE_MODULE_START:
                {
                         object oHero = GetHero();

                         // skip character generation
                        Chargen_InitializeCharacter(oHero);
                        Chargen_SelectGender(oHero, GENDER_MALE);
                        Chargen_SelectRace(oHero, RACE_DWARF);
                        Chargen_SelectCoreclass(oHero, class_WARRIOR);
                        Chargen_SelectBackground(oHero, BACKGROUND_NOBLE);

                        SetName(oHero, "Gimli");

                        // give the player some equipment
                        EquipItem(oHero, UT_AddItemToInventory(R"gen_im_arm_cht_lgt_rlr.uti"));
                        EquipItem(oHero, UT_AddItemToInventory(R"gen_im_arm_bot_lgt_rlr.uti"));
                        EquipItem(oHero, UT_AddItemToInventory(R"gen_im_arm_glv_lgt_rlr.uti"));
                        EquipItem(oHero, UT_AddItemToInventory(R"gen_im_arm_shd_sml_wdn.uti"));
                        EquipItem(oHero, UT_AddItemToInventory(R"gen_im_wep_mel_lsw_lsw.uti"));

                        break;
               }
        }

        // if this event wasn't handled by this script fall through to the core script
        if(!nEventHandled)
        {
        HandleEvent(ev, RESOURCE_SCRIPT_MODULE_CORE);
        }
}


NOTE- JUST REPLACE THE THE GENDER, RACE, class, BACKGROUND AND NAME WITH ANY YOU CHOOSE. YOU CAN ALSO ADD EXTRA ITEMS JUST BY ADDING EXTRA LINES OR REPLACE EXISTING ITEMS

Modifié par beaukane, 20 janvier 2010 - 09:55 .


#24
Sunjammer

Sunjammer
  • Members
  • 925 messages

cstanish wrote...

I had the builder-to-builder package for someone else's mod (Red Riding Hood Redux).  It had a custom character in it, so I looked at the script in that one and determined how he did it from there.

Yay! Always good to know it has helped someone as that was the main reason for uploading it.

#25
Sunjammer

Sunjammer
  • Members
  • 925 messages

beaukane wrote...

have solved the problem to buypass chargen and get a character of any race, class, gender, background and any name you choose. i will post the script but it still leaves you with a bald character. i just hope it helps and somebody can figure out how to change the facial features.

That solution (minus the SetName line) already exists as the second example in the wiki's Character Generation article.

Also there does not currently appear to be a way to set a creatures head/morph through scripting. Hopefully this will be addressed by BioWare in the not to distant future.