Author Topic: After adding custom scrolls and spells, how does a Wizard add?  (Read 583 times)

Legacy_Ivanovich

  • Full Member
  • ***
  • Posts: 142
  • Karma: +0/-0


               I've added the custom spells to 2da, icons and all, and everything functions just as it should.  Now i'd like to add the scrolls so Wizards can add them as need be when purchasing or finding the scrolls.  It would appear that adding a custom scroll to the game does not give it the ability to select "cast spell - " and then the custom spell.  Ie, the custom spells don't show up in the property section of Cast Spell.

What is required to accomplish this?  Thank you in advance.
               
               

               
            

Legacy_The Amethyst Dragon

  • Hero Member
  • *****
  • Posts: 2981
  • Karma: +0/-0
After adding custom scrolls and spells, how does a Wizard add?
« Reply #1 on: June 07, 2011, 04:44:47 pm »


               You need to add the spell(s) to iprp_spells.2da.

You can add multiple entries per spell, with different caster levels for adding to multiple items.  The lowest level one should be the minimum level needed to cast the spells.  You'll also want to add entries to your .tlk file so that the caster level is indicated in the spells name for this 2da file, such as "Magic Missile (1)", and use this name for the spell name in the 2da rather than the regular spell name that you used in spells.2da.

You should also create a scroll icon (32x32) for your spells.  If you regular spell icon is "is_newspell", your scroll one should be "iss_newspell".

Good luck!
               
               

               


                     Modifié par The Amethyst Dragon, 07 juin 2011 - 03:49 .
                     
                  


            

Legacy_Ivanovich

  • Full Member
  • ***
  • Posts: 142
  • Karma: +0/-0
After adding custom scrolls and spells, how does a Wizard add?
« Reply #2 on: June 07, 2011, 06:05:34 pm »


               I've created the icons, added to the tlk and changed the spells.2da accordingly.  I think the missing piece is the iprp.spells.2da.  

I appreciate your response.  Thank you.
               
               

               
            

Legacy_Artistmonk

  • Jr. Member
  • **
  • Posts: 54
  • Karma: +0/-0
After adding custom scrolls and spells, how does a Wizard add?
« Reply #3 on: June 08, 2011, 02:17:50 am »


               custom spells, does this require haks????
               
               

               
            

Legacy_The Amethyst Dragon

  • Hero Member
  • *****
  • Posts: 2981
  • Karma: +0/-0
After adding custom scrolls and spells, how does a Wizard add?
« Reply #4 on: June 08, 2011, 03:01:04 am »


               

Artistmonk wrote...

custom spells, does this require haks????

Yes.  You'll need to include new spell icons, new scroll icons, edited spells.2da, and edited iprp_spells.2da files for adding new spells.

You'll also want a custom .tlk file for holding spell names and descriptions for in-game use.  I recommend using Axe's Killer TLK Editor (link), as it's fast and will easily give you the adjusted entry numbers you'll need for the 2da files.
               
               

               


                     Modifié par The Amethyst Dragon, 08 juin 2011 - 02:03 .
                     
                  


            

Legacy_MrZork

  • Hero Member
  • *****
  • Posts: 1643
  • Karma: +0/-0
After adding custom scrolls and spells, how does a Wizard add?
« Reply #5 on: June 08, 2011, 03:59:09 am »


               There are a few other 2DA files to tweak if you want you custom spells to be available as a typical Bioware spell would be, both in the Toolset and to the PCs. Most of the files and 2DA stuff you can figure out how to modify pretty easily, once you know that you need to modify them. Here is a version of my spell HAK, just to show what files go in it (and those 2DA files that you might want to edit).

[b]zork_spells.hak [/b]
[i]Blueprint, Items [/i]
  deadshot.uti
  soundray uti
  soundray26.uti
  sunshards.uti
  sunshards24.uti
[i]Game Data [/i]
  IPRP_SPELLS.2da
  des_craft_scroll.2da  
  des_craft_spells.2da  
  iprp_spellcost.2da  
  spells.2da
[i]Images, Icon, Scroll [/i]
  iss_deadshot,tga
  iss_soundray,tga
  iss_sunshards.tga
[i]Images, Icon, Spell [/i]
  is_deadshot.tga
  is_soundray.tga
  is_sunshards.tga
[i]Scripts [/i]
  meb_deadshot.nss
  meb_soundray.nss
  meb_sunshards.nss
[i]Scripts, Compiled [/i]
  meb_deadshot.ncs
  meb_soundray.ncs
  meb_sunshards.ncs

Most of it is pretty self explanatory. There are three spells: Dead Shot, Sound Ray, and Sun Shards and the HAK has everything (that I know about) to add them to a module, including scrolls at the lowest caster level for each and at epic levels for the latter two. That and the TLK file complete the package.
               
               

               


                     Modifié par MrZork, 08 juin 2011 - 03:01 .
                     
                  


            

Legacy_SirMarhalt

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
After adding custom scrolls and spells, how does a Wizard add?
« Reply #6 on: August 04, 2011, 10:23:06 am »


               Very informative MrZork.

However I still have a problem.

I've added the necessary lines into the 2da spells, iprp spells, and iprp spellcost.  However my system does not seem to have the des craft scroll nor does it have the des craft spells 2da files.

Any idea where the Des Craft files came from?  I'm using NWN 1.68.

My problem is basically this:  I can see the spells in the Toolset when I create an NPC.  I can give that NPC these spells.  However I can not create a scroll with the spells on them.  Hence it is impossible to have a PC memorize them.

Hope you are still reading here.

Thanks,

Marhalt
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
After adding custom scrolls and spells, how does a Wizard add?
« Reply #7 on: August 04, 2011, 11:42:16 am »


               1.69 full 2da source, there you can find those 2das.

First you need to create iprp_spells entry for your spell, then you need to reload mod/restart toolset and then you will be able to create an scroll item with your custom spell. As you need to make this item in order to set up crafting.
               
               

               
            

Legacy_SirMarhalt

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
After adding custom scrolls and spells, how does a Wizard add?
« Reply #8 on: August 04, 2011, 03:41:27 pm »


               So I have to upgrade to 1.69 since I'm still using 1.68?

I guess the changes in the past 2-3 years have been enough to make it impossible to put in new spells without the current patch.  I was able to do this 2-3 years ago and I believe I was running 1.67, which was the patch that the module I wish to run was using at the time.

Since then the mod was upgraded to 1.68.  But it seems that with only 1.68 you can not put in custom spells with just the Spells 2da file and whatever custom Tlk file you are using.  For that is all I had to do back then.  Anyone else have this problem?

Anyways, I'm guessing from your post that I have to do an upgrade to 1.69?  Is this correct?

Thanks,

Marhalt
               
               

               
            

Legacy_The Amethyst Dragon

  • Hero Member
  • *****
  • Posts: 2981
  • Karma: +0/-0
After adding custom scrolls and spells, how does a Wizard add?
« Reply #9 on: August 04, 2011, 03:57:12 pm »


               You can add custom spells with just spells.2da and a custom .tlk file (and a spell icon).  You just wouldn't be able to have spell scrolls (or wands or potions or other items) that use those new spells without at least iprp_spells.2da entries.

It's a good idea to upgrade to 1.69 anyway, simply because that's the version most players will be using these days and it's the final update.
               
               

               
            

Legacy_SirMarhalt

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
After adding custom scrolls and spells, how does a Wizard add?
« Reply #10 on: August 05, 2011, 03:15:32 am »


               Well since the entire point of this is for a PC to have the spells, I'd need them to be able to be put on a scroll.  

So after creating the iprp_spells, iprp_spellcost, des_craft_spells, and des_craft_scrolls, and it STILL not working.....

Anyone have a suggestion?

Marhalt
               
               

               
            

Legacy_Axe_Murderer

  • Full Member
  • ***
  • Posts: 199
  • Karma: +0/-0
After adding custom scrolls and spells, how does a Wizard add?
« Reply #11 on: August 05, 2011, 04:16:13 am »


               Sounds like you didn't do iprp_spells correctly to me. If you can see the spell and give it to NPCs then spells.2da is ok. To then be able to put it on a scroll, you only need iprp_spells to have an entry linking to it in spells.2da, and a tlk entry so the name shows up.
               
               

               
            

Legacy_SirMarhalt

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
After adding custom scrolls and spells, how does a Wizard add?
« Reply #12 on: August 05, 2011, 09:09:55 am »


               Axe you're a freaking genius!!!

So thinking I was doing the correct thing, I used the actual STRREF number instead of the custom one.  Duh!

Note to self:  spacing in 2DA files are only for human's convienence.  Apparently long as the columns are correct, the program will use them.

Thanks alot Axe.  And your Tlk program is awesome.  It is truly Killer.

Marhalt
               
               

               
            

Legacy_SirMarhalt

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
After adding custom scrolls and spells, how does a Wizard add?
« Reply #13 on: August 05, 2011, 07:28:48 pm »


               Another quick question, but perhaps there is not an easy answer.

Why can't you add on to the end of the Dialog.tlk any custom spells, whatever, even all of the CEP content if you wanted to work that hard, and then use the Dialog.tlk to play the original campaign?

You'd have to copy it as a module and change all of the relavant 2da files.   So granted it would be a huge job.

But I have heard there is a limitation on how long the Dialog.tlk can be?  Is this true or not?

Thanks,

Marhalt
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
After adding custom scrolls and spells, how does a Wizard add?
« Reply #14 on: August 05, 2011, 08:19:17 pm »


               If there is limitation its very high. The reason why custom TLK is used is for compatibility reason. There are already few projects that uses these lines after end of the TLK (NWEnhanced etc.) so your version would override theirs and viceversa.