Jump to content

Home

Need Help with Scripting / dialogue and whatever else


Colma Adawin

Recommended Posts

<Copied from previous post>

 

hey ppl, im in the middle of making my own PADAWAN MOD!!! (not another one) yes, i know, im sad, but it throws me into Dlg editing and scripting, so its time for the question round:

 

1) how do i change Trask to another SW charater? at the moment, im seeing which race suits my supposed Jedi Master, and im sick of human jedi masters, and, also......

 

.....2) i wish to add an alien sound to my Jedi Master as it adds more of a feeling to the mod.

 

3) how do give the appropiate Jedi Class to my PC?

3a) oh, is it possible for me to put:

 

1) Single Bladed Sabre

2) Short Bladed Sabre

3) Dual Bladed Sabre

4) 2 single bladed sabre

5) 2 Short bladed sabre

6) 2 Dual bladed sabres

 

then

 

if i choose 1 to 3, then it would go into the blade's colour eg

Blue

Red

Green

Yellow

Purple

 

and for 4 to 6, it would go

what colour do you want your first sabre to be?

<you choose>

what do you want your second sabre colour to be?

<you choose>

 

im goin to try and make the Ultimate Holowan Padawan Mod (UHPM) for short

 

ANY help on ANY of my questions, is much apprieated,

 

Thanx for the help ppl

 

MattCole

 

PS D333, now worry dear lady, you have a vaild point

Link to comment
Share on other sites

Originally posted by MattColejk

1) how do i change Trask to another SW charater? at the moment, im seeing which race suits my supposed Jedi Master, and im sick of human jedi masters, and, also......

Trask NPC file is called end_trask.utc. Simply edit it with KT chosing another of the available apperarance or better yet make a custom one in app.2da and edit end_trask.utc with NWNEditor.

.....2) i wish to add an alien sound to my Jedi Master as it adds more of a feeling to the mod.

It depends which alien you choose. Open any alien NPC dialog with KT or DLGEdit and you will find 2 fields called VO_Resref (that should have the lips sync file) and sound (the voice sound). When you create you NPC just use one of these references in your dialog.

3) how do give the appropiate Jedi Class to my PC?

3a) oh, is it possible for me to put:

 

1) Single Bladed Sabre

2) Short Bladed Sabre

3) Dual Bladed Sabre

4) 2 single bladed sabre

5) 2 Short bladed sabre

6) 2 Dual bladed sabres

I am working on a Padawan mod myself and this is the script i have used, after Grif Vindh one:

void main()
{
object oPC = GetFirstPC();
GiveXPToCreature(oPC,500);
AddMultiClass(4,oPC);
}

Guardian is Multiclass 3 and Sentinel is 5. You can easily add this type of command line to add any item you want:

 [size=1]CreateItemOnObject("g_a_sithrobe01",oPC);[/size]

then

 

if i choose 1 to 3, then it would go into the blade's colour eg

Blue

Red

Green

Yellow

Purple

 

and for 4 to 6, it would go

what colour do you want your first sabre to be?

<you choose>

what do you want your second sabre colour to be?

<you choose>

If i have undrstood it right all you need is to edit end_trask01.dlg as much as Grif Vindh, Achiles and Talchia did a while ago.

 

Good Luck.

 

Xavier2:)

Link to comment
Share on other sites

BTW, the VO_REsREf field is for spoken lines and does not have anything to see with the PC sounds. You have to change the soundset if you want to change the sounds that you PC makes during battle, etc. Check soundset.2da . You can also use KSE to do this.

Link to comment
Share on other sites

Originally posted by Darth333

BTW, the VO_REsREf field is for spoken lines and does not have anything to see with the PC sounds. You have to change the soundset if you want to change the sounds that you PC makes during battle, etc. Check soundset.2da . You can also use KSE to do this.

 

cool, thanx D333, does this apply for the NPC as well as? (i feel like a complete idiot :D)

 

Originally posted by Xavier2

Trask NPC file is called end_trask.utc. Simply edit it with KT chosing another of the available apperarance or better yet make a custom one in app.2da and edit end_trask.utc with NWNEditor.

 

It depends which alien you choose. Open any alien NPC dialog with KT or DLGEdit and you will find 2 fields called VO_Resref (that should have the lips sync file) and sound (the voice sound). When you create you NPC just use one of these references in your dialog.

 

right, i'd love to have a CUSTOM one, i'll look into end_trask.utc 2nite.

 

I am working on a Padawan mod myself and this is the script i have used, after Grif Vindh one:

void main()
{
object oPC = GetFirstPC();
GiveXPToCreature(oPC,500);
AddMultiClass(4,oPC);
}

Guardian is Multiclass 3 and Sentinel is 5. You can easily add this type of command line to add any item you want:

 [size=1]CreateItemOnObject("g_a_sithrobe01",oPC);[/size]

 

What??? :confused: :confused: :confused: :confused:

 

um, so, this code (dont know wat to do with it :() will give me the Jedi class and lightsabre so if i choose eg, Jedi Guardian --> i get that class. if i choose 2x dual bladed sabre, i'll get 2 dual bladed sabres?

 

ARGH! MY HEAD?!?!?!?!

okay, um, any chance for an extensively easy tutorial or run through, i got your first two sentences, the rest :eek:

 

MattCole

 

PS sorry for being a bit too dumb, it a bad habit of mine

Link to comment
Share on other sites

Originally posted by MattColejk

cool, thanx D333, does this apply for the NPC as well as? (i feel like a complete idiot :D)

Yes, just change the number in the .utc file soundset field to the corresponding number of soundset.2da

 

um, so, this code (dont know wat to do with it :() will give me the Jedi class and lightsabre so if i choose eg, Jedi Guardian --> i get that class. if i choose 2x dual bladed sabre, i'll get 2 dual bladed sabres?

[/b]

 

ok let's review the code - note that I slightly modified it ;) - :

void main()
{
[color=limegreen]//this line identifies the object you want to convert into a Jedi 
//- in this case the main PC[/color]
object oPC = GetFirstPC();

[color=limegreen]// this line gives 500 XP to the PC:[/color]
GiveXPToCreature(oPC,500);

[color=limegreen]//this line adds a new class to the PC - check the list at the bottom of this post:[/color]
AddMultiClass(CLASS_TYPE_JEDIGUARDIAN,oPC);
[color=limegreen]
// this adds the items you want in your PC's inventory - 
//in the present case a robe and a saber - insert the .uti template
//the number at the end is the amount of items you want to add (stack size):[/color]
CreateItemOnObject("g_a_sithrobe01",oPC,1);
CreateItemOnObject("g_w_dblsbr001",oPC,1);

[color=limegreen]This brings the level up screen so you can chose new powers, skills and feats[/color]
ShowLevelUpGUI();
}

 

The other classes are (extract from nwscript.nss):

 

int CLASS_TYPE_SOLDIER = 0;

int CLASS_TYPE_SCOUT = 1;

int CLASS_TYPE_SCOUNDREL = 2;

int CLASS_TYPE_JEDIGUARDIAN = 3;

int CLASS_TYPE_JEDICONSULAR = 4;

int CLASS_TYPE_JEDISENTINEL = 5;

int CLASS_TYPE_COMBATDROID = 6;

int CLASS_TYPE_EXPERTDROID = 7;

int CLASS_TYPE_MINION = 8;

 

You have to compile the script with nwnnsscomp.exe or Kotor tool (I find that for a few scripts, nwnnsscomp.exe, is much faster to use) - check the Guide for the Newbie for instructions.

 

Hope this helps.

Link to comment
Share on other sites

Originally posted by Darth333

Yes, just change the number in the .utc file soundset field to the corresponding number of soundset.2da

 

 

 

ok let's review the code - note that I slightly modified it ;) - :

void main()
{
[color=sky blue]//this line identifies the object you want to convert into a Jedi 
//- in this case the main PC[/color]
object oPC = GetFirstPC();

[color=sky blue]// this line gives 500 XP to the PC:[/color]
GiveXPToCreature(oPC,500);

[color=sky blue]//this line adds a new class to the PC - check the list at the bottom of this post:[/color]
AddMultiClass(CLASS_TYPE_JEDIGUARDIAN,oPC);
[color=sky blue]
// this adds the items you want in your PC's inventory - 
//in the present case a robe and a saber - insert the .uti template
//the number at the end is the amounts of items you want to add:[/color]
CreateItemOnObject("g_a_sithrobe01",oPC,1);
CreateItemOnObject("g_w_dblsbr001",oPC,1);

[color=sky blue]//This brings the level up screen so you can chose new powers, skills and feats[/color]
ShowLevelUpGUI();
}

 

The other classes are (extract from nwscript.nss):

 

int CLASS_TYPE_SOLDIER = 0;

int CLASS_TYPE_SCOUT = 1;

int CLASS_TYPE_SCOUNDREL = 2;

int CLASS_TYPE_JEDIGUARDIAN = 3;

int CLASS_TYPE_JEDICONSULAR = 4;

int CLASS_TYPE_JEDISENTINEL = 5;

int CLASS_TYPE_COMBATDROID = 6;

int CLASS_TYPE_EXPERTDROID = 7;

int CLASS_TYPE_MINION = 8;

 

You have to compile the script with nwnnsscomp.exe or Kotor tool (I find that for a few scripts, nwnnsscomp.exe, is much faster to use) - check the Guide for the Newbie for instructions.

 

Hope this helps.

 

EXCELLENT!!! now two questions :p <Darth333 in computer chair seething with hate for MattColejk> :D

 

1) where can i find / edit this code? (sorry) but thanx to you D333 i understand it

 

2) whats a minion class? or is it another bit of the game that the creators of KotOR didnt finish?

 

(hidden question) i cant find the nwnnsscomp.exe, could you please post the link?

 

i thank you all for your help, believe me when i say, its TOTALLY APPRIEATED!!!! THANK YOU!

 

MattCole

Link to comment
Share on other sites

Originally posted by MattColejk

EXCELLENT!!! now two questions :p <Darth333 in computer chair seething with hate for MattColejk> :D

 

1) where can i find / edit this code? (sorry) but thanx to you D333 i understand it

Check the Guide for the Newbie: it's all in there. Paste in Notepad and save with a .nss extension then compile.

2) whats a minion class? or is it another bit of the game that the creators of KotOR didnt finish?

It's used for some ennemies. Forget about it for your main PC.

(hidden question) i cant find the nwnnsscomp.exe, could you please post the link?

:snear: Read the Guide for the :newbie:...
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...