Scripting Shopkeepers [message #24053] |
Wed, 15 August 2007 05:21 |
|
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 #24172 is a reply to message #24053] |
Thu, 16 August 2007 00:00 |
|
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.
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
|
|
|
|