Jump to content

Photo

Console command for changing npc disposition ?


  • Please log in to reply
6 replies to this topic

#1
LegendXz

LegendXz

    Enthusiast

  • Members
  • PipPip
  • 121 posts
have found a few different codes for this but none seem to work . I only want it so i can make anyone my follower . I do the command to add them to the potentialfollwers faction then the two codes i have found for disposition are player.setrelationshiprank player then the actor id and then the value of 1 2 3 or 4 and the other code is setrelationshiprank player with someone selected then the value of 1-4 again . I really would like some help with this as i can get a few of the codes to work but something is wrong with one of the ones i just listed and yes i am using the correct ids for the npc players i use the help then the npcs name 0 command and i use that id i get . So nothings wrong there . I would like help soon if you know thanks

#2
Guss

Guss

    Holy-Knights

  • Members
  • PipPipPipPip
  • 1,141 posts
setrelationshiprankplayer <target> <#> -Changes the relationship between a player and the target 1=acquaintance, 2=confidant, 3=ally, 4=lover i am sure that this might work.

player.setrelationshiprank not sure what the command really does but ALL Player. is for the player character ONLY!

getrelationshiprank player <target> - Gets the relationship rank of the target to the player

addtofaction <faction ID> <faction rank> or addfac <faction ID> <faction rank> - Adds the selected actor to a faction.
- Faction ID " 0005C84D " Full Faction Name " PotentialFollowerFaction " - Gives the NPC all necessary dialogue to be selected as a new follower. ( just do this command 1st to test. if the person is already ally/friendly with the player no need to setrelationship. )

Edit:

so far they must like you. attempting to get a random guard to like me and follower addfac or addtofaction 1 is highest rank, 0 lowest rank, -1 no. does work did to my lover. post back soon with updates

Edited by Guss, 05 December 2011 - 04:45 AM.


#3
Guss

Guss

    Holy-Knights

  • Members
  • PipPipPipPip
  • 1,141 posts
Alright man ok here is how it works.

#1. addfac or addtofaction - 0005c84d " 1 "
#2. setrelationshiprank " NPC ID " 4
#3. player.setrelationshiprank " NPC ID " 4

now that will do almost all npc's guards,jarls,kids,and few npcs still not working atm.
working that i tested merchants, random civils.
" disable then enable " if they don't show up but this is the issue i have.

#4. setav aggression 1
#5. setav confidence 3
" makes some that don't fight attack and etc "
" also make them essential or they will die and no longer follow :) "

any issues plz tell me and have fun :biggrin: will edit this post if i can get everyone to follow :thumbsup:

Edited by Guss, 05 December 2011 - 05:09 AM.


#4
LegendXz

LegendXz

    Enthusiast

  • Members
  • PipPip
  • 121 posts
awesome thanks . I ended up finding out i was just doing it wrong and the two npcs i tryed it one just would not work for me but i can do it to pretty much anyone now :)

#5
Guss

Guss

    Holy-Knights

  • Members
  • PipPipPipPip
  • 1,141 posts
no problem :thumbsup: , it was a fun learning experience but time consuming. anything else?

#6
ready0055

ready0055

    Regular

  • Members
  • PipPip
  • 55 posts

I have a NPC who keeps trying to kill me. How can I change his opinion of me to a friend again.



#7
Krysee

Krysee

    Enthusiast

  • Members
  • PipPip
  • 143 posts

#4. setav aggression 1
#5. setav confidence 3
" makes some that don't fight attack and etc "
" also make them essential or they will die and no longer follow smile.gif "

any issues plz tell me and have fun biggrin.gif will edit this post if i can get everyone to follow thumbsup.gif

 

Confidence does not relate to being essential.

 

Making them essential is a different command entirely (setessential <baseID> <0 or 1>), and requires their Base ID, not their Ref ID, because the essential flag is only available on the master form, never on the spawned reference.  If you make a form essential that's used by a lot of things (for instance, bad guys or bears), then everything that uses that form will be set to essential, and we wouldn't want that.  Of course, using it for followers is kosher, but if that's the goal, just get a follower overhaul mod like UFO or AFT.

 

Their confidence only describes how likely they are to flee from combat.  Swiped from UESP at this page:
 

There are five possible values for confidence:

  • 0: Cowardly. Always flees from battle.
  • 1: Cautious. Attacks only lower level enemies.
  • 2: Average. Avoids higher level creatures.
  • 3: Brave. Attacks unless being outmatched by the opponent.
  • 4: Foolhardy. Attacks any type of enemy.





Page loaded in: 0.999 seconds