Jump to content

A hopefuly simple request


amelmastema

Recommended Posts

Hi, thanks for reading!

 

I would like my knight (Lathorn to fast travel with me in the shivering isles. I took the speedup part from N43SkeletonHound from the isles. Here is the code that seems to work fine as far as the speedup is considered. Alas to implement it I tried editing the Knights.esp and it kills all dialogue options with him becuase the CS corrupts the esp I assume. (Gets loads of warnings in the CS)

 

I am not skilled enough with Wrye Bash or TES4edit to know what to do offhand.

 

In advance, thank you!

 

edit :

 

I used CS and opened a unofficial knights of the nine patch esp and added this script, then used TES4Edit to remove everything but the script. It loads fine, but still Lathorn has no dialogue. Guess the script itself needs tending instead. Any ideas ?

 

 

scn NDLathonSCRIPT

short JoinedOrder	; set to 1 when player lets Lathon join order
short DoOnce		; set to 1 when new equipment added
short SpeedUp		; flag is set if hound gets too far away from PC

; clear follower variables if I'm the follower when I die
begin OnDeath
if GetSelf == ND00.FollowerRef
	set ND00.FollowerRef to 0
	set ND00.Following to 0
	set ND00.FollowerClear to 1
endif	

if getstage ND10 >= 20 && getstage ND10 < 50
	set ND10.KnightsDead to ND10.KnightsDead + 1
	if ( ND00.KnightCount - ND10.KnightsDead ) <= 3
		set ND10.KnightFollow to 1
	endif	
endif

end

BEGIN OnActivate

if ( ND10.TimeStopped == 1 ) && ( Player.GetInCell NDGarlasMalatar02a == 1 )
	message "The time stop effect prevents you from interacting with the Knights."
else
		activate
endif

END

begin OnPackageEnd NDLathonToPriory
if GetInFaction NDKnightsoftheNine == 0
	set ND00.KnightCount to ND00.KnightCount + 1
	SetActorFullName "Sir Lathon"
	SetFactionRank NDKnightsoftheNine 0
; no longer essential
	SetEssential NDLathon 0
; no more rumors
	SetNoRumors 1
; knight equipment
	additem NDKnightsCuirass 1
	additem NDKnightsShield 1
	additem ChainmailBoots 1
	additem ChainmailGauntlets 1
	additem ChainmailGreaves 1
	additem ChainmailHelmet 1
	additem LL0NPCWeaponLongswordLvl100 1
	additem LL0NPCWeaponBowLvl100 1
	additem Arrow3Silver 5
; some potions to keep him in the fight
	additem LL1NPCPotionRestoreHealth 1
	equipitem NDKnightsCuirass
	equipitem NDKnightsShield 
	equipitem ChainmailBoots 
	equipitem ChainmailGauntlets 
	equipitem ChainmailGreaves 
	equipitem ChainmailHelmet 
endif
end

begin OnPackageEnd ND08LathonFindSirRoderic
if ND08.mournLathon < 2
	set ND08.mournLathon to 2
	Say ND08LathonSaySirRoderic 1
endif
end

begin OnStartCombat player
return
end

begin OnStartCombat
Say NDKnightsStartCombat
end

Begin GameMode
; Fast travel in SE doesn't force followers to appear with player after fasttravel.
; Therefore if the hound is too far away, set it's speed to 255 so that it catches up.

If SpeedUp == 0 && GetDistance Player >  13000
	SetActorValue Speed 255
	Set SpeedUp to 1
ElseIf SpeedUp == 1 && GetDistance Player <= 13000
	SetActorValue Speed 22									; return hound to default speed once it gets close
	Set SpeedUp to 0											; if left at 255 while hound is in high, it will run off a hill and die.
EndIf
End

Begin MenuMode 1023			; fast travel menu
SetActorValue Speed 255	; forces hound to travel really fast while player is fast travelling
Set SpeedUp to 1
End

Link to comment
Share on other sites

Archived

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

  • Recently Browsing   0 members

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