Author Topic: Adding a spell to IWD  (Read 1573 times)

Offline plainab

  • Sasha al'Therin
  • Planewalker
  • *****
  • Posts: 491
    • Infinity Engine Modding
Adding a spell to IWD
« on: April 10, 2009, 03:32:16 PM »
First off, I've got IWD + HOW + TOTLM.  I've got a whole slew of mods, but I'll be removing them so that I can work with a clean install.

I wish to add a spell and use it in a script.  It won't be displayed in any of the spell books so I don't need to give it a name or a description.  I've already created the spell.  What I want to know is since there is no ApplySpellRES in IWD+HOW+TOTLM must I name the spell along the lines of spinXXX.spl (where XXX is a number) or can I name it whatever I want with my prefeix (such as abXXX.spl)?  Also, if I use my own name how will the game match up my spell with the added entry in the spells.ids file?  Any suggestions or ideas?

Currently, the spell works and is saved as spin200.spl as that was a non-existing spell and 3200 was an unused value in the IDS file.
My working mods:
an AI Party Script for BG2 game engine DOWNLOAD LINK ONLY!
Interactive Tweaks for BG series with some IWD support. DOWNLOAD LINK ONLY!
Rest For 8 Hours an IWD mod
-------------------------------------------
My contributions: BG1Fixpack, BG1Tweaks
On Hold: Solestia an NPC for SOA
-------------------------------------------
My website: http://sasha-altherin.webs.com

Offline plainab

  • Sasha al'Therin
  • Planewalker
  • *****
  • Posts: 491
    • Infinity Engine Modding
Re: Adding a spell to IWD
« Reply #1 on: April 11, 2009, 10:32:10 PM »
After some trial and error I found out that if I add the ApplySpellRES action from BG2 into IWD+HOW+TOTL that it will indeed work.  So I can use custom names with my prefix now.

May want to make a note somewhere that if ApplySpellRES is added to the action.ids in IWD+HOW+TOTL that it will function as advertised in BG2
My working mods:
an AI Party Script for BG2 game engine DOWNLOAD LINK ONLY!
Interactive Tweaks for BG series with some IWD support. DOWNLOAD LINK ONLY!
Rest For 8 Hours an IWD mod
-------------------------------------------
My contributions: BG1Fixpack, BG1Tweaks
On Hold: Solestia an NPC for SOA
-------------------------------------------
My website: http://sasha-altherin.webs.com

Offline Echon

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 1941
  • Gender: Male
    • The Fields of the Dead
Re: Adding a spell to IWD
« Reply #2 on: April 12, 2009, 02:25:19 AM »
May want to make a note somewhere that if ApplySpellRES is added to the action.ids in IWD+HOW+TOTL that it will function as advertised in BG2

The IESDP already says so. It is #160. http://iesdp.gibberlings3.net/scripting/actions/totlactions.htm

Offline plainab

  • Sasha al'Therin
  • Planewalker
  • *****
  • Posts: 491
    • Infinity Engine Modding
Re: Adding a spell to IWD
« Reply #3 on: April 12, 2009, 09:05:47 AM »
May want to make a note somewhere that if ApplySpellRES is added to the action.ids in IWD+HOW+TOTL that it will function as advertised in BG2

The IESDP already says so. It is #160. http://iesdp.gibberlings3.net/scripting/actions/totlactions.htm
That's what led me to try it out, but there is nothing in the IESDP that says you must add it into the action.ids file.  The way it reads it is assumed to already be within the file.  That's why there should be a note about adding it...
My working mods:
an AI Party Script for BG2 game engine DOWNLOAD LINK ONLY!
Interactive Tweaks for BG series with some IWD support. DOWNLOAD LINK ONLY!
Rest For 8 Hours an IWD mod
-------------------------------------------
My contributions: BG1Fixpack, BG1Tweaks
On Hold: Solestia an NPC for SOA
-------------------------------------------
My website: http://sasha-altherin.webs.com

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: