Jump to content


Photo

Cleric Resist Fire and Cold


2 replies to this topic

#1 i30817

i30817
  • Members
  • 146 posts

Posted 02 December 2011 - 10:23 AM

I'm confused about this spell.

In spell.ids there is only
CLERIC_RESIST_FIRE
and
CLERIC_RESIST_COLD

Are these "subspells" from the one that we see in the game?

If so, how can i clear the memorization of Resist Fire and Cold?
I'm using
Spell(Myself,XXXXXXX)


If i have to cast both at once is it something like this:

IF
  HotKey(~F_KEY~)
  HaveSpell(CLERIC_RESIST_FIRE)
THEN
  RESPONSE #100
	Spell(Myself,CLERIC_RESIST_FIRE)
	Spell(Myself,CLERIC_RESIST_COLD)
	Continue()
END
So RESIST_FIRE always has a sibling RESIST_COLD, or is it something else?
Does this clear the Resist Fire and Cold?

Edited by i30817, 02 December 2011 - 10:23 AM.


#2 lynx

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

Posted 02 December 2011 - 11:23 AM

you can deduce which spell the id corresponds to by checking the id itself. I'm in a hurry, so just from memory: the first digit is the type (mage/cleric/innate), the rest correspond to the number in the resref.
GemRB - IE anywhere.
Mages needed! Python tamers needed for iwd2!

#3 devSin

devSin
  • Fixpackers
  • 3017 posts
  • Gender:Male

Posted 02 December 2011 - 09:49 PM

Yes, the type being 1 (priest, SPPR), 2 (wizard, SPWI), 3 (innate, SPIN), 4 (class, SPCL) (and either 0 or 5 are MARW, sigh), with a three-digit number corresponding to the spell resource.

All spells are expressed as numbers. The IDS sometimes has symbols for spells that were removed or left unimplemented. When in doubt, use the number (it compiles to a number anyway, and that's all the engine cares about).

I think AD&D had these as separate spells, that they combined as a single spell for BG (for whatever reason), but I don't remember.



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users