Jump to content

Follower Script Issues (Variables)


CrashRakashe

Recommended Posts

Hello, I'm currently working on a follower mod for Fallout 3 and I'm having a major issue that has become a road block.

 

My idea for this mod was to use the existing quest and script that handles followers from the base game. To do this, I've added my follower to the list "NPCFollowersLIST".

 

To the follower script, "FollowersQuestSCRIPT" I've added:

Line 44: ;***Taggart Variables***
line 45:    short TaggartHired
Line 46     short TaggartFired

line 242: if ( TaggartREF.Waiting == 1 ) && ( TaggartREF.GetInCell MegatonPlayerHouse == 0 )  && ( TaggartREF.GetInCell Tenpenny03Player == 0 )
			if ( FollowerWaitingLeaveDay <= GameDaysPassed )
				if ( TaggartREF.GetInSameCell Player == 0  )
					set Followers.PlayerHasFollower to 0
					set Followers.TaggartHired to 0
					set Followers.TaggartFired to 1
					set TaggartREF.Waiting to 0
					set TaggartREF.IsFollowingDefault to 1
					set TaggartREF.IsFollowingLong to 0
					set TaggartREF.IsFollowingShort to 0
					TaggartREF.SetCombatStyle FollowersCombatStyleRanged
					set TaggartCrossREF.CombatStyleRanged to 1
					set TaggartCrossREF.CombatStyleMelee to 0
					TaggartREF.SetPlayerTeammate 0
					TaggartREF.RemoveFromFaction FollowerFaction
					TaggartREF.evp

					ShowMessage FollowerMessageLeaveTaggart
					TaggartREF.MoveTo CitScribeMarker04
					set FollowerWaitingLeaveDay to 0
				endif
			endif
		endif

However when I tried to save my additions to the script it spits back;

 

SCRIPTS: Script 'FollowersQuestScript', line 242:
Unknown variable or function 'Waiting'.

Which doesn't make any sense to me since the rest of the script uses the same variable and it only has an issue with the one I added.

 

When I try to compile the script for my NPC (which is a copy of "JerichoSCRIPT " it will give the same warning for "TaggartHired".

 

I can't add conditions to the quest because it needs variables. I can't add variables because of this error. I feel stuck in an endless loop and I don't see a way out of this. Have I skipped something over? Is what I'm wanting to do impossible? Why is it working for base game content but not my content?

 

Thank you for any help that you can provide,

Crash.

Link to comment
Share on other sites

As GamerRick says, your npc will need it's own script. The vanilla followers are quite limited in what they can do. When I made a follower I don't think (it was a while ago) I touched that script at all. Everything was handlesd in the npc's script and using result scripts in the quest itself. If you're looking for an example of how that works I recommend looking at the Brianna Companion mod. Better than vanilla, but not too complicated.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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