Jump to content

Having a spell stop itself


wolpak

Recommended Posts

Posted

If I had a spell that used an eff that casts a spell that then used opcode 321 on the original spell, would it stop it from finishing processing? If not, is there a way to do that?

Posted

"Finished processing" as in effect duration? Like, cast a Blur on self with a 10-round duration and have an opcode 321 effect on a 5-round delay that removes Blur effects? Would the Blur cut out after 5 rounds?

 

I assume so, though admittedly I haven't tested.

Posted

Yes, but more like, if I am casting a spell based on a class, and it spits out spell successful, I would want it to spit out, spell failed if not that class. If I could have it stop itself after successful, then I wouldn't see both messages. I'll have to test tomorrow.

Posted

Opcode 321 removes any effect with a matching resource. The origin doesn't matter, effects offered by spells, items etc. are treated equally.

 

If you use one spl to apply another spl, then, assuming both spls also have other individual effects, you'll end up with two different sources. Since a single 321 can only match one source, you can therefore dispel either the master spl's effects, or its subsidiary's ones.

 

PS Having read the last post... You can simply apply the feedback eff before cancellation one.

Posted

I see 2 opcodes that might help

 

opcode 324 - Protection: Immunity Spell and Message [324]

You can set it up to be resistant to a class or affect a single class

 

opcode 326 - Add Effects List [326]

You can apply a separate spell based on spell protections, and since you can have this opcode multiple times in the same main spell, you can have multiple branches of effect sets

Posted

@wolpak: Could you add an EE -tag on the topic title... as the opcodes talked here are not in the (non-EE-)BG2:ToB. :rolleyes::crazyeyes:

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...