Jump to content

Script help


Guest deleted2027229

Recommended Posts

Guest deleted2027229

How would I edit the following script so that there is no reputation or faction rank check for hiring a companion? Every time I try the NPC basically tells me I'm not strong or famous enough. Would it even be the script I need to edit or would it be in the dialogue menu?

 

scn PTFollowNPCScript

short lev
short days
short done

begin onhit

if getav aggression < 5

setav aggression 5

endif

end

begin onactivate

if isactionref player == 1

addtopic PTFollowBaseTopic
addtopic PTFollowerDismissTopic
addtopic PTResponsibilityTopic

if getfactionrank PTFollowerFaction < 4

set lev to player.getlevel - getlevel

if lev < -7

setfactionrank PTFollowerFaction, 0

elseif lev < -3

setfactionrank PTFollowerFaction, 1

elseif lev < 0

setfactionrank PTFollowerFaction, 2

else

setfactionrank PTFollowerFaction, 3

endif

endif

activate player

endif

end



begin gamemode

if player.issneaking == 1

if player.isincombat == 1
if getfactionrank PTFollowerFaction == 5

setfactionrank PTFollowerFaction, 4
setav aggression 5
additem torch02 1
evp

endif
endif

if getfactionrank PTFollowerFaction == 4
if player.isincombat == 0

setfactionrank PTFollowerFaction, 5
setav aggression 0
removeitem torch02 999
evp

endif
endif

elseif getfactionrank PTFollowerFaction == 5

setfactionrank PTFollowerFaction, 4
setav aggression 5
additem torch02 1
evp

endif



if getfactionrank PTFollowerFaction > 3 && getfactionrank PTFollowerFaction < 6
if done == 0

set days to gamedayspassed + 2
set done to 1

endif
endif

if done == 1
if gamedayspassed >= days
if getfactionrank PTFollowerFaction != 6 && getfactionrank PTFollowerFaction > 3

setfactionrank PTFollowerFaction, 7
evp
set done to 2

endif
endif
endif

if getfactionrank PTFollowerFaction == 6
if done < 2

set done to 2

endif
endif

if done == 2

set days to gamedayspassed + 2
set done to 3

endif

if done == 3
if gamedayspassed >= days

set done to 0
setfactionrank PTFollowerFaction, -1

endif
endif

if getdisposition player < 40
if getfactionrank PTFollowerFaction > 3
if getfactionrank PTFollowerFaction < 6

setfactionrank PTFollowerFaction, 7
evp

endif
endif
endif

end

begin ondeath

setfactionrank PTFollowerFaction, -1
set done to 0

end


Link to comment
Share on other sites

For example in this section:

 

if lev < -7

setfactionrank PTFollowerFaction, 0

elseif lev < -3

setfactionrank PTFollowerFaction, 1

elseif lev < 0

setfactionrank PTFollowerFaction, 2

else

setfactionrank PTFollowerFaction, 3

endif

 

I assume that the script is running some sort of condition to check if the player is good enough to acquire followers, in this case the rank in this PTFollowerFaction. If you edit the script to always return the highest rank then you can technically bypass any checks for faction rank or reputation.

Link to comment
Share on other sites

Guest deleted2027229

When you say "If removing the conditions doesn't work" would I find conditions under the dialogue menu?

Link to comment
Share on other sites

  • Recently Browsing   0 members

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