Author Topic: Modifying a Standard Palette Resource  (Read 380 times)

Legacy_Thayan

  • Sr. Member
  • ****
  • Posts: 435
  • Karma: +0/-0
Modifying a Standard Palette Resource
« on: December 17, 2013, 04:39:55 pm »


               As I am just making my first attempts at custom content modifications, I apologize up front for what are probably very basic questions.

First off, I am looking to modify a Standard palette item. Specifically, I have modified a spell's duration (Greater Planar Binding) and I want to change the spell scroll to reflect that change. I understand that doing so will place it in the custom palette, I believe? I was able to export the nw_it_sparscr803.uti file for that spell scroll using NWN Explorer, but I cannot for the life of me figure out how to modify the description in the .uti for that spell scroll. Can someone explain to me how that is done?

Next, I would like to modify the Knock spell so that the targeting cursor doesn't come up. I find it unnecessary that the person has to target themselves to cast the spell and want it to simply cast immediately without the PC having to target him/herself. I have looked through the spells.2da and see that the TargetType column for it appears to already be set to self-only (0x09), so what else should I change so that it casts immediately without the PC having to target him/herself with it? Also, would anything different need to be done to change the item property Cast Spell: Knock to function this was as well?
               
               

               
            

Legacy_Zwerkules

  • Hero Member
  • *****
  • Posts: 1997
  • Karma: +0/-0
Modifying a Standard Palette Resource
« Reply #1 on: December 17, 2013, 05:05:03 pm »


               The descriptions for spells are in the tlk file. If you want to change them, either change the main tlk which would mean that the description is changed in every module, or you make a custom tlk file with your changed descriptions and edit the 2da file which point to lines in the main tlk file so that they point to lines in your custom tlk file.
Haven't worked with spells in years, so I don't remember all the details. There is spells.2da which you have to change, I don't remember if there's another 2da file that has to be changed, too.
I also don't remember the line number the first line of a custom tlk needs to have. Sorry!
Maybe someone else can provide that information.
               
               

               
            

Legacy_Thayan

  • Sr. Member
  • ****
  • Posts: 435
  • Karma: +0/-0
Modifying a Standard Palette Resource
« Reply #2 on: December 17, 2013, 05:38:09 pm »


               Ok - we do have a custom .tlk file in which I have already modified the description of the spell there. It shows up correctly in my spellbook so I assume I did that right...?

But when I place the Greater Planar Binding scroll in an area of the module and then look at it, it still has the old duration in its descirption. So that is why I am assuming I need to modify the .uti item and add that to the hak as well.
               
               

               
            

Legacy_The Amethyst Dragon

  • Hero Member
  • *****
  • Posts: 2981
  • Karma: +0/-0
Modifying a Standard Palette Resource
« Reply #3 on: December 17, 2013, 07:20:25 pm »


               You could simply right-click on the existing scroll in the toolset, pick "Edit Copy", update the description, and add the resulting new item in place wherever the old one could be found.

For Knock, edit the spell in spells.2da.  You want to change the target type to 0x01 (which is "self only").
               
               

               
            

Legacy_Thayan

  • Sr. Member
  • ****
  • Posts: 435
  • Karma: +0/-0
Modifying a Standard Palette Resource
« Reply #4 on: December 17, 2013, 07:44:27 pm »


               Hmmm - well that sounds easy enough, although I'm not sure how to add the resulting new item wherever the old one was found. I can't give the copy the same resrerf as the original, so it will end up with a different resref using the toolset. Is there some external tool I can use to change the resref of the copied item outside of the toolset, or could you explain a little more how to do that?

I found out that by modifying the Range column in the spells.2da for Knock from M to P (personal) that it will now cast the spell instantly without the PC having to target him/herself. So I have that sorted at least. However it appears that for all the Cast Spell item properties though that there may not be a way to have them cast without targeting (even if the spell can only be cast on one's self).

Again - apologies for what might be very basic questions. I'm on my second day of trying to figure this stuff out...
               
               

               


                     Modifié par Thayan, 17 décembre 2013 - 07:47 .