Jump to content

Lingering problems with a custom priest kit


Rana

Recommended Posts

Hey guys. I've been in a helpful ongoing discussion on the General forum working through the various issues I've had with creating my first ever kit. I feel that I'm getting somewhat close to the finish line now, but there are few issues I have with the mod still. Try as I might, I can't seem to figure out just why I'm having these problems, even when comparing my .tp2 to the file it was based on.

 

In this case I'm creating an Alaghar of Clangeddin kit that incorporates Divine Remix. These are the remaining issues with the kit:

 

* Kit is getting no innates, including the favored weapon

* Kit is getting no HLAs

* Kit is getting no Holy Symbol

* Kit doesn't "gain" spells on level up in the manner that Divine Remix kits do - ie: they display in the message box on level up

 

I feel like I probably left something simple out, but I can't imagine what it could be. This is the script in it's current working form:

 

BEGIN ~Alaghar Kit~
ADD_KIT ~RW#Alaghar~
 ~RW#Algahar                0           0           1           0           0           1           1           0~
 ~RW#Alaghar 0 0 0 0 2 2 3 1 0 0 0 3 0 0 0 0 2 2 0 0 2 2 2 0 0 0 0 1 2 2 2 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0~
 ~RW#Alaghar                15      0       0       0       9       0~
 ~RW#Alaghar                0       0       0       0       0       0~
 ~RW#Alaghar                0       0       0       0       0       0~
 ~RW#Alaghar                0       0       0       0       15      0~
 ~RW#Alaghar                1       1       0       1       0       0       0      0       0~
 ~RW#Alaghar                1       0       0       0       0       0~
 ~Alaghar/RW#Alaghar.2da~
 ~K_C_D K_C_E K_C_G K_C_H K_C_HE K_C_HL K_C_HO~
 ~0x00004000     3~
 ~C11~
 ~CHAN09 * HELM07 BAG20 RING06 RING31 * BOOT01 AMUL19 BRAC16 BELT06 AROW11,40 BULL03,40 BOLT06,40 POTN52,5 POTN04,2 POTN14,5 HAMM07 SW1H27 STAF08~
 SAY ~alaghar of clangeddin~
 SAY ~Alaghar of Clangeddin~
 SAY ~ALAGHAR OF CLANGEDDIN: cut for length~

// add spells to base abilities
INCLUDE ~Divine_Remix/lib/macro_reindex_clab.tph~
INCLUDE ~Divine_Remix/lib/macro_spell_remove_good.tph~ // removes inappropriate spells for good deities
COPY_EXISTING ~rw#alaghar.2da~ ~override~
 APPEND_FILE ~Divine_Remix/spheres/al_major.2da~
 APPEND_FILE ~Divine_Remix/spheres/co_major.2da~
 APPEND_FILE ~Divine_Remix/spheres/gu_major.2da~
 APPEND_FILE ~Divine_Remix/spheres/lw_major.2da~
 APPEND_FILE ~Divine_Remix/spheres/pr_major.2da~
 APPEND_FILE ~Divine_Remix/spheres/su_major.2da~
 APPEND_FILE ~Divine_Remix/spheres/wa_major.2da~
 APPEND_FILE ~Divine_Remix/spheres/cm_minor.2da~
 APPEND_FILE ~Divine_Remix/spheres/cr_minor.2da~
 APPEND_FILE ~Divine_Remix/spheres/di_minor.2da~
 APPEND_FILE ~Divine_Remix/spheres/ee_minor.2da~
 APPEND_FILE ~Divine_Remix/spheres/he_minor.2da~
 APPEND_FILE ~Divine_Remix/spheres/ee_minor.2da~
 APPEND_FILE ~Divine_Remix/spheres/ne_minor.2da~
 APPEND_FILE ~Divine_Remix/spheres/tr_minor.2da~
 APPEND_FILE ~Divine_Remix/spheres/wd_minor.2da~
 APPEND_FILE ~Divine_Remix/spheres/lastline.2da~
 LAUNCH_PATCH_MACRO ~spell_remove_good~ // removes inappropriate spells for good deities
 LAUNCH_PATCH_MACRO ~reindex_clab~ // re-index lines
 BUT_ONLY_IF_IT_CHANGES


// change spells to innates as needed
INCLUDE ~Divine_Remix/lib/macro_spell_to_innate.tph~ // defines patch macro
COPY_EXISTING ~sppr102.spl~ ~override/RW#COMMD.spl~ // Command
             ~sppr213.spl~ ~override/RW#HAMMR.spl~ // Spiritual Hammer
             ~sppr312.spl~ ~override/RW#STRON.spl~ // Strength of One
             ~sppr406.spl~ ~override/RW#DEFHR.spl~ // Defensive Harmony
             ~sppr603.spl~ ~override/RW#BLABR.spl~ // Blade Barrier
 LAUNCH_PATCH_MACRO ~spell_to_innate~ // change to innate spell
 BUT_ONLY_IF_IT_CHANGES



ACTION_IF FILE_EXISTS_IN_GAME ~mel01.cre~ THEN BEGIN // hla table and abilities if ToB is installed



 INCLUDE ~Divine_Remix/lib/extra_regexp_vars.tph~

 INCLUDE ~Divine_Remix/lib/macro_build_hla_table.tph~
 INCLUDE ~Divine_Remix/lib/macro_hla_remove_good.tph~ // removes inappropriate spells for good deities
 COPY ~Alaghar/luala.2da~ ~override~ // HLA file
   APPEND_FILE ~Divine_Remix/spheres/al_hla.2da~
   APPEND_FILE ~Divine_Remix/spheres/co_hla.2da~
   APPEND_FILE ~Divine_Remix/spheres/gu_hla.2da~
   APPEND_FILE ~Divine_Remix/spheres/lw_hla.2da~
   APPEND_FILE ~Divine_Remix/spheres/pr_hla.2da~
   APPEND_FILE ~Divine_Remix/spheres/su_hla.2da~
   APPEND_FILE ~Divine_Remix/spheres/wa_hla.2da~
   LAUNCH_PATCH_MACRO ~hla_remove_good~ // removes inappropriate spells for good deities
   LAUNCH_PATCH_MACRO ~build_hla_table~ // re-order HLAs, remove dupes, and re-index

 COPY_EXISTING ~RW#Alaghar.2da~ ~override~
   SET_2DA_ENTRY 0 25 51 ~AP_CDHLYSYM~

 EXTEND_TOP ~baldur.bcs~   ~Alaghar/baldur.baf~
 EXTEND_TOP ~baldur25.bcs~ ~Alaghar/baldur.baf~

 COPY ~Alaghar/iax1h03.bam~ ~override~ // holy symbol
 COPY ~Alaghar/cax1H01.bam~ ~override~
 COPY ~Alaghar/rw#ala25.itm~  ~override~
   SAY NAME1 ~Holy Symbol of Clangeddin~
   SAY NAME2 ~Holy Symbol of Clangeddin~
   SAY UNIDENTIFIED_DESC ~cut for length~
   SAY DESC ~cut for length~

 ACTION_IF NOT FILE_EXISTS_IN_GAME ~cdprcry.spl~ THEN BEGIN

   COPY_EXISTING ~spcl908.spl~ ~override/cdprcry.spl~ // hla war cry
     SAY UNIDENTIFIED_DESC @191

 END

// area for racial bonus vs giants


// area for innates
COPY ~Alaghar/rw#ala2t.spl~ ~override~  // Additional Attack per round (innate)

COPY ~Alaghar/rw#ala0b.spl~ ~override~  // Giantbane (innate)
 SAY NAME1 ~Battleaxe - 'Giantbane'~
 SAY NAME2 ~Battleaxe - 'Giantbane'~
 SAY UNIDENTIFIED_DESC ~cut for length~
 SAY DESC ~cut for length~

COPY ~Alaghar/cdialag.bam~ ~override~
COPY ~Alaghar/rw#ala00.itm~  ~override~  // Giantbane +0
 SAY NAME1 ~Battleaxe - 'Giantbane'~
 SAY NAME2 ~Battleaxe - 'Giantbane'~
 SAY UNIDENTIFIED_DESC ~cut for length~
 SAY DESC ~cut for length~
 SET "weap_idx" = 0

COPY_EXISTING ~rw#ala00.itm~ ~override/rw#ala01.itm~  // Giantbane +1
             ~rw#ala00.itm~ ~override/rw#ala02.itm~  // Giantbane +2
             ~rw#ala00.itm~ ~override/rw#ala03.itm~  // Giantbane +3
             ~rw#ala00.itm~ ~override/rw#ala04.itm~  // Giantbane +4
             ~rw#ala00.itm~ ~override/rw#ala05.itm~  // Giantbane +5
 SET "weap_idx" = ("%weap_idx%" + 1)
 WRITE_LONG  0x60 "%weap_idx%"
 WRITE_SHORT 0x86 "%weap_idx%"
 WRITE_SHORT 0x8C ("%weap_idx%" + 1)
 WRITE_SHORT 0x84 (7 - "%weap_idx%")

END

 

For the record the spells and abilities and items are installing into the game, they just aren't being applied to the kit for some reason. If anyone could help me out I would really appreciate it! Thanks!

Link to comment
* Kit is getting no innates, including the favored weapon

* Kit doesn't "gain" spells on level up in the manner that Divine Remix kits do - ie: they display in the message box on level up

This may be because your CLAB-style .2da file is named RW#Alaghar.2da. It should be 8 characters or less - consider rw#alagh.2da.

 

Also note that if you don't have DR installed, you won't be able to prevent divine kits from gaining all standard spells upon levelling up. What DR does to avoid this is change every spell so that no kits or classes get them automatically, then change the CLAB of every divine kit and class so that each spell that they should get is added manually at a certain level. Your mod should probably require that DR be installed.

 

* Kit is getting no HLAs

This is because the HLA table you copy over is named luala.2da, while the HLA table assigned to your kit is luc11.2da (the line ~C11~ in your ADD_KIT command corresponds to this). I'd recommend changing them to match and sticking your prefix on it, so it ends up something like lurw#ala.2da.

 

* Kit is getting no Holy Symbol

Not sure about this; try checking your baldur.baf.

Link to comment

I do have Divine Remix installed - actually the kit was made with that mod in mind. Thanks for the tips! I thought I remembered reading something about 8 letters or less but I wasn't sure. I'll apply the changes and see what happens!

 

Edit: Hey man I just wanted to say that you're a lifesaver. I knew it had to have been something stupid and simple but I kept missing it. Everything works now for the most part save some minor things here and there that I should be able to take care of on my own.

 

Now I just have to tweak it a bit more and we should be all set!

Link to comment

Archived

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

×
×
  • Create New...