Jump to content

Follower creation problem


5ivexxxxx

Recommended Posts

Well, it's not just followers, it's NPCs. I'm attempting to make a follower NPC, and I make the NPC, their AI packages, dialogue, scripts, etc., and place them in the world ( in this case, Rivet City). I make sure everything is right (as far as I know), I load up the game with the .esp enabled, go to Rivet City, and the NPC isn't there. What am I doing wrong?
Link to comment
Share on other sites

Well, here's her script:

 

scn AshleySCRIPT

;** Ashley**
short AshleyHired
short AshleyFired
short HasBeenHired
short WeaponOut
short CombatStyleRanged
short CombatStyleMelee
short IsFollowingDefault
short IsFollowingLong
short IsFollowingShort
short Waiting
short Doonce
short LightOn
short AshleyHealPercent
short AshleyRunSpeed
short AshleyHome
short AshleyChilledOut
short AshleyDistanceSize


BEGIN GameMode

; Don not enter Vault 87 with her, stuff will glitch up.
if ( player.getincell Vault87c && GetQuestRunning MQ08 && AshleyHired == 1 )
	set AshleyHired to 0
	set AshleyFired to 1
	AshleyREF.moveto GaryStaleySellMarker
	ShowMessage FollowerMessageLeaveAshley
endif

;This is Ashley's healing function thingy.

If (GetPlayerTeammate == 1) && IsInCombat == 1 && AshleyHealPercent == 1 && AshleyHired == 1
	If HasMagicEffect RestoreHealthStimpak == 0
		If GetHealthPercentage <= 0
			If GetItemCount Stimpak > 0
				CastImmediateOnSelf Stimpak
				PlayIdle AnimStempax
				RemoveItem Stimpak 1
			EndIf
		EndIf
	EndIf
EndIf

;Use of Psycho if in Combat
	If (GetPlayerTeammate == 1) && IsInCombat == 1
		If HasMagicEffect PsychoMagicEffect == 0
			If GetActorValue Health <= 0.80
				If GetItemCount Psycho > 0
					CastImmediateOnSelf Psycho
					RemoveItem Psycho 1
				EndIf
			EndIf
		EndIf
	EndIf

;***********Med-X Use!*********
	If (GetPlayerTeammate == 1) && IsInCombat == 1
		If HasMagicEffect MorphineEffect == 0
			If GetActorValue Health <= 0.40
				If GetItemCount Morphine > 0
					CastImmediateOnSelf Morphine
					RemoveItem Morphine 1
				EndIf
			EndIf
		EndIf
	EndIf

;These Are Her Eating Habits*********
	If (GetPlayerTeammate == 1)
		If HasMagicEffect RestoreHealth == 0 && Doonce == 0
			If GetHealthPercentage < 1.00
				If GetItemcount Apple > 1
					CastImmediateOnSelf Apple
					RemoveItem Apple 2
EndIf

ElseIf GetItemCount DandyBoyApples > 1
	CastImmediateOnSelf DandyBoyApples
	RemoveItem DandyBoyApples 2
EndIf

ElseIf GetItemCount NukaCola > 0
	CastImmediateOnSelf NukaCola
	RemoveItem NukaCola 1
	AddItem Caps001 1
EndIf

ElseIf GetItemCount MS05IceNukaCola > 0
	CastImmediateOnSelf MS05IceNukaCola
	RemoveItem MS05IceNukaCola 1
	AddItem Caps001 1
EndIf

ElseIf GetItemCount BlamcoMacandCheese > 0
	CastImmediateOnSelf BlamcoMacandCheese
	RemoveItem BlamcoMacandCheese 1
EndIf

ElseIf GetItemCount Carrot > 0
	CastImmediateOnSelf Carrot
	RemoveItem Carrot 1
EndIf

ElseIf GetItemCount FancyLadsSnackCakes > 0
	CastImmediateOnSelf FancyLadsSnackCakes
	RemoveItem FancyLadsSnackCakes 1
EndIf

ElseIf GetItemCount InstaMash > 0
	CastImmediateOnSelf InstaMash
	RemoveItem InstaMash 1
EndIf

ElseIf GetItemCount WaterPurified > 0
	CastImmediateOnSelf WaterPurified
	RemoveItem WaterPurified 1
EndIf

ElseIf GetItemCount Noodles > 0
	CastImmediateOnSelf Noodles
	RemoveItem Noodles 1
EndIf

ElseIf GetItemCount Mutfruit1 > 0
	CastImmediateOnSelf Mutfruit1
	RemoveItem Mutfruit1 1
EndIf

ElseIf GetItemCount Mutfruit2 > 0
	CastImmediateOnSelf Mutfruit2
	RemoveItem Mutfruit2 1
EndIf

ElseIf GetItemCount BrahminSteak > 1
	CastImmediateOnSelf BrahminSteak
	RemoveItem BrahminSteak 1
EndIf

ElseIf GetItemCount MirelurkCakes > 1
	CastImmediateOnSelf MirelurkCakes
	RemoveItem MirelurkCakes 1
EndIf
EndIf
EndIf
EndIf


END

BEGIN MenuMode 1012

;This Makes Her Heal When You Sleep********
If (GetPlayerTeammate == 1)
	If ( IsTimePassing == 1)
		ResetHealth
		Restoreav PerceptionCondition 100
		Restoreav EnduranceCondition 100
		Restoreav LeftAttackCondition 100
		Restoreav LeftMobilityCondition 100
		Restoreav RightAttackCondition 100
		Restoreav RightMobilityCondition 100
		ShowMessage AshleyMessageSleepHeal
	EndIf
EndIf

END

;******End of Combat**********

Begin OnCombatEND

;Tell Player if Ash is near death
	If ( AshleyHealPercent == 0 && GetHealthPercentage < 0.20 && AshleyHired == 1 )
		ShowMessage AshleyHealthCritical01
EndIf

;Show Message if Ash has no stims left
	If ( AshleyHealPercent == 1 && GetHealthPercentage <= 0.30 && GetItemCount Stimpak < 2 && AshleyHired == 1 )
		ShowMessage AshleyNoStimpaks
	EndIf

END

BEGIN OnDeath
;Message telling player Ash is dead****
	If ( AshleyHired == 1 )
		set AshleyHired to 0
		ShowMessage FollowerMessageDeadAshley
	EndIf
END

 

It may be a problem with one of her AI packages, that tells her to wait at the Rivet City Bar when fired, taken from Butch. Also, the game crashes when I try to load it with the .esp active for some reason. Is that related? It hasn't happened before, and I am 100% sure it is the follower esp causing it.

 

Oh, and they are not initially disabled.

Link to comment
Share on other sites

Heh, no. When I load the game with the esp active, it crashes. It did not have this problem earlier, even thought I did not change much. To be exact, I remade it exactly, except without dependancy on FOOK, to make it just require Fallout.esm. I have tried to run it with all other mods deactivated, in non-FOSE mode, etc, but it still crashes. When it doesn't crash, on earlier versions of the follower, the follower does not appear. On those versions, the esp is activated, the game does not crash, but the NPC does not appear.

 

Oh, and the crash happens on startup, not when I load a save or go to the NPCs location. Is there anything I may have accidentally changed that causes this, perhaps?

 

And to clarify again, the esp is only dependant on Fallout.esm, nothing else.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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