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

Home » Fable TLC » Discussion » Level Scripting » Chest Respawning (How can I get this to stop?)
Chest Respawning (How can I get this to stop?) [message #27228] Sun, 16 September 2007 08:33 Go to next message
Goinstadi is currently offline  Goinstadi
Messages: 6
Registered: September 2007
I've been messing around with spawning chests and Shopkeepers and the like and have been having some pretty good success, but my chests respawn everytime I zone in or out of the area. It was kinda amusing when I had the PositionZ 55.0, but it just got more and more frustrating as I get along with it. They didn't look any different from the starting chest, yet they would spawn duplicates.

And then I screwed up and saved over my testing save with the persistances set to TRUE. So I'm going to have to play through the tutorial again and set up a couple of back up saves. I think it might have something to do with the fact that I was messing with it and reloading the game fairly constantly, but I am fairly new to this and I'd appreciate any feedback if possible.
Re: Chest Respawning (How can I get this to stop?) [message #27229 is a reply to message #27228] Sun, 16 September 2007 08:35 Go to previous messageGo to next message
deathsvisage is currently offline  deathsvisage
Messages: 316
Registered: September 2007
um do you want you never stated
Re: Chest Respawning (How can I get this to stop?) [message #27230 is a reply to message #27228] Sun, 16 September 2007 09:01 Go to previous messageGo to next message
Satan
Messages: 1033
Registered: September 2005
Location: Hades

Administrator
ThingGamePersistent TRUE/FALSE - Does the object last through the whole game?
ThingLevelPersistent TRUE/FALSE - Is the object only level persistent?

And while I'm here....

deathsvisage why are you using that sig ? It clearly has Marcopolo's name in it and in fact is the one he uses on the projectego forums.


http://img259.imageshack.us/img259/1398/satansigv5gu3.gif

There is nothing in the Void.
There is no point to it's being.
I wish there was a reason.
There is nothing in the Void,
But what we put there.

[Updated on: Sun, 16 September 2007 09:04]

Report message to a moderator

Re: Chest Respawning (How can I get this to stop?) [message #27232 is a reply to message #27228] Sun, 16 September 2007 09:22 Go to previous messageGo to next message
Goinstadi is currently offline  Goinstadi
Messages: 6
Registered: September 2007
Yeah I understand that part of the persistants, but what excatly do they tell the game to do?

Like does ThingGamePersistent TRUE/FALSE tell it to save with the save game? And does ThingLevelPersistent TRUE/FALSE tell it to just stick around while you're in that zone?

For instance, I based all my chests off of the Guild Demon Door Chest, and it's got FALSE/FALSE for both of those, yet when I set my chests to FALSE/FALSE they are respawning each time I zone into the area.

This is why I'm confused.

Here's the code for one of the chests:
NewThing Object;
Player 4;
UID 18446741726154422185;
DefinitionType "OBJECT_CHEST_OPENABLE";
ScriptName NULL;
ScriptData "NULL";
ThingGamePersistent FALSE;
ThingLevelPersistent FALSE;
StartCTCPhysicsStandard;
PositionX 30.131350;
PositionY 38.436280;
PositionZ 3.027054;
RHSetForwardX 0.000000;
RHSetForwardY -1.000000;
RHSetForwardZ 0.000000;
RHSetUpX 0.000000;
RHSetUpY 0.000000;
RHSetUpZ 1.000000;
EndCTCPhysicsStandard;
StartCTCTargeted;
Targetable TRUE;
EndCTCTargeted;
StartCTCEditor;
EndCTCEditor;
StartCTCChest;
ContainerContents[0] "OBJECT_GOLD_1000000";
ContainerContents[1] "OBJECT_HERO_TITLE_RUNEMASTER";
ContainerContents[2] "OBJECT_SWORD_OF_STRENGTH";
ChestOpen FALSE;
EndCTCChest;
Health 1.0;
EndThing;


And for the chest that the game has already there

NewThing Object;
Player 4;
UID 18446741874686296067;
DefinitionType "OBJECT_CHEST_OPENABLE";
ScriptName NULL;
ScriptData "NULL";
ThingGamePersistent FALSE;
ThingLevelPersistent FALSE;
StartCTCPhysicsStandard;
PositionX 40.078613;
PositionY 22.092041;
PositionZ 5.0;
RHSetForwardX 0.0;
RHSetForwardY 0.999994;
RHSetForwardZ 0.0;
RHSetUpX 0.0;
RHSetUpY 0.0;
RHSetUpZ 0.999994;
EndCTCPhysicsStandard;
StartCTCTargeted;
Targetable TRUE;
EndCTCTargeted;
StartCTCEditor;
EndCTCEditor;
StartCTCChest;
ContainerContents[0] "OBJECT_SUPER_HEALTH_POTION";
ChestOpen FALSE;
EndCTCChest;
Health 1.0;
EndThing;


To me they look exactly the same and should behave the same, but mine constantly respawns. Any help is appreciated.

[Updated on: Sun, 16 September 2007 10:44]

Report message to a moderator

Re: Chest Respawning (How can I get this to stop?) [message #27262 is a reply to message #27228] Sun, 16 September 2007 11:14 Go to previous messageGo to next message
Loby-man is currently offline  Loby-man
Messages: 329
Registered: April 2007
Well first of all i pretty sure that youre suposed to have StartCTCRewardHero;
ContainerContents[0] "";
EndCTCRewardHero;

around your continer contents line..
and thats all i can see tat looks weird to mr Confused
Re: Chest Respawning (How can I get this to stop?) [message #27263 is a reply to message #27228] Sun, 16 September 2007 11:16 Go to previous messageGo to next message
Satan
Messages: 1033
Registered: September 2005
Location: Hades

Administrator
chest contents is correct. reward hero is only for creatures i believe.

http://img259.imageshack.us/img259/1398/satansigv5gu3.gif

There is nothing in the Void.
There is no point to it's being.
I wish there was a reason.
There is nothing in the Void,
But what we put there.
Re: Chest Respawning (How can I get this to stop?) [message #27264 is a reply to message #27228] Sun, 16 September 2007 11:17 Go to previous message
Loby-man is currently offline  Loby-man
Messages: 329
Registered: April 2007
no becuase on on some scripts(all the ones ive modded barrels and chests)have that of wht i said
Previous Topic: small problem
Next Topic: Used Wiki but no dice...
Goto Forum:
  


Current Time: Thu Mar 28 08:31:16 PDT 2024

Total time taken to generate the page: 0.01063 seconds