Help with Magic Effect on Command Animal

Post » Mon Jun 18, 2012 7:21 pm

I want to create a new MagicEffect, what i have in mind is to use the "Command Animal" effect, but in addition i would also like the effect to apply to "Spriggans", how do i manage that?

I noticed in the Target of the CommandAnimal there is a string in "Target Conditions" - "HasKeyword" - "ActorTypeAnimal", i do not want to replace the actual effect, but i want it so it works on Animals and Spriggans, what do i need to do? in the "Target Conditions"? or do i need to edit the Script? if thats the case im screwed because i dont know how to script.
User avatar
Natasha Callaghan
 
Posts: 3523
Joined: Sat Dec 09, 2006 7:44 pm

Post » Tue Jun 19, 2012 3:38 am

I think the easiest way would be to add an extra conditional that looks to see if the creature is in the Spriggan faction.

So add a new conditional as follows.

GetFactionRank ~Faction: SprigganFaction ~ == ~ 1.00 ~ AND

Now move that conditional up the list (use the arrows below the condition box) so that its right under the HasKeyword condition.

I believe you'd also need to change the HasKeyword condition to OR instead of AND, so that the list will check for an animal OR a spriggan, then continue on if the target is either of those.
User avatar
trisha punch
 
Posts: 3410
Joined: Thu Jul 13, 2006 5:38 am

Post » Mon Jun 18, 2012 7:19 pm

Ok this is great, is this ok and in the right order?

http://i.picoodle.com/888j0ezf

Is it ok to put it between ActorTypeAnimal and ActorTypeUndead?
User avatar
MR.BIGG
 
Posts: 3373
Joined: Sat Sep 08, 2007 7:51 am

Post » Mon Jun 18, 2012 5:26 pm

Thats the right place to put it, yes. Putting something between the two ActorType conditions is no problem, since the Undead one is actually making sure the target is NOT part of the undead faction (hence the == 0). Basically its making sure you aren't trying to command a necromancer's resurrected goat or a skeleton or anything.

You do need to change the ActorTypeAnimal conditional to OR, though. Double click it (there's no right-click > edit option for conditions for some reason) and check the OR box.

Without doing that, the conditions will always fail. The actor will either be an animal but not a spriggan (condition fail) or it'll be a spriggan but not an animal. You need to make it so that either an animal or a spriggan will pass the check, since you'll never be able to fufill both.
User avatar
Scotties Hottie
 
Posts: 3406
Joined: Thu Jun 08, 2006 1:40 am

Post » Tue Jun 19, 2012 3:58 am

Actually got it to work perfectly, this is how i made it work:

http://i.picoodle.com/6d4j0f0c

thanks a LOT!
User avatar
Amy Siebenhaar
 
Posts: 3426
Joined: Fri Aug 10, 2007 1:51 am


Return to V - Skyrim