Jump to content

Help with a companion script


Orakle2000

Recommended Posts

Hey

 

Ive been trying to follow the followers guide tutorial, and i cant get the script to save.

Link: http://www.finhosting.fi/~fallout/cgi-bin/yabb2/YaBB.pl?num=1230434906

ive replaced all the mikasnipers with my npc ID and removed the lines they tell you to remove

but i still cant get it to work.

 

This is my script (you can find the old one in the link earlier mentioned).

 

xx = npc name

xxx = npc ID

 

scn dude1SCRIPT


;** xx **
short	        xxxHired
short  	xxxFired

short 	HasBeenHired
short 	WeaponOut
short 	CombatStyleRanged
short	        CombatStyleMelee
short	        IsFollowingDefault
short 	IsFollowingShort
short 	IsFollowingLong
short 	Waiting
short 	DoOnce
short         FlashlightOn

BEGIN GameMode
; Keep her out of Vault 87 - Foxy Fawkesy makes her crashy.

if ( player.getincell Vault87c && xxxHired == 1 )
	set xxxHired to 0
	set xxxFired to 1
endif
END

BEGIN OnCombatEND
; heal up
if ( GetPlayerTeammate == 1 )
	resethealth
	restoreav perceptioncondition 100
	restoreav endurancecondition 100
	restoreav leftattackcondition 100
	restoreav leftmobilitycondition 100
	restoreav rightattackcondition 100
	restoreav rightmobilitycondition 100
endif

END

BEGIN OnDeath

	if ( xxxHired == 1  )
		set xxxHired to 0
	endif

END

Edited by Orakle2000
Link to comment
Share on other sites

  • Recently Browsing   0 members

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