Jump to content

About scripting


Oh shit WTF

Recommended Posts

Which script should I use in order to make every citizen of Skyrim hate you and attack you but every wild predator and prey animal become ally to you only when you're a certain race?? I'm planning to use racial ability that I have made to set a script on, but I don't really know what to put. Is it addtofaction or setreaction? or something else?

Link to comment

AddToFaction add another Faction to NPC faction list...

 

SetReaction change how one faction act to another if u give values under 0 they will hate each other above they like each other

 

but if You want to make player enemy you can just use SetPlayerEnemy() Function

Use:

<FactionName>.SetPlayerEnemy( <true/false> ) -> by default TRUE

 

WhiterunGuards.SetPlayerEnemy(); -> Now player is enemy to WhiterunGuards

WhiterunGuards.SetPlayerEnemy( false ); -> Player is no longer enemy to WhiterunGuards

 

//Edit:

If You want to AddFaction / SetReaction player factions are: ( im trying to write from memory xDD )

- PlayerFaction ( if Relation is "ENEMY" to this Faction player will be attacked )

- PlayerHouseFaction

- PlayerHusecarlFaction

- PlayerHorseFaction

( and way more :o )

 

But normaly u need only "PlayerFaction" because Followers should always help ally and friend same with Horse and House

No matter i write names correct or not, CK will help u find correct Fation :P just start typing "Player..." and u will see all player factions

Link to comment
12 hours ago, TobiaszPL said:

AddToFaction add another Faction to NPC faction list...

 

SetReaction change how one faction act to another if u give values under 0 they will hate each other above they like each other

 

but if You want to make player enemy you can just use SetPlayerEnemy() Function

Use:

<FactionName>.SetPlayerEnemy( <true/false> ) -> by default TRUE

 

WhiterunGuards.SetPlayerEnemy(); -> Now player is enemy to WhiterunGuards

WhiterunGuards.SetPlayerEnemy( false ); -> Player is no longer enemy to WhiterunGuards

 

//Edit:

If You want to AddFaction / SetReaction player factions are: ( im trying to write from memory xDD )

- PlayerFaction ( if Relation is "ENEMY" to this Faction player will be attacked )

- PlayerHouseFaction

- PlayerHusecarlFaction

- PlayerHorseFaction

( and way more ? )

 

But normaly u need only "PlayerFaction" because Followers should always help ally and friend same with Horse and House

No matter i write names correct or not, CK will help u find correct Fation :P just start typing "Player..." and u will see all player factions

Thanks for your help!

Link to comment

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use