Jump to content


Photo

Removing Opcode protections


  • Please log in to reply
3 replies to this topic

#1 T.G.Maestro

T.G.Maestro

    Eclipse

  • Member
  • 4415 posts

Posted 23 March 2004 - 02:14 AM

A new question, I hope this one will be easier than the "glowing Mordy sword" :) .
How can I remove a "protection from Opcode" effect from a character for a limited time? I shall explain my problem. If a character has a "Protection from Opcode 216" effect with permanent duration parameter, it means that it won't be affected by Level Drain. I want to make a spell that temporarily removes such "immunities" from the specified creature, for example with a 3 round duration.

I thought I'll add another "Protection from Opcode" effect to the removal spell, with the 101 parameter (Protection from Opcode). In other words this spell would add a "Protection from Opcode: Protection from Opcode" effect. The only probelm is that it would remove every single Opcode protection fro the character, not only 216.

Any ideas on how to get this thing working? Any other solutions maybe? :unsure:
Posted Image

Refinements v2 has been released!
Go and visit the website or the forum for more info!

Member of The Silver Star team.

#2 T.G.Maestro

T.G.Maestro

    Eclipse

  • Member
  • 4415 posts

Posted 23 March 2004 - 11:23 PM

Ehh, I give up - it seems I'm asking impossible things... :unsure:
Posted Image

Refinements v2 has been released!
Go and visit the website or the forum for more info!

Member of The Silver Star team.

#3 MagusWizardo

MagusWizardo

    Don't ask... please don't ask.

  • Member
  • 201 posts

Posted 24 March 2004 - 12:16 AM

You could possibly check for items which give the protection, and replace them with something that doesn't... but would be alot of work (creating the duplicate items), and would only work properly for unmodified items from the base game, and other items in your mod.

#4 Valheru

Valheru

    Ancient One

  • Member
  • 120 posts

Posted 24 March 2004 - 12:49 AM

I have done something like this before I know I have I will have a look once I get home (at college now)
Thanks for picture Immy :)