Immunity To Specific Spells

Post » Fri May 27, 2011 3:30 pm

I don't have a ton of experience with the CS and have next to no experience with scripting so if you attempt to solve my issue though script it would be great if you could just include the script I'd need (with variables at the point where you don't know the information, such as names of things).

Okay, so basically I created a spell set and now I'm creating a set of creatures. Some of these creatures are immune to some of those spells.
So, how would I go about creating a script for either....
1.) the spell, forcing the spell to just do nothing if it hits a target and the target's ID is equal to [whatever it's ID would be]
2.) create a script attached to the creature doing the same thing but essentially in reverse... so that if said spell were to hit it, the spell would be resisted completely.
User avatar
Symone Velez
 
Posts: 3434
Joined: Thu Sep 07, 2006 12:39 am

Post » Fri May 27, 2011 5:01 am

Add a script effect to your spell with:
begin scriptEffectStart   if ( getIsID <editorIDofCreature )	  dispel <spellID>   endIfend

User avatar
christelle047
 
Posts: 3407
Joined: Mon Apr 09, 2007 12:50 pm

Post » Fri May 27, 2011 6:18 pm

Thank you, so much! :D
User avatar
Alkira rose Nankivell
 
Posts: 3417
Joined: Tue Feb 27, 2007 10:56 pm


Return to IV - Oblivion