How does SetEnemyFaction work?

Post » Thu Jun 21, 2012 1:32 am

I have the following command in a number of dialogue choices, but it doesn't seem to do anything.

MyFaction.SetEnemy(PlayerFaction)

I have also tried:
MyFaction.SetPlayerEnemy()

and neither of them seem to do anything. The only thing that works is
akSpeaker.StartCombat(Game.GetPlayer())
and that unfortunately only makes the individual you're talking to aggro.
User avatar
Gemma Woods Illustration
 
Posts: 3356
Joined: Sun Jun 18, 2006 8:48 pm

Post » Thu Jun 21, 2012 11:07 am

http://www.creationkit.com/SetEnemy_-_Faction



MyFaction.SetEnemy(PlayerFaction)

User avatar
LuCY sCoTT
 
Posts: 3410
Joined: Sun Feb 04, 2007 8:29 am

Post » Thu Jun 21, 2012 6:53 am

That's what I have in my code, it isn't doing anything.
User avatar
Zoe Ratcliffe
 
Posts: 3370
Joined: Mon Feb 19, 2007 12:45 am

Post » Thu Jun 21, 2012 1:52 am

When you set faction relationships in the CK you have to set it both ways (make playerfaction and enemy of bandits and bandits an enemy of player faction, for example).

So, does it work the same way with the script version?
User avatar
[Bounty][Ben]
 
Posts: 3352
Joined: Mon Jul 30, 2007 2:11 pm

Post » Thu Jun 21, 2012 3:21 am

When you set faction relationships in the CK you have to set it both ways (make playerfaction and enemy of bandits and bandits an enemy of player faction, for example).

So, does it work the same way with the script version?
It shouldn't, according to the wiki. I'm going to try it anyway.
User avatar
Beulah Bell
 
Posts: 3372
Joined: Thu Nov 23, 2006 7:08 pm

Post » Wed Jun 20, 2012 8:33 pm

so heres a quick example:
GoodFaction.SetEnemy(BadFaction)
BadFaction.SetEnemy(GoodFaction)
User avatar
Lisa
 
Posts: 3473
Joined: Thu Jul 13, 2006 3:57 am


Return to V - Skyrim