Player not friendly with with the player faction

Post » Thu Jan 21, 2010 8:55 pm

I am trying to make they player a part of the Lich Faction and enemies with the player faction though scripting.

I want everyone in the player faction to attack the player.

Can anyone help me with this?
User avatar
Petr Jordy Zugar
 
Posts: 3497
Joined: Tue Jul 03, 2007 10:10 pm

Post » Fri Jan 22, 2010 8:32 am

Have you tried "Player.setfactionrank PlayerFaction -1"

The members of PlayerFaction probably already hate Lich's, but setting a faction reaction of -100 will ensure that they do. Aggression will still play a factor, though.
User avatar
Destinyscharm
 
Posts: 3404
Joined: Sun Jul 23, 2006 6:06 pm

Post » Fri Jan 22, 2010 9:57 am

Have you tried "Player.setfactionrank PlayerFaction -1"

The members of PlayerFaction probably already hate Lich's, but setting a faction reaction of -100 will ensure that they do. Aggression will still play a factor, though.



I have setfactionrank PlayerFaction -1 but it doesnt make gurads or anyone attack me in my test.

I am looking through the Curse of Werewolves scripting since they have it in there mod. But I am not quite getting their scripting.
User avatar
Matt Gammond
 
Posts: 3410
Joined: Mon Jul 02, 2007 2:38 pm

Post » Thu Jan 21, 2010 8:30 pm

Guards aren't in the PlayerFaction, and they have no disposition modifiers toward the LichFaction.

You need to remove the player from the PlayerFaction, add them to the LichFaction and then make PlayerFaction hate the LichFaction. If you want guards and everyone else to attack the player, then they need to hate the LichFaction as well.
User avatar
Carolyne Bolt
 
Posts: 3401
Joined: Mon Jul 10, 2006 4:56 am

Post » Fri Jan 22, 2010 5:10 am

I just added this to the code.

SetFactionReaction AnvilFaction LichPlayerFaction -200SetFactionReaction AnvilGuards LichPlayerFaction -200SetFactionReaction BravilFaction LichPlayerFaction -200SetFactionReaction BravilGuards LichPlayerFaction -200SetFactionReaction BrumaFaction LichPlayerFaction -200SetFactionReaction BrumaGuardFaction LichPlayerFaction -200SetFactionReaction CheydinhalFaction LichPlayerFaction -200SetFactionReaction CheydinhalGuardFaction LichPlayerFaction -200SetFactionReaction ChorrolFaction LichPlayerFaction -200SetFactionReaction ChorrolGuardFaction LichPlayerFaction -200SetFactionReaction FightersGuild LichPlayerFaction -200SetFactionReaction ICFaction LichPlayerFaction -200SetFactionReaction ICPalaceFaction LichPlayerFaction -200SetFactionReaction ImperialLegion LichPlayerFaction -200SetFactionReaction ImperialLegionBattlemage LichPlayerFaction -200SetFactionReaction LeyawiinFaction LichPlayerFaction -200SetFactionReaction LeyawiinGuards LichPlayerFaction -200SetFactionReaction MagesGuild LichPlayerFaction -200SetFactionReaction ThievesGuild LichPlayerFaction -200


But still no attacking guards...Stubborn guards not protecting cites form a lich.
User avatar
Mark Churchman
 
Posts: 3363
Joined: Sun Aug 05, 2007 5:58 am

Post » Thu Jan 21, 2010 9:54 pm

Is "LichPlayerFaction" set to "evil"?
User avatar
steve brewin
 
Posts: 3411
Joined: Thu Jun 21, 2007 7:17 am

Post » Thu Jan 21, 2010 7:01 pm

Just set it to evil and tested it. No difference in the guards behavior they just ignore the player as he is normal
User avatar
Rowena
 
Posts: 3471
Joined: Sun Nov 05, 2006 11:40 am

Post » Fri Jan 22, 2010 8:32 am

You could set his bounty to a million?
User avatar
Toby Green
 
Posts: 3365
Joined: Sun May 27, 2007 5:27 pm

Post » Fri Jan 22, 2010 8:43 am

how do I force the guards not to ask him to go to jail?
User avatar
suzan
 
Posts: 3329
Joined: Mon Jul 17, 2006 5:32 pm

Post » Fri Jan 22, 2010 7:35 am

If the bounty is high enough, they attack on sight and won't offer the chance to pay a fine.

I'm not sure if they'll accept yields either.
User avatar
Strawberry
 
Posts: 3446
Joined: Thu Jul 05, 2007 11:08 am

Post » Fri Jan 22, 2010 8:44 am

Ill try that, Thank you for all of your help in trying to help me solve this problem.
User avatar
BaNK.RoLL
 
Posts: 3451
Joined: Sun Nov 18, 2007 3:55 pm


Return to IV - Oblivion