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

Home » Fable TLC » Mods » Scripts » Scripted Shopkeeper
Scripted Shopkeeper [message #24168] Wed, 15 August 2007 23:55 Go to previous message
Keshire is currently offline  Keshire
Messages: 1266
Registered: July 2005

Administrator
Along the lines of my experience pedestool, and Customizable NPC. Here is a stand alone shopkeeper where you can define his stock through scripts.

Random Empty traders fixed by Sean_s.

http://fable.pe-ell.net/gallery/albums/album02/8_16_2007_1_47_12_AM.jpg

Relevant tng code:
DefinitionType "CREATURE_TRADER_STOCKED_SCRIPTED"; or "SCRIPTED_SHOP"

ThingGamePersistent FALSE;
ThingLevelPersistent FALSE;

StartCTCShop;
StockItemDefsKeys[0] "OBJECT_KESHIRE_SICKLE";
StockItemDefsQuantity[0] 1.0;
StockItemDefsMaxStock[0] 1.0;	
EndCTCShop;


by leaving the Persistent to FALSE, the shopkeeper will not be stored within the save game. Meaning you can continually edit his stock even after saving. (This probably works with chests too. Not sure.)

Also, obviously the [#] works the same as all ctc's that use that syntax.
StockItemDefsKeys[0] "OBJECT_KESHIRE_SICKLE";
StockItemDefsQuantity[0] 1.0;
StockItemDefsMaxStock[0] 1.0;	
StockItemDefsKeys[1] "OBJECT_";
StockItemDefsQuantity[1] 1.0;
StockItemDefsMaxStock[1] 1.0;	
StockItemDefsKeys[2] "OBJECT_";
StockItemDefsQuantity[2] 1.0;
StockItemDefsMaxStock[2] 1.0;	
StockItemDefsKeys[3] "OBJECT_";
StockItemDefsQuantity[3] 1.0;
StockItemDefsMaxStock[3] 1.0;	



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 01:02]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: The Library Arcanum - Chests
Next Topic: Balverine cave
Goto Forum:
  


Current Time: Wed Dec 11 18:01:46 PST 2024

Total time taken to generate the page: 0.07367 seconds