Jump to content


Photo

How do "+x, +y vs. z" weapons work in Icewind Dale?


13 replies to this topic

#1 Angel

Angel
  • Members
  • 117 posts
  • Gender:Not Telling
  • Location:Netherlands

Posted 31 May 2017 - 09:43 AM

I'm currently looking at using some of my own mods with Icewind Dale (the original, not EE), and ran into something.

 

Icewind Dale has several weapons that are supposed to a special to-hit bonus against a certain creature type, for example Conlan's Hammer (+1, +5 vs. Iron Golems), Giant Killer (+1, +4 vs. Giants), Inconsequence (+4, +5 vs. Good and Evil), The Axe of Caged Souls (+3, +5 vs. Cadaverous Undead) and Pale Justice +4, +7 vs. Evil).  However, when I look at the item definitions of such items, I do not see any effects that give such a bonus.

 

So, does anyone know, how do such bonuses for these items work in the original Icewind Dale?  Do they even work at all?



#2 Jarno Mikkola

Jarno Mikkola

    The Imp

  • Modders
  • 6249 posts
  • Gender:Male
  • Location:The town where the dead haven't keeled over, yet. In Finland.

Posted 31 May 2017 - 11:07 AM

Well, maybe they should use the opcodes 178 and 179, but none of the files seem to have them... so ? Maybe they don't actually have any of that. :devlook: Or it's a .exe thing you need to find about.

In IWD:EE, this is done via the use eff opcode 177..


Welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand.
Here's how to install all the ... mods you ever really could want to Infinity Engine games. I removed the stable word from there as Roxanne began to add BS mods that are likely to break compatibility from the BWS.

#3 Avenger

Avenger
  • Modders
  • 3725 posts
  • Gender:Male
  • Location:Hungary

Posted 31 May 2017 - 11:08 AM

I don't have any iwd installed, but don't they have use eff file (177) in their equipping block?



#4 Jarno Mikkola

Jarno Mikkola

    The Imp

  • Modders
  • 6249 posts
  • Gender:Male
  • Location:The town where the dead haven't keeled over, yet. In Finland.

Posted 31 May 2017 - 11:41 AM

I don't have any iwd installed, but don't they have use eff file (177) in their equipping block?

The Near Infinity doesn't show one up... so I would guess no:

Ubq8stt.jpg


Welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand.
Here's how to install all the ... mods you ever really could want to Infinity Engine games. I removed the stable word from there as Roxanne began to add BS mods that are likely to break compatibility from the BWS.

#5 lynx

lynx
  • Modders
  • 3009 posts
  • Gender:Male
  • Location:Ljubljana, Slovenija

Posted 31 May 2017 - 12:21 PM

Indeed, it appears to be hardcoded. All the ZZ* weapons lack anything extra, but have the bonus in the description. There are several hits for ZZ in the exe, of course, but it'd be the place to start looking.


GemRB - IE anywhere.
Mages needed! Looking for Planescape: Torment testers
Market android version IS NOT SUPPORTED ANYMORE: reported bugs will be ignored! Still looking for builders ...

#6 Angel

Angel
  • Members
  • 117 posts
  • Gender:Not Telling
  • Location:Netherlands

Posted 01 June 2017 - 06:03 AM

Indeed, it appears to be hardcoded. All the ZZ* weapons lack anything extra, but have the bonus in the description. There are several hits for ZZ in the exe, of course, but it'd be the place to start looking.

 

Yeah, that's what I thought too.  And .exe hacking is beyond my current skills I'm afraid. (Is there even a guide to it?)

 

No item or spell in IWD uses opcodes 177, 178 or 179, and there isn't a single .eff file in the game so my guess is they won't work at all.  But I can give it a try, who knows, maybe they did carry over from BG. :-)



#7 Avenger

Avenger
  • Modders
  • 3725 posts
  • Gender:Male
  • Location:Hungary

Posted 02 June 2017 - 05:37 AM

Right, ZZ filename triggers some hardcode in the exe. It can change the attack roll based on alignment (all the instructions like alignment/race type and attack bonus are coded into the filename after ZZ). 

 

The targeting code (3. char) is: digit = alignment, letter = race

The numeric code (4. char) is translated to attack roll by this formula: 0: -5, 1: -4, 2: -3, 3: -2, 4: -1, 5: +1, 6:+2 ... 9: +5 (there is obviously no need for 0).

The rest of the filename is arbitrary.

 

The alignment code is: 0 - lawful, 1 - lcneutral, 2 - chaotic, 3 - good, 4 - geneutral, 5 - evil

The race code is:

A - GOLEM

B - LIZARDMAN

C - TANARI

D - ELEMENTAL

E - ORC

F - SALAMANDER

G - TROLL

H - GIANT

I - YUANTI

J - UNDEAD

K - UMBERHULK

L - GOBLIN

M - ELF

N -DWARF

O - GNOME

P - HALFLING

Q - HALFELF

R -HUMAN

S - SPIDER

T -BEETLE

U - GHOUL

V - MYCONID

W - SHRIEKER

X - WOLF

Y - OGRE

Z - SKELETON


Edited by Avenger, 02 June 2017 - 05:53 AM.


#8 Avenger

Avenger
  • Modders
  • 3725 posts
  • Gender:Male
  • Location:Hungary

Posted 02 June 2017 - 05:58 AM

This also means, some descriptions are definitely wrong.  

 

ZZG7TS - should have a vs. troll bonus of 3 (which is true)

ZZH8GK - should have a vs. giant bonus of 3 (according to its description), but it in fact is a +4. (over its normal +1) 



#9 lynx

lynx
  • Modders
  • 3009 posts
  • Gender:Male
  • Location:Ljubljana, Slovenija

Posted 02 June 2017 - 07:36 AM

Thanks for looking it up!


GemRB - IE anywhere.
Mages needed! Looking for Planescape: Torment testers
Market android version IS NOT SUPPORTED ANYMORE: reported bugs will be ignored! Still looking for builders ...

#10 Angel

Angel
  • Members
  • 117 posts
  • Gender:Not Telling
  • Location:Netherlands

Posted 02 June 2017 - 09:38 AM

Oh man, thanks Avenger, this is a big help!  So, it's the filename that decides what kind of bonus it gets.  Kinda messed up if you ask me, but at least that means my little sword +1, +2 vs. Undead is still possible after all.



#11 lynx

lynx
  • Modders
  • 3009 posts
  • Gender:Male
  • Location:Ljubljana, Slovenija

Posted 14 September 2017 - 08:16 AM

Did anyone test if this affects the enchantment level and weapon speed as well?


GemRB - IE anywhere.
Mages needed! Looking for Planescape: Torment testers
Market android version IS NOT SUPPORTED ANYMORE: reported bugs will be ignored! Still looking for builders ...

#12 Jarno Mikkola

Jarno Mikkola

    The Imp

  • Modders
  • 6249 posts
  • Gender:Male
  • Location:The town where the dead haven't keeled over, yet. In Finland.

Posted 14 September 2017 - 08:32 AM

Did anyone test if this affects the enchantment level and weapon speed as well?

That's doubtful as the items are +1 ... +3's and so have a speed factor based on that, and I doubt the player would even notice the very small change against a few types of enemies, that's way too much hassle.


Welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand.
Here's how to install all the ... mods you ever really could want to Infinity Engine games. I removed the stable word from there as Roxanne began to add BS mods that are likely to break compatibility from the BWS.

#13 Avenger

Avenger
  • Modders
  • 3725 posts
  • Gender:Male
  • Location:Hungary

Posted 16 September 2017 - 01:20 AM

Did anyone test if this affects the enchantment level and weapon speed as well?

it doesn't.



#14 lynx

lynx
  • Modders
  • 3009 posts
  • Gender:Male
  • Location:Ljubljana, Slovenija

Posted 16 September 2017 - 03:06 AM

Thanks!


GemRB - IE anywhere.
Mages needed! Looking for Planescape: Torment testers
Market android version IS NOT SUPPORTED ANYMORE: reported bugs will be ignored! Still looking for builders ...



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users