Medusa-esq Spells and Weaknesses

Post » Sun Oct 10, 2010 5:39 am

Okay, so this is in a planning stages, but I would be interested to know if I can do one or both of the following:

1. Would it be possible to create a Creature or NPC that was only weak to its own attack (reflected back at it, of course)?

i) One possible solution would be to make it weak to its own attack type. However, I don't know if there have been any attempts to create a new attack/spell type? In this case the spell type would have to be unique, as we don't want the player to have an attack that is powerful against it. We want to emphasize spell reflection as the key point in victory here.

ii) Another possible solution would be to script a spell that does different effects to different targets. Any other target it would do a certain effect. But to one particular target (itself) it does something entirely different.

2. Would it be possible to get the creature/NPC's spells to work only if the player is facing the creature/NPC?

i) This seems more possible, since there is a GetLOS function. Need further clarification on this though.

This is not a WIP. Just want to discuss possibilities and options with the script-gods.
User avatar
Elizabeth Falvey
 
Posts: 3347
Joined: Fri Oct 26, 2007 1:37 am

Post » Sun Oct 10, 2010 2:32 pm

To answer #1 you can create a script and a specific spell to only effect the character. I am not the one to ask how that script would work, but I am certain by creating a custom spell (for this example let's say a shock spell) with it's own unique ID. Then in a script on the NPC you could have it register the correct spell that would effect it. Ofcourse, again, I am not the one to completely know for sure on this, but I am 90% certain #1 can be done with a touch of scripting.
User avatar
Vickytoria Vasquez
 
Posts: 3456
Joined: Thu Aug 31, 2006 7:06 pm

Post » Sun Oct 10, 2010 4:29 pm

Well Malevolent has a boss that shoots fireballs at you which destroy pillars and subsequently send rocks crashing down on top of him.

Also Integration has several boss weakness effects which range from adding a new topic, pushing them down or back, weakening them, or simply killing them. In this case it seems fairly simple to me, all you'd have to do is give the enemy a scripted effect and then replace the effect the player can use with your scripted one in the script involved.

But I am by no means, mod or technically savvy.

EDIT: Here's a http://img.photobucket.com/albums/v189/phoenix7/scripty2.jpg of the script since I don't even know how to copy/paste things from the script window in the CS... I also added some amateurish notes describing the different parts, and what they seem to do.
User avatar
Kortknee Bell
 
Posts: 3345
Joined: Tue Jan 30, 2007 5:05 pm

Post » Sun Oct 10, 2010 8:55 am

Okay, so it seems like some of this might be possible, so I'll give it a bump to see what others have to say.
User avatar
Mistress trades Melissa
 
Posts: 3464
Joined: Mon Jun 19, 2006 9:28 pm

Post » Sun Oct 10, 2010 2:07 pm

I'll bump this one final time to see if I can get any more discussion on this topic.

Another thought that came to mind would be to make said spell by creature to be an area effect spell that detonates without need for impact. I'm quite sure there is a function for that sort of thing. I do not want the creature to be hurt/affected by this area effect spell, but if reflected by, say, Spellbreaker, the creature would take the damage/effect. Now, I'm quite sure things already work this way, though some clarification is needed.
User avatar
Shae Munro
 
Posts: 3443
Joined: Fri Feb 23, 2007 11:32 am


Return to IV - Oblivion