Jump to content

Photo

opcode 172 'remove spell'


8 replies to this topic

#1 subtledoctor

subtledoctor
  • Modders
  • 2631 posts
  • Gender:Male

Posted 02 February 2018 - 08:49 AM

The IESDP says:

 

Removes the spell specified by the resource key from the targeted creature(s) spellbook (but does not affect spells already memorised).

 

Let's set aside the 7-letter vs. 8-letter distinction right now.  Assume we're talking about 7-letter spells like SPWI112.SPL... is the above correct?  I just tried a spell with:

 

opcode: 172

timing: 0 (instant/limited)

duration: 1 second

resource: SPWI112

 

...the spell was removed from my spellbook AND my memorized instance of it disappeared.  (And, btw, it didn't come back - temporary timing does not work with this opcode.  That's probably worth mentioning in the IESDP.)

 

Anyway if anyone has more experience with this effect I'd love some clarification.

 

Btw my test was on BGEE v2.3. 


Faiths & Powers: Spell spheres and kit pack for priests and paladins
Might & Guile: Tweaks and kits for warriors and rogues
Scales of Balance: Game tweaks and rule overhauls
NPC_EE: More options for NPCs in BGEE, SoD, & BG2EE


#2 Jarno Mikkola

Jarno Mikkola

    The Imp

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

Posted 02 February 2018 - 09:03 AM

Pretty sure that effect has always been temporarily permanent... might I suggest that you make the spell last for a longer time... say 10 seconds, and save during that time and see if the effect is actually in the creature from the save ? Near Infinity or EEkeeper should be able to see it effecting the creature.


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 subtledoctor

subtledoctor
  • Modders
  • 2631 posts
  • Gender:Male

Posted 02 February 2018 - 09:41 AM

The effect is probably temporary; but it doesn't matter, because once the spell is not in your spellbook, it's not there. With innate abilities it might appear again after the duration expires (and maybe after then resting). But with wizard spells, at least, the expiration of the removal effect does not put the spell back.

Which is fine. I'm much more interested in what happens with memorized spells. If memorized spells are preserved, I have a method to get around the spellbook issue and it would let us do wild things with opcode 214.

Edited by subtledoctor, 02 February 2018 - 09:42 AM.

Faiths & Powers: Spell spheres and kit pack for priests and paladins
Might & Guile: Tweaks and kits for warriors and rogues
Scales of Balance: Game tweaks and rule overhauls
NPC_EE: More options for NPCs in BGEE, SoD, & BG2EE


#4 Roxanne

Roxanne

    Modder

  • Modders
  • 2041 posts
  • Gender:Female
  • Location:Auckland, NZ

Posted 02 February 2018 - 09:53 AM

The effect is probably temporary; but it doesn't matter, because once the spell is not in your spellbook, it's not there. With innate abilities it might appear again after the duration expires (and maybe after then resting). But with wizard spells, at least, the expiration of the removal effect does not put the spell back.

Which is fine. I'm much more interested in what happens with memorized spells. If memorized spells are preserved, I have a method to get around the spellbook issue and it would let us do wild things with opcode 214.

I was reminded of a discussion we had about two years ago on the issue of removing innate abilities

http://gibberlings3....e=9#entry243100


The Sandrah Saga!

another piece of *buggy, cheesy, unbalanced junk*

 

 

 


#5 kjeron

kjeron
  • Members
  • 118 posts

Posted 02 February 2018 - 09:55 AM

The only duration this opcode can carry is a delay. The effect itself is always instantaneous.

The 8 character distinction is still the issue here.
If the spell is not 8 characters, it will be removed from the spellbook and all memorized copies will be removed.
If the spell is 8 characters, it will be removed from the spellbook, but memorized copies will remain intact.

#6 subtledoctor

subtledoctor
  • Modders
  • 2631 posts
  • Gender:Male

Posted 02 February 2018 - 10:44 AM

So there's no way to temporarily blank out a wizard's spellbook and use it for some other purpose, without wiping out all of their memorized spells. Shame.

(Well, not without doing something crazy like cloning every wizard spell to an 8-letter version... and... hmm. I guess you could actually do that. But, I'm not sure the result would be worth the effort...)

Anyway the IESDP should probably describe this stuff a bit more clearly to prevent foolish modders like yours truly getting false hopes.

Edited by subtledoctor, 02 February 2018 - 10:45 AM.

Faiths & Powers: Spell spheres and kit pack for priests and paladins
Might & Guile: Tweaks and kits for warriors and rogues
Scales of Balance: Game tweaks and rule overhauls
NPC_EE: More options for NPCs in BGEE, SoD, & BG2EE


#7 lynx

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

Posted 16 March 2018 - 11:15 AM

thanks, added note. Quite bizarre behaviour.


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


#8 Avenger

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

Posted 18 March 2018 - 08:57 AM

thanks, added note. Quite bizarre behaviour.

Is it? A lot of effects are immediate only. 

 

 

Ah, you talk about the 8 letter bug. You shouldn't copy bugs :)


Edited by Avenger, 18 March 2018 - 09:02 AM.


#9 lynx

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

Posted 19 March 2018 - 12:02 AM

As soon as people start relying on it, the bug morphs into a feature. :/


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




Reply to this topic



  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users