Fable: The Lost Chapters Mod Scene
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Fable TLC » Discussion » Level Scripting » Custom bodyguard wont respawn
Custom bodyguard wont respawn [message #52974] Wed, 22 July 2009 06:55 Go to next message
aapje332 is currently offline  aapje332
Messages: 18
Registered: July 2009
Well, I used this tutorial: http://forums.projectego.net/your-own-personal-body-guard-22 49/ It works perfectly, but the bodyguard doesnt respawn again after use...

NewThing AICreature;
Player 2;
UID 18446741874686298247;
DefinitionType "CREATURE_BANDIT_LEADER";
ScriptName BodyGuard;
ScriptData "_EVIL2";
ThingGamePersistent FALSE;
ThingLevelPersistent FALSE;
StartCTCPhysicsNavigator;
PositionX 91.200200;
PositionY 78.000000;
PositionZ 39.034240;
RHSetForwardX 1.000000;
RHSetForwardY 0.000000;
RHSetForwardZ 0.000000;
RHSetUpX 0.000000;
RHSetUpY 0.000000;
RHSetUpZ 1.000000;
EndCTCPhysicsNavigator;
StartCTCRandomAppearanceMorph;
Seed 430619860;
EndCTCRandomAppearanceMorph;
StartCTCTargeted;
Targetable TRUE;
EndCTCTargeted;
StartCTCTalk;
EndCTCTalk;
StartCTCEditor;
AttachToGround TRUE;
EndCTCEditor;
StartCTCVillageMember;
VillageUID 0;
EndCTCVillageMember;
StartCTCContainerRewardHero;
EndCTCContainerRewardHero;
StartCTCEnemy;
FriendsWithEverythingFlag TRUE;
EnableFollowersEnemyProxy TRUE;
FactionName "";
EndCTCEnemy;
Health 60.0;
OverridingBrainName NULL;
HasInformation FALSE;
WanderWithInformation FALSE;
WaveWithInformation FALSE;
EnableCreatureAutoPlacing FALSE;
AllowedToFollowHero TRUE;
RegionFollowingOverriddenFromScript FALSE;
RespondingToFollowAndWait TRUE;
CanBeCourted FALSE;
CanBeMarried FALSE;
InitialPosX 0.0;
InitialPosY 0.0;
InitialPosZ 0.0;
EndThing;

Thanks in advance!
Re: Custom bodyguard wont respawn [message #52975 is a reply to message #52974] Wed, 22 July 2009 07:07 Go to previous messageGo to next message
JohnDoe is currently offline  JohnDoe
Messages: 3007
Registered: October 2007

Retired
This has been discussed before, can't remember the exact details but a thorough search will surely find it.

I can give you a temporary fix in the meantime. Changing the UID will make Fable think there's a new one there, so it spawns a duplicate.
Re: Custom bodyguard wont respawn [message #52976 is a reply to message #52974] Wed, 22 July 2009 07:56 Go to previous messageGo to next message
aapje332 is currently offline  aapje332
Messages: 18
Registered: July 2009
I searched, but I didn't found a solution, only topics that had this question and they died after 3 posts...
Re: Custom bodyguard wont respawn [message #52977 is a reply to message #52976] Wed, 22 July 2009 08:32 Go to previous messageGo to next message
JohnDoe is currently offline  JohnDoe
Messages: 3007
Registered: October 2007

Retired
I've got a few shots in the dark that might be able to help, but I need to know what TNG is used.
Re: Custom bodyguard wont respawn [message #52978 is a reply to message #52974] Wed, 22 July 2009 08:36 Go to previous messageGo to next message
aapje332 is currently offline  aapje332
Messages: 18
Registered: July 2009
I used lookoutpoint, or isnt that what you mean?
Re: Custom bodyguard wont respawn [message #52979 is a reply to message #52978] Wed, 22 July 2009 08:41 Go to previous messageGo to next message
JohnDoe is currently offline  JohnDoe
Messages: 3007
Registered: October 2007

Retired
Okay. Now, like I said, this is a long shot, but worth a try.
Remove your body guard script.
At the very top, between where it says "Version 2;" and "XXXSectionStart" I want you to copy this quest section and paste it in there:
XXXSectionStart V_BodyGuard;

NewThing Marker;
Player 4;
UID 18446741874686299544;
DefinitionType "MARKER_BASIC";
ScriptName M_BodyGuardRespawn;
ScriptData "_EVIL2";
ThingGamePersistent FALSE;
ThingLevelPersistent FALSE;
StartCTCPhysicsStandard;
PositionX 91.200200;
PositionY 78.000000;
PositionZ 39.034240;
RHSetForwardX 1.000000;
RHSetForwardY 0.000000;
RHSetForwardZ 0.000000;
RHSetUpX 0.000000;
RHSetUpY 0.000000;
RHSetUpZ 1.000000;
EndCTCPhysicsStandard;
StartCTCEditor;
EndCTCEditor;
Health 1.0;
EndThing;

NewThing AICreature;
Player 2;
UID 18446741874686298247;
DefinitionType "CREATURE_BANDIT_LEADER";
ScriptName BodyGuard;
ScriptData "_EVIL2";
ThingGamePersistent FALSE;
ThingLevelPersistent FALSE;
StartCTCPhysicsNavigator;
PositionX 91.200200;
PositionY 78.000000;
PositionZ 39.034240;
RHSetForwardX 1.000000;
RHSetForwardY 0.000000;
RHSetForwardZ 0.000000;
RHSetUpX 0.000000;
RHSetUpY 0.000000;
RHSetUpZ 1.000000;
EndCTCPhysicsNavigator;
StartCTCRandomAppearanceMorph;
Seed 430619860;
EndCTCRandomAppearanceMorph;
StartCTCTargeted;
Targetable TRUE;
EndCTCTargeted;
StartCTCTalk;
EndCTCTalk;
StartCTCEditor;
AttachToGround TRUE;
EndCTCEditor;
StartCTCVillageMember;
VillageUID 0;
EndCTCVillageMember;
StartCTCContainerRewardHero;
EndCTCContainerRewardHero;
StartCTCEnemy;
FriendsWithEverythingFlag FALSE;
EnableFollowersEnemyProxy TRUE;
FactionName "";
EndCTCEnemy;
Health 65.0;
OverridingBrainName BRAIN_BODY_GUARD;
HasInformation FALSE;
WanderWithInformation FALSE;
WaveWithInformation FALSE;
EnableCreatureAutoPlacing FALSE;
AllowedToFollowHero FALSE;
RegionFollowingOverriddenFromScript FALSE;
RespondingToFollowAndWait TRUE;
CanBeCourted FALSE;
CanBeMarried FALSE;
InitialPosX 3323.200200;
InitialPosY 3566.000000;
InitialPosZ 39.034240;
EndThing;

XXXSectionEnd;
If that doesn't work, I don't know.
Re: Custom bodyguard wont respawn [message #52980 is a reply to message #52974] Wed, 22 July 2009 08:49 Go to previous messageGo to next message
aapje332 is currently offline  aapje332
Messages: 18
Registered: July 2009
I already used that marked idea, it works, but it doesn't respawn my custom bodyguard. Just a regular bodyguard..


NewThing Marker;
Player 4;
UID 18446741874686300691;
DefinitionType "MARKER_BASIC";
ScriptName M_BodyGuardRespawn;
ScriptData "_EVIL2";
ThingGamePersistent FALSE;
ThingLevelPersistent FALSE;
StartCTCPhysicsStandard;
PositionX 90.016850;
PositionY 78.991210;
PositionZ 39.183220;
RHSetForwardX -0.600222;
RHSetForwardY -0.799834;
RHSetForwardZ 0.000000;
RHSetUpX 0.000000;
RHSetUpY 0.000000;
RHSetUpZ 1.000000;
EndCTCPhysicsStandard;
StartCTCEditor;
AttachToGround TRUE;
EndCTCEditor;
Health 1.0;
EndThing;
Re: Custom bodyguard wont respawn [message #52981 is a reply to message #52980] Wed, 22 July 2009 09:35 Go to previous messageGo to next message
JohnDoe is currently offline  JohnDoe
Messages: 3007
Registered: October 2007

Retired
Alright, I'll check it out later when I have the time. No promises though, I might not find anything useful.
For the time being, I would again suggest changing the UID or, if CREATURE_BANDIT_LEADER is a creature that can be summoned, having your summon kill it (assuming your current summon doesn't outrank that creature).
Re: Custom bodyguard wont respawn [message #52982 is a reply to message #52980] Wed, 22 July 2009 11:15 Go to previous messageGo to next message
jwc2200 is currently offline  jwc2200
Messages: 845
Registered: March 2008
Location: Texas

Administrator

More than the Marker is involved. Use the new quest Section like he said, if you didn't already.


XXXSectionStart V_BodyGuard;

Guard and Marker Scripts

XXXSectionEnd;


Re: Custom bodyguard wont respawn [message #52983 is a reply to message #52982] Wed, 22 July 2009 11:34 Go to previous messageGo to next message
aapje332 is currently offline  aapje332
Messages: 18
Registered: July 2009
jwc2200 wrote on Wed, 22 July 2009 11:15

More than the Marker is involved. Use the new quest Section like he said, if you didn't already.


XXXSectionStart V_BodyGuard;

Guard and Marker Scripts

XXXSectionEnd;


Ive made this new section, but I don't really know what it does, can you give me some explanation?
Re: Custom bodyguard wont respawn [message #52984 is a reply to message #52983] Wed, 22 July 2009 11:37 Go to previous messageGo to next message
JohnDoe is currently offline  JohnDoe
Messages: 3007
Registered: October 2007

Retired
aapje332 wrote on Wed, 22 July 2009 13:34

Ive made this new section, but I don't really know what it does, can you give me some explanation?
It tells Fable to activate quest elements for the quest given. The bodyguard bit is a sort of "gameplay quest" similar to the trader who wants an escort to Orchard Farm. I could go into an in-depth explanation, but I don't want to draw a chart for something that doesn't matter in the end anyway.

You said you used the quest section, the scripts I provided as they are? Before or after Jason's post?
If before, my previous statement stands.
If after, did it work? And why didn't you follow my instructions the first time around?
Re: Custom bodyguard wont respawn [message #52985 is a reply to message #52984] Wed, 22 July 2009 11:44 Go to previous messageGo to next message
aapje332 is currently offline  aapje332
Messages: 18
Registered: July 2009
JohnDoe wrote on Wed, 22 July 2009 11:37

aapje332 wrote on Wed, 22 July 2009 13:34

Ive made this new section, but I don't really know what it does, can you give me some explanation?
It tells Fable to activate quest elements for the quest given. The bodyguard bit is a sort of "gameplay quest" similar to the trader who wants an escort to Orchard Farm. I could go into an in-depth explanation, but I don't want to draw a chart for something that doesn't matter in the end anyway.

You said you used the quest section, the scripts I provided as they are? Before or after Jason's post?
If before, my previous statement stands.
If after, did it work? And why didn't you follow my instructions the first time around?


I did it after (I use Albion Explorer) and I didn't knew what it was till I looked further... And no it didn't worked... Im not going to change the UID constantly so I'm going for your summon idea Smile

By the way, I read on the wiki that this would respawn it:

ScriptName M_BodyGuardRespawn;
ScriptData “_GOOD1”;

Doesn't work, so is the wiki wrong or am I doing something wrong?
Re: Custom bodyguard wont respawn [message #52986 is a reply to message #52985] Wed, 22 July 2009 11:56 Go to previous messageGo to next message
JohnDoe is currently offline  JohnDoe
Messages: 3007
Registered: October 2007

Retired
aapje332 wrote on Wed, 22 July 2009 13:44

Doesn't work, so is the wiki wrong or am I doing something wrong?
Neither. The Wiki doesn't say that, it says that the marker used to respawn the bodyguards has those values. At the same time, you're doing it right as far as I can tell.

Summon, the free bodyguard. In case you come across a problem when setting up the summon, there's a lot of information that can be found throughout the forum regarding working with summons. Posts by Keshire and OldBoy are particularly informative. Wink
Re: Custom bodyguard wont respawn [message #52987 is a reply to message #52986] Wed, 22 July 2009 12:00 Go to previous messageGo to next message
jwc2200 is currently offline  jwc2200
Messages: 845
Registered: March 2008
Location: Texas

Administrator

I just used AE to spawn a good bodyguard. I hired him, took him to Witchwood and got him killed, recalled and another was there. So the problem is on your end. Did you make any changes other than definition type? If so, try again and only change the definition type. Or do what you said in your last post and give up on this.

Re: Custom bodyguard wont respawn [message #52988 is a reply to message #52987] Wed, 22 July 2009 12:14 Go to previous messageGo to next message
aapje332 is currently offline  aapje332
Messages: 18
Registered: July 2009
jwc2200 wrote on Wed, 22 July 2009 12:00

I just used AE to spawn a good bodyguard. I hired him, took him to Witchwood and got him killed, recalled and another was there. So the problem is on your end. Did you make any changes other than definition type? If so, try again and only change the definition type. Or do what you said in your last post and give up on this.


I didn't make any changes that really matter or should change the spawn character... I'm not giving up on this, I hope I'll come up with a solution (I doubt it xD but however ill try) 'till then I'm just going to make some other mods Razz
Re: Custom bodyguard wont respawn [message #52989 is a reply to message #52988] Wed, 22 July 2009 12:33 Go to previous messageGo to next message
jwc2200 is currently offline  jwc2200
Messages: 845
Registered: March 2008
Location: Texas

Administrator

I spawned a good bodyguard again just now. Then all I did was change DefinitionType "CREATURE_BANDIT_LEADER"; and it worked fine. I took him to WW and got him killed then recalled to where I had spawned him and another was in his place. So try it with only changing the definition type to see if it will work the same way in Lookout Point, I used Bowerstone Warehouses because that region loads faster in AE.

Re: Custom bodyguard wont respawn [message #52990 is a reply to message #52974] Wed, 22 July 2009 12:42 Go to previous messageGo to next message
aapje332 is currently offline  aapje332
Messages: 18
Registered: July 2009
Were do I need to change the defenition type? In the marker???
Re: Custom bodyguard wont respawn [message #52991 is a reply to message #52990] Wed, 22 July 2009 12:48 Go to previous messageGo to next message
JohnDoe is currently offline  JohnDoe
Messages: 3007
Registered: October 2007

Retired
No, in the applicable script (the bodyguard creature script) where it says DefinitionType:

DefinitionType "CREATURE_BANDIT_LEADER";
Re: Custom bodyguard wont respawn [message #52992 is a reply to message #52974] Wed, 22 July 2009 12:54 Go to previous messageGo to next message
aapje332 is currently offline  aapje332
Messages: 18
Registered: July 2009
That's the problem, that was it all along...

I had this:

XXXSectionStart V_BodyGuard;

NewThing AICreature;
Player 2;
UID 18446741874686298247;
DefinitionType "CREATURE_BANDIT_LEADER";
ScriptName BodyGuard;
ScriptData "_EVIL2";
ThingGamePersistent FALSE;
ThingLevelPersistent FALSE;
Health 65.00000;
ObjectScale 1.00000;
OverridingBrainName "BRAIN_BODY_GUARD";
HasInformation FALSE;
WanderWithInformation FALSE;
WaveWithInformation FALSE;
ContinueAIWithInformation FALSE;
RespondingToFollowAndWait TRUE;
CanBeMarried FALSE;
CanBeCourted FALSE;
AllowedToFollowHero FALSE;
InitialPosX 3323.20000;
InitialPosY 3566.00000;
InitialPosZ 39.03424;
EnableCreatureAutoPlacing FALSE;
RegionFollowingOverriddenFromScript FALSE;
HasRelationships FALSE;
HomeBuildingUID 0;
WorkBuildingUID 0;
FatherCreatureUID 0;
MotherCreatureUID 0;
SpouseCreatureUID 0;
StartCTCPhysicsNavigator;
PositionX 91.20020;
PositionY 78.00000;
PositionZ 39.03424;
RHSetForwardX 1.00000;
RHSetForwardY 0.00000;
RHSetForwardZ 0.00000;
RHSetUpX 0.00000;
RHSetUpY 0.00000;
RHSetUpZ 1.00000;
EndCTCPhysicsNavigator;
StartCTCEnemy;
FriendsWithEverythingFlag FALSE;
EnableFollowersEnemyProxy TRUE;
FactionName "";
EndCTCEnemy;
StartCTCTargeted;
Targetable TRUE;
EndCTCTargeted;
StartCTCRandomAppearanceMorph;
Seed 430619860;
EndCTCRandomAppearanceMorph;
StartCTCEditor;
LockedInPlace FALSE;
AttachToGround TRUE;
Freezed FALSE;
EndCTCEditor;
EndThing;

NewThing Marker;
Player 4;
UID 18446741778328336486;
DefinitionType "BASIC_MARKER";
ScriptName M_BodyGuardRespawn;
ScriptData "_EVIL2";
ThingGamePersistent FALSE;
ThingLevelPersistent FALSE;
Health 1.00000;
ObjectScale 1.00000;
StartCTCPhysicsStandard;
PositionX 91.20020;
PositionY 78.00000;
PositionZ 39.03424;
RHSetForwardX 1.00000;
RHSetForwardY 0.00000;
RHSetForwardZ 0.00000;
RHSetUpX 0.00000;
RHSetUpY 0.00000;
RHSetUpZ 1.00000;
EndCTCPhysicsStandard;
EndThing;

XXXSectionEnd;
Re: Custom bodyguard wont respawn [message #52993 is a reply to message #52992] Wed, 22 July 2009 13:00 Go to previous messageGo to next message
jwc2200 is currently offline  jwc2200
Messages: 845
Registered: March 2008
Location: Texas

Administrator

Are you saying it works now?

Re: Custom bodyguard wont respawn [message #52994 is a reply to message #52974] Wed, 22 July 2009 13:02 Go to previous messageGo to next message
aapje332 is currently offline  aapje332
Messages: 18
Registered: July 2009
No Razz I dont know whats wrong with what I did, but it doesnt work...
Re: Custom bodyguard wont respawn [message #52996 is a reply to message #52994] Wed, 22 July 2009 13:33 Go to previous messageGo to next message
jwc2200 is currently offline  jwc2200
Messages: 845
Registered: March 2008
Location: Texas

Administrator

The last script you posted has a lot of crap in it that shouldn't be there and it is out of order. I don't see how you got all that stuff. I made a simple script that works for what you want.

Go to your FinalAlbion folder, open LookoutPoint.tng. Right under:

Version 2;
XXXSectionStart Gameflow;

paste the attached file, it is a script I just added your coordinates to. I tested it and it worked fine, no marker or extra quest tags needed. I took him from Lk Pt and killed him, then came right back and he had been replaced.

Npcs are scared of him, they seem to think he is a bandit, but he acts like a bodyguard.


Re: Custom bodyguard wont respawn [message #53004 is a reply to message #52974] Thu, 23 July 2009 00:30 Go to previous messageGo to next message
aapje332 is currently offline  aapje332
Messages: 18
Registered: July 2009
Dude!!! It works!!!! But can you explain the big difference to me???
Re: Custom bodyguard wont respawn [message #53005 is a reply to message #53004] Thu, 23 July 2009 01:21 Go to previous messageGo to next message
jwc2200 is currently offline  jwc2200
Messages: 845
Registered: March 2008
Location: Texas

Administrator

Glad it worked. I don't think there is a big difference, at least not from the first script you posted. Put them side by side and compare the lines, that's what I did. It doesn't take much to throw a script off. If I remember right it was a TRUE here and/or a FALSE there that made the difference.

Re: Custom bodyguard wont respawn [message #53006 is a reply to message #53005] Thu, 23 July 2009 01:24 Go to previous messageGo to next message
JohnDoe is currently offline  JohnDoe
Messages: 3007
Registered: October 2007

Retired
Some of that might be my fault.
I changed the original script a lot, replacing lines with those I found in the Wiki.

I don't want to jump to the conclusion that the Wiki is wrong, simply because such an accusation can be considered blasphemy, but if the key differences can be pinpointed and proven to work universally, then the Wiki is wrong.
Re: Custom bodyguard wont respawn [message #53007 is a reply to message #52974] Thu, 23 July 2009 01:29 Go to previous message
aapje332 is currently offline  aapje332
Messages: 18
Registered: July 2009
Well, I'm glad this worked, now I'm going to try to retexture assassin clothes (never done this before, so I just open photoshop and see what I can make Razz)
Previous Topic: How to make teleport in other location
Next Topic: Fable: New Arena
Goto Forum:
  


Current Time: Tue Apr 16 16:52:03 PDT 2024

Total time taken to generate the page: 0.01151 seconds