Jump to content

Follower script doesn't save...


Zenkon13

Recommended Posts

For the past week now, I've been working on a eyebot follower to act as a pack mule for the Lone Wanderer in Fallout 3. I had so many errors and some mistakes that frustrated me enoguh to remake the entire mod from scratch again. I then decided to copy the follower quest script found in the game files, and replicate it. I copied the follower quest scirpt for RL-3 and made it into it's own script. But everytime I try to save this copied script, it gives me errors found in line 7, 10, 25...

 

I've been having some trouble to save the following as a quest scirpt for a follower mod:

 

scn [ZK13EyebotCompanionQuestSCRIPT]

;***Eyebot Variables***
short ZK13EyebotHired
short ZK13EyebotFired

BEGIN GameMode

If ( ZK13EyebotREF.Waiting == 1 ) && ( ZK13EyebotREF.GetInCell MegatonPlayerHouse == 0 ) && ( ZK13EyebotREF.GetInCell Tenpenny03Player == 0 )
If ( FollowerWaitingLeaveDay <= GameDaysPassed )
If ( ZK13EyebotREF.GetInSameCell Player == 0 )
set Followers.PlayerHasFollower to 0
set Followers.ZK13EyebotHired to 0
set Followers.ZK13EyebotFired to 1
set ZK13EyebotREF.Waiting to 0
set ZK13EyebotREF.IsFollowingDefault to 1
set ZK13EyebotREF.IsFollowingLong to 0
set ZK13EyebotREF.IsFollowingShort to 0
ZK13EyebotREF.SetCombatStyle FollowersCombatStyleRanged
set ZK13EyebotREF.CombatStyleRanged to 1
set ZK13EyebotREF.CombatStyleMelee to 0
ZK13EyebotREF.SetPlayerTeammate 0
ZK13EyebotREF.RemoveFromFaction FollowerFaction
ZK13EyebotREF.evp

ShowMessage ZK13EyebotLeaveMessage
ZK13EyebotREF.MoveTo ZK13EyebotHomeREF
set FollowerWaitingLeaveDay to 0
endif
endif
endif

End

 

Can someone please help me correct this follower quest script for my mod?

Link to comment
Share on other sites

 


set Followers.ZK13EyebotHired to 0
set Followers.ZK13EyebotFired to 1

 

Unless you modified the Followers quest script, those variables don't exist in it. Don't do that, however.

 

As those variables are declared locally in your script, simply change those lines to:

 

set ZK13EyebotHired to 0
set ZK13EyebotFired to 1

 

Also, make sure that ZK13EyebotREF and ZK13EyebotHomeREF exist as in-game persistent references. You'll need to create a Message named ZK13EyebotLeaveMessage also, because you have a line calling ShowMessage on it.

 

In order to set object variables on your follower reference, you'll have to create and attach the object script for it that declares those variables first.

 

Copying and editing the vanilla scripts is a good start, but the quest script is the last one you need to write.

Link to comment
Share on other sites

I can't even save my quest script, it's saying that there's an error... * ^*

 

SCRIPTS: Script 'ZK13EyebotCompanionQuestSCRIPT', line 10:

Syntax Error. Unkown command 'FollowerWaitingLeaveDay'.

Link to comment
Share on other sites

It saved the quest script! Woot! I maybe one step closer to finishing that eyebot companion mod after all! Thank you so much, luthienanarion! =D

 

By the way, you would happen to know a way on removing an actor effect from a npc? I know this eyebot will be annoying people with enclave music spewing from it...

 

Link to comment
Share on other sites

To remove an actor effect, just highlight the effect, and get this, press the delete key on your keyboard. Completely unintuitive isn't it? You would think that you should right click and select 'delete' from the actions drop down box like every other action in the GECK, wouldn't you? But NO! It's just Beth's way of saying muhahahaha again.

Link to comment
Share on other sites

What a way for Bethesda Softworks to troll the modders... =_=

 

Thank you so much for help, pkleiss. Now I know that I don't need to receate an eyebot from scratch in order to get rid of those annoying actor effects.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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