Is there any way to get a skeever to cast magic?

Post » Sun Jun 24, 2012 5:47 pm

I thought I saw this mentioned somewhere before, but I couldn't find anything on the subject.
User avatar
Unstoppable Judge
 
Posts: 3337
Joined: Sat Jul 29, 2006 11:22 pm

Post » Sun Jun 24, 2012 2:12 pm

haha this sounds awesome. what are you planning on making? an advanced rat society?!
User avatar
Anthony Santillan
 
Posts: 3461
Joined: Sun Jul 01, 2007 6:42 am

Post » Sun Jun 24, 2012 11:27 am

No, ha ha. It's a wizard with a rat familiar whose main job is to debuff you while the wizard shoots spells at you. = )
User avatar
Laura-Jayne Lee
 
Posts: 3474
Joined: Sun Jul 02, 2006 4:35 pm

Post » Sun Jun 24, 2012 3:40 am

you could give the wizard's spells scripts that make the skeever reference cast spells at the player using the Cast() function.
User avatar
Sian Ennis
 
Posts: 3362
Joined: Wed Nov 08, 2006 11:46 am

Post » Sun Jun 24, 2012 4:03 pm

Well, it'll need a spellcasting animation.

So, what I'd do (I've done this in Oblivion, so presumably it'd work here too), is copy the Skeever's attacking animations, and rename them to whatever the spellcasting animations are called (check other creatures to make sure you get the names right).
User avatar
Alexander Lee
 
Posts: 3481
Joined: Sun Nov 04, 2007 9:30 pm

Post » Sun Jun 24, 2012 7:27 am

That sounds like a good way, but from what I've read it is extremely difficult to add animations. Replacing existing ones seems doable, but that won't really help me.

I've had some success with cscottydont's method, but for whatever reason he keeps skipping the spells I need him to cast. He will cast the filler spells I gave him to test, though.

Also it makes him cast no matter what state he's in (getting hit, paralyzed, etc), and also seems to keep him targeted to only one person all the time. To the extent that if he heals himself he will be stuck targeting himself and shooting the spells at himself, lol.

So lots of problems to work out that way. = /
User avatar
Maria Leon
 
Posts: 3413
Joined: Tue Aug 14, 2007 12:39 am

Post » Sun Jun 24, 2012 8:26 am

and also seems to keep him targeted to only one person all the time. To the extent that if he heals himself he will be stuck targeting himself and shooting the spells at himself, lol.

So lots of problems to work out that way. = /

I vaguely remember reading other posts about similar issues...might want to do a search to see if theres any help to be found
User avatar
Phillip Hamilton
 
Posts: 3457
Joined: Wed Oct 10, 2007 3:07 pm

Post » Sun Jun 24, 2012 2:39 am

I ended up adding a script that updates every 5 seconds and picks a random target. If the target is an enemy it is saved in a variable as the current target. This seems to fix the targeting issue pretty well.

I still can't figure out how to stop him from casting when he's knocked down or paralyzed. Also every time he's paralyzed he shoots off into the air like a bottle rocket once he recovers. = /
User avatar
James Wilson
 
Posts: 3457
Joined: Mon Nov 12, 2007 12:51 pm

Post » Sun Jun 24, 2012 4:53 am

Yea when using any Cast() function any actor will cast they way they are facing, for the player it is always where the crosshair is pointing.

I still can't figure out how to stop him from casting when he's knocked down or paralyzed. Also every time he's paralyzed he shoots off into the air like a bottle rocket once he recovers. = /

Could you use an IF statement to check for Keywords on the caster?
akCaster = akCaster As ActorIF akCaster.HasEffectKeyword(MagicParalysis) || akCaster.HasEffectKeyword(MagicInfluenceFear)	; Do CodeENDIF

Maybe?
User avatar
Brian Newman
 
Posts: 3466
Joined: Tue Oct 16, 2007 3:36 pm


Return to V - Skyrim