Jump to content

Implent a new kit during the game


StrongArmand

Recommended Posts

A friend of mine has created a NPC mod for Shadow of Amn and now she's trying to extend to TOB. But she has a little problem for change the kit of her character during the game. Here you have the kit :

 

ADD_KIT ~PISTEUR~
// Types d'armes autorisés - CLASWEAP
~PISTEUR	1	1	0	0	0	0	0	0~
// Compétences autorisees - WEAPPROF.2da
~PISTEUR	4 4 1 0 0 0 0 1 4 4 4 0 4 4 4 4 0 0 0 0 0 0 0 1 1 1 1 1 2 0 2 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0~
// Scores de caracteristiques minimaux necessaires - ABCLASRQ.2da
~PISTEUR	0	0	0	0	0	0~
// Modificateurs des scores de caracteristique - ABCLSMOD.2da
~PISTEUR	0	0	0	0	0	0~
// Caractéristiques minimales pour se jumeler VERS le kit - ABDCDSRQ.2da
~PISTEUR	0	0	0	0	0	0~
// Caractéristiques minimales pour se jumeler DEPUIS le kit - ABDCSCRQ.2da
~PISTEUR	0	0	0	0	0	0~
// Alignements autorisés - ALIGNMNT.2da
~PISTEUR	1	1	1	1	1	1	1	1	1	1~
//Possibilites de jumelage - DUALCLAS.2da
~PISTEUR	0	0	0	0	0	0~
// Habilités gagnées par niveau - 2da personnel
~Severian/kit/#Sclpist.2da~
//Races et classes acceptants le kit - Kittable.d2a
~~ //~K_R_H K_R_HE K_R_E~
// Autorisation d'objets - KITLIST.2DA
~0x40000010 12~
// Habiletés de Haut niveau - LUABBR.2DA
~Ra0~
//equipement au debut de TOB - 25STWEAP.2DA
~LEAT14 * HELM07 BAG25 RING06 RING31 CLCK02 BOOT01 AMUL19 BRAC16 BELT06 AROM11,80 * * POTN52,5 POTN4,2 POTN14,5 BOW12 SW1H73 STAF24~
//description du kit
SAY @101
SAY @102
SAY @103

// SEVERIAN STARK, UN HORS-LA-LOI POUR BALDUR'S GATE 2

// Soundset et fichier créature

COPY ~Severian/Dialogues/#SBlVide.dlg~ ~override/#SBlaidd.dlg~

COPY ~Severian/Creatures/#Sever.cre~ ~override~
SAY NAME1 @10
SAY NAME2 @10
SAY BIO @12
SAY BATTLE_CRY1 ~~ [#SBattle]
SAY LEADER ~~ [#SLeader]
SAY TIRED ~~ [#STired]
SAY BORED ~~ [#SBored]
SAY HURT ~~ [#SHurt]
SAY SELECT_COMMON1 ~~ [#SSel1]
SAY SELECT_COMMON2 ~~ [#SSel2]
SAY SELECT_COMMON3 ~~ [#SSel3]
SAY SELECT_ACTION1 ~~ [#SAct1]
SAY SELECT_ACTION2 ~~ [#SAct2]
SAY SELECT_ACTION3 ~~ [#SAct3]
SAY DAMAGE ~~ [#SDamage]
SAY DYING ~~ [#SDying]
//SAY SELECT_ACTION4 ~~ [HOMME4T]
//SAY SELECT_ACTION5 ~~ [HOMME4U]
SAY CRITICAL_HIT ~~ [#SCrHit]
SAY CRITICAL_MISS ~~ [#SCrMiss]
SAY TARGET_IMMUNE ~~ [#SImmun]
SAY INVENTORY_FULL ~~ [#SFull]
SAY HIDDEN_IN_SHADOWS ~~ [#SHidden]
SAY ATTACK1 ~~ [#SAttak1]
//SAY ATTACK2 ~~ [HOMME41]
SAY SPELL_DISRUPTED ~~ [#SSpell]
//SAY SELECT_RARE1 ~~ [HOMME4X]
//SAY SELECT_RARE2 ~~ [HOMME4Y]
SAY INITIAL_MEETING ~~ [#SMeet1]
//SAY INTERACTION1 ~~ [HOMME4S]
//SAY INTERACTION2 ~~ [HOMME4V]
//SAY MISCELLANEOUS ~~ [HOMME4_]
SAY AREA_DUNGEON ~~ [#SDungeo]
SAY AREA_FOREST ~~ [#SForest]
SAY AREA_DAY ~~ [#SDay]
SAY AREA_NIGHT ~~ [#SNight]
[color="#ff0000"]WRITE_BYTE  0x246 ~%PISTEUR%~[/color]

 

As you can see, the kit has impleted thanks to a WRITE command so in the tp2 file. But as I already said my friend would likes to change the kit of her character during the game. We have tried this command with another kit which is similar (exept some "@...") :

 

 

 IF ~Global("#SXXXXXXXXX","GLOBAL",5)~ THEN BEGIN X
SAY @X
IF ~~ THEN DO ~SetGlobal("#SXXXXXXXX","GLOBAL",6)
		   AddSuperKit("PISTEUR1")~ EXIT
END

 

However in game, "PISTEUR1" don't work and instead of her kit the game set ranger kit. Is it cause by a problem with AddSuperKit command ?

Link to comment
COPY ~Severian/Dialogues/#SBlVide.dlg~ ~override/#SBlaidd.dlg~
That's really cheese way to add anything as it can give you anything to the game as it has a lot of things in dependencies ... make your fiend create a .d file from the .dlg file and then ask, or make the .d file yourself from the files with this... as one can extend the dialog.tlk with the .d files... is your friend called "Ripper" by the way, as that prefix is theirs.

 

Like this would do for to a lot of files

COMPILE ~Esiriak/IJ#esir.d~
	~Esiriak/IJ#es25J.d~

APPEND ~pdialog.2da~
~IJ#esir IJ#esirP IJ#esirJ IJ#esirD IJ#es25P IJ#es25J IJ#es25D IJ#esi25~
UNLESS ~IJ#esir~
APPEND ~interdia.2da~
~IJ#esir IJ#esirA IJ#esirB IJ#esi25B~
UNLESS ~IJ#esir~

 

As the .dlg file is a pre-coded dialog file that can have disastrous results... like the one you mentioned above.

Link to comment
is your friend called "Ripper" by the way, as that prefix is theirs.

 

 

Yes that's ripper. But in the beginning she had'nt encode her mod herself (she was a begginer) so that's true that there are some piece of code which not encoded very well. :suspect:

 

Finally, we have correct this line and we have found another solution in using "tokens".

Link to comment

Archived

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

×
×
  • Create New...