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

Home » Fable TLC » Discussion » Level Scripting » Scripting Shopkeepers
Scripting Shopkeepers [message #24053] Wed, 15 August 2007 05:21 Go to next message
Keshire is currently offline  Keshire
Messages: 1266
Registered: July 2005

Administrator
While I'm waiting for Silver to reply to a pm about this. Here's a challenge.

Get this too work:
StartCTCShop;
StockItemDefsKeys[0] "OBJECT_CRYSTAL_BATTLEAXE";
StockItemDefsQuantity[0] 1.0;
StockItemDefsMaxStock[0] 1.0;
DayLastChecked 5; 	
EndCTCShop;


It will currently override the base shop items, but for some reason won't list the new ones. So any suggestions on what I'm doing wrong with the syntax here?

NewThing AICreature;
Player 2;
UID 18446741275358321754;
DefinitionType "CREATURE_TRADER_STOCKED_01";
ScriptName NULL;
ScriptData "NULL";
ThingGamePersistent TRUE;
ThingLevelPersistent TRUE;
StartCTCPhysicsNavigator;
PositionX 43.756840;
PositionY 43.957280;
PositionZ 29.904350;
RHSetForwardX 1.000000;
RHSetForwardY 0.000000;
RHSetForwardZ 0.000000;
RHSetUpX 0.000000;
RHSetUpY 0.000000;
RHSetUpZ 1.000000;
EndCTCPhysicsNavigator;
StartCTCTargeted;
Targetable TRUE;
EndCTCTargeted;
StartCTCTalk;
EndCTCTalk;
StartCTCEditor;
EndCTCEditor;
StartCTCVillageMember;
VillageUID 0;
EndCTCVillageMember;
StartCTCShop;
StockItemDefsKeys[0] "OBJECT_CRYSTAL_BATTLEAXE";
StockItemDefsQuantity[0] 1.0;
StockItemDefsMaxStock[0] 1.0;
DayLastChecked 5; 	
EndCTCShop;
StartCTCContainerRewardHero;
EndCTCContainerRewardHero;
StartCTCEnemy;
FriendsWithEverythingFlag FALSE;
EnableFollowersEnemyProxy TRUE;
FactionName "";
EndCTCEnemy;
Health 60.0;
OverridingBrainName NULL;
HasInformation FALSE;
WanderWithInformation FALSE;
WaveWithInformation FALSE;
EnableCreatureAutoPlacing FALSE;
AllowedToFollowHero FALSE;
RegionFollowingOverriddenFromScript FALSE;
RespondingToFollowAndWait TRUE;
CanBeCourted FALSE;
CanBeMarried FALSE;
InitialPosX 0.0;
InitialPosY 0.0;
InitialPosZ 0.0;
EndThing;



Apathy Cannot Inspire.
Ambivalence cannot lead.
Loved me. Feared me.
Changed me. Killed me.
Anything would be something.
But nothing is worst of all.
Re: Scripting Shopkeepers [message #24054 is a reply to message #24053] Wed, 15 August 2007 05:32 Go to previous messageGo to next message
OldBoy is currently offline  OldBoy
Messages: 1112
Registered: October 2005
Location: Groningen

Administrator

Blue is asking us for help *faints*

http://img18.imageshack.us/img18/1640/48x48exit.png
this is not an exit.
Re: Scripting Shopkeepers [message #24056 is a reply to message #24053] Wed, 15 August 2007 06:04 Go to previous messageGo to next message
Grant Hammerhoof is currently offline  Grant Hammerhoof
Messages: 98
Registered: April 2006
Location: Alaska

(That's what I was just thinking!)

http://i19.photobucket.com/albums/b165/grant_hammerhoof/Grant_BuffBull_WesternSignature.png
icon14.gif  Re: Scripting Shopkeepers [message #24058 is a reply to message #24053] Wed, 15 August 2007 06:14 Go to previous messageGo to next message
morerunes is currently offline  morerunes
Messages: 2154
Registered: June 2007
Location: My desk

Administrator

good luck

"All of the work, and none of the play, will surely provide for a speedy decay"
Re: Scripting Shopkeepers [message #24105 is a reply to message #24053] Wed, 15 August 2007 13:51 Go to previous messageGo to next message
Keshire is currently offline  Keshire
Messages: 1266
Registered: July 2005

Administrator
As I was telling silver. This would be a pretty important find.
It'd make spawning items much much easier.

If these are set to FALSE, then the shop isn't saved which means you could change the stock even after saving the region.
ThingGamePersistent TRUE;
ThingLevelPersistent TRUE;


You could just keep plugging in items as you see fit.

My only problem is that the syntax doesn't seem to work. So it must be wrong. The ctc itself does work though since it's overriding the base stock.



Apathy Cannot Inspire.
Ambivalence cannot lead.
Loved me. Feared me.
Changed me. Killed me.
Anything would be something.
But nothing is worst of all.
Re: Scripting Shopkeepers [message #24158 is a reply to message #24053] Wed, 15 August 2007 22:30 Go to previous messageGo to next message
Keshire is currently offline  Keshire
Messages: 1266
Registered: July 2005

Administrator
So far. Only accepts entries that are defined internally.

So the weapon won't work but an apple will for that trader. Neutral



Apathy Cannot Inspire.
Ambivalence cannot lead.
Loved me. Feared me.
Changed me. Killed me.
Anything would be something.
But nothing is worst of all.
Re: Scripting Shopkeepers [message #24160 is a reply to message #24158] Wed, 15 August 2007 23:15 Go to previous messageGo to next message
HodgePodge is currently offline  HodgePodge
Messages: 440
Registered: April 2007
Location: Making Bagel Bites
Meh, who needs weapons? Forget about those damn balverines, stay home, and have an apple Laughing I actually do hope that you get this figured out Blue, it certainly would be nice Razz

http://i186.photobucket.com/albums/x50/HawjPawj/PONG.gif
Re: Scripting Shopkeepers [message #24161 is a reply to message #24053] Wed, 15 August 2007 23:29 Go to previous messageGo to next message
Sean_s is currently offline  Sean_s
Messages: 576
Registered: June 2007
Location: Ohio
What about a Snowspire shop keeper, since they will buy anything, could that mean they could stock anything as well? I'll try it some time (right now I'm fighting with my computer about updating, I'm winning for the most part, but still some problems, lol).

New? Or looking for information? Look here before posting.
Help the community by adding this to your sig!

Assistant for Conquest
By the way, call me Searyan
Re: Scripting Shopkeepers [message #24162 is a reply to message #24161] Wed, 15 August 2007 23:40 Go to previous messageGo to next message
Keshire is currently offline  Keshire
Messages: 1266
Registered: July 2005

Administrator
Sean_s wrote on Thu, 16 August 2007 01:29

What about a Snowspire shop keeper, since they will buy anything, could that mean they could stock anything as well? I'll try it some time (right now I'm fighting with my computer about updating, I'm winning for the most part, but still some problems, lol).



Genius! That did it. Now to tweak it.



Apathy Cannot Inspire.
Ambivalence cannot lead.
Loved me. Feared me.
Changed me. Killed me.
Anything would be something.
But nothing is worst of all.
Re: Scripting Shopkeepers [message #24163 is a reply to message #24053] Wed, 15 August 2007 23:42 Go to previous messageGo to next message
Sean_s is currently offline  Sean_s
Messages: 576
Registered: June 2007
Location: Ohio
What it worked? If it did, awesome Very Happy.

New? Or looking for information? Look here before posting.
Help the community by adding this to your sig!

Assistant for Conquest
By the way, call me Searyan
Re: Scripting Shopkeepers [message #24165 is a reply to message #24163] Wed, 15 August 2007 23:48 Go to previous messageGo to next message
HodgePodge is currently offline  HodgePodge
Messages: 440
Registered: April 2007
Location: Making Bagel Bites
Very Happy Glad it got working

http://i186.photobucket.com/albums/x50/HawjPawj/PONG.gif
Re: Scripting Shopkeepers [message #24172 is a reply to message #24053] Thu, 16 August 2007 00:00 Go to previous messageGo to next message
Keshire is currently offline  Keshire
Messages: 1266
Registered: July 2005

Administrator
Stand alone shopkeeper and relevant code posted to finished mods.

Have fun.

I'm tempted to add the CShopdef to my customizable Hero NPC. Very Happy



Apathy Cannot Inspire.
Ambivalence cannot lead.
Loved me. Feared me.
Changed me. Killed me.
Anything would be something.
But nothing is worst of all.

[Updated on: Thu, 16 August 2007 00:00]

Report message to a moderator

Re: Scripting Shopkeepers [message #24175 is a reply to message #24172] Thu, 16 August 2007 00:02 Go to previous message
HodgePodge is currently offline  HodgePodge
Messages: 440
Registered: April 2007
Location: Making Bagel Bites
Kind of an all in one package, eh? Laughing

http://i186.photobucket.com/albums/x50/HawjPawj/PONG.gif
Previous Topic: Fisticuffs Script
Next Topic: Clone level?
Goto Forum:
  


Current Time: Fri Apr 03 04:08:51 PDT 2020

Total time taken to generate the page: 0.01110 seconds