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

Home » Fable TLC » Discussion » Level Scripting » Spawning Items without chests/barrels/ect.
Spawning Items without chests/barrels/ect. [message #22654] Thu, 26 July 2007 11:24 Go to next message
morerunes is currently offline  morerunes
Messages: 2154
Registered: June 2007
Location: My desk

Administrator

How do I spawn a potion or food in on the ground, the closest I've managed was getting it there, and when you tried to pick it up it said something, then I tried another script and it was there, but you couldn't target it. You just walked through it. I swear I looked all over for an answer, even in the wiki.

here is the script i used

Quote:

NewThing Object;
Player 4;
UID 18446741487466297160;
DefinitionType "OBJECT_ROMULAN_ALE";
ScriptName NULL;
ScriptData "NULL";
ThingGamePersistent TRUE;
ThingLevelPersistent TRUE;
StartCTCPhysicsStandard;
PositionX 57.428710;
PositionY 48.285640;
PositionZ 28.000000;
RHSetForwardX 0.406747;
RHSetForwardY 0.913541;
RHSetForwardZ 0.000000;
RHSetUpX 0.000000;
RHSetUpY 0.000000;
RHSetUpZ 1.000000;
EndCTCPhysicsStandard;
StartCTCTargeted;
Targetable TRUE;
EndCTCTargeted;
StartCTCInventoryItem;
InventoryUID 0;
EndCTCInventoryItem;
StartCTCEditor;
EndCTCEditor;
StartCTCStockItem;
ForSale FALSE;
Stealable TRUE;
Price 1000;
EndCTCStockItem;
Health 1.0;
EndThing;



"All of the work, and none of the play, will surely provide for a speedy decay"

[Updated on: Thu, 26 July 2007 11:46]

Report message to a moderator

Re: Spawning Items without chests/barrels/ect. [message #22662 is a reply to message #22654] Thu, 26 July 2007 12:59 Go to previous messageGo to next message
Sean_s is currently offline  Sean_s
Messages: 576
Registered: June 2007
Location: Ohio
Heres the script for the pie in the Picnic Arena, try it, only with your new drink.

NewThing Object;
Player 4;
UID 18446741874686299934;
DefinitionType "OBJECT_PIE_APPLE_01";
ScriptName NULL;
ScriptData "NULL";
ThingGamePersistent TRUE;
ThingLevelPersistent TRUE;
StartCTCPhysicsStandard;
PositionX 35.690918;
PositionY 33.763916;
PositionZ 30.861185;
RHSetForwardX 0.0;
RHSetForwardY 0.999994;
RHSetForwardZ 0.0;
RHSetUpX 0.0;
RHSetUpY 0.0;
RHSetUpZ 0.999994;
EndCTCPhysicsStandard;
StartCTCTargeted;
Targetable TRUE;
EndCTCTargeted;
StartCTCInventoryItem;
InventoryUID 0;
EndCTCInventoryItem;
StartCTCEditor;
EndCTCEditor;
StartCTCStockItem;
ForSale FALSE;
Stealable TRUE;
Price 10;
EndCTCStockItem;
Health 1.0;
EndThing;


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: Spawning Items without chests/barrels/ect. [message #22667 is a reply to message #22662] Thu, 26 July 2007 13:32 Go to previous messageGo to next message
chaos is currently offline  chaos
Messages: 542
Registered: May 2006
ThingGamePersistent FALSE;
ThingLevelPersistent FALSE;


http://i143.photobucket.com/albums/r124/korgoth-of-barbaria/chaos-1.jpg
Re: Spawning Items without chests/barrels/ect. [message #22672 is a reply to message #22654] Thu, 26 July 2007 14:23 Go to previous messageGo to next message
morerunes is currently offline  morerunes
Messages: 2154
Registered: June 2007
Location: My desk

Administrator

it didn't work, does it have anything to do with the fact that I changed the mesh of the beer, to look different, or the fact that you never find a beer just sitting around?

"All of the work, and none of the play, will surely provide for a speedy decay"
Re: Spawning Items without chests/barrels/ect. [message #22673 is a reply to message #22654] Thu, 26 July 2007 14:25 Go to previous messageGo to next message
Sean_s is currently offline  Sean_s
Messages: 576
Registered: June 2007
Location: Ohio
Might be, try a pie for test purposes, to determine if it is the item or not.

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: Spawning Items without chests/barrels/ect. [message #22674 is a reply to message #22654] Thu, 26 July 2007 14:42 Go to previous messageGo to next message
morerunes is currently offline  morerunes
Messages: 2154
Registered: June 2007
Location: My desk

Administrator

it works with the pie, what do i do now? change the mesh?

"All of the work, and none of the play, will surely provide for a speedy decay"
Re: Spawning Items without chests/barrels/ect. [message #22675 is a reply to message #22654] Thu, 26 July 2007 14:49 Go to previous messageGo to next message
Sean_s is currently offline  Sean_s
Messages: 576
Registered: June 2007
Location: Ohio
I don't think its the mesh, I think its missing a CDef and/or a Component, that allows it to just lye there. If you can't find it, I'll examine the pie myself sometime. Please try to find it yourself if you can, shouldn't be hard.

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: Spawning Items without chests/barrels/ect. [message #22676 is a reply to message #22654] Thu, 26 July 2007 15:12 Go to previous messageGo to next message
morerunes is currently offline  morerunes
Messages: 2154
Registered: June 2007
Location: My desk

Administrator

do you think it could be CTargetDef?

"All of the work, and none of the play, will surely provide for a speedy decay"
Re: Spawning Items without chests/barrels/ect. [message #22677 is a reply to message #22654] Thu, 26 July 2007 15:16 Go to previous messageGo to next message
Sean_s is currently offline  Sean_s
Messages: 576
Registered: June 2007
Location: Ohio
Hmmm, I think that just lets it be targetable, so maybe, couldn't hurt (much) to try.

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: Spawning Items without chests/barrels/ect. [message #22678 is a reply to message #22654] Thu, 26 July 2007 15:22 Go to previous messageGo to next message
morerunes is currently offline  morerunes
Messages: 2154
Registered: June 2007
Location: My desk

Administrator

i can't target it either, i was mostly concerned about how a can walk over it without getting it for now, but i'm going to try the targetDef

"All of the work, and none of the play, will surely provide for a speedy decay"
Re: Spawning Items without chests/barrels/ect. [message #22695 is a reply to message #22654] Thu, 26 July 2007 16:33 Go to previous message
morerunes is currently offline  morerunes
Messages: 2154
Registered: June 2007
Location: My desk

Administrator

I still cant figure it out, as far as I know, there is only one thing left I can do, but I want to avoid doing... I could remake it, starting from the pie, and slowly turning it into my potion, and when I can no longer pick it up, I'll know, but that is kinda tedious

edit: WOOOOOOOOO!!!!!!! IT WORKED!!

for all of you wishing to do the same thing, look here(it's really frustrating when you cant find instructions).

(creating new object)
1. Go into FE, find an object similar to the one you want to make.
2. Double-click it, click export, save anywhere.
3. Right click on game.bin in the upper-left-hand corner of the screen, and click create new entry. type in OBJECT_(your object), in the entry type box type OBJECT, click "select data file" and choose the file you just saved.
4. find your new entry(near the top somewhere), double-click.
5. Anything you wish to change(CBonusItemDef,ect.), follow same procedure, exept name it something else, and under "entry type" put the type of entry.(CBonusItemDef,ect.)

(placing object)
1. put this this code in the area you want.

Quote:


NewThing Object;
Player 4;
UID 18446741874686299934;
DefinitionType "(object name)";
ScriptName NULL;
ScriptData "NULL";
ThingGamePersistent FALSE;
ThingLevelPersistent FALSE;
StartCTCPhysicsStandard;
PositionX *;
PositionY *;
PositionZ *;
RHSetForwardX *;
RHSetForwardY *;
RHSetForwardZ *;
RHSetUpX *;
RHSetUpY *;
RHSetUpZ *;
EndCTCPhysicsStandard;
StartCTCTargeted;
Targetable TRUE;
EndCTCTargeted;
StartCTCInventoryItem;
InventoryUID 0;
EndCTCInventoryItem;
StartCTCEditor;
EndCTCEditor;
StartCTCStockItem;
ForSale FALSE;
Stealable TRUE;
Price (the price of your item);
EndCTCStockItem;
Health 1.0;
EndThing;

* = move another object in albion explorer to where you want this item, check "set to ground" or whatever, and copy the coordinates, paste them here.



2. Your finished! Pat yourself on the back, look at the back of your head! Laughing

Special Thanks to Searyan! Very Happy


"All of the work, and none of the play, will surely provide for a speedy decay"

[Updated on: Thu, 26 July 2007 17:46]

Report message to a moderator

Previous Topic: It worked once.
Next Topic: Triggure on death?
Goto Forum:
  


Current Time: Sun Mar 29 11:02:06 PDT 2020

Total time taken to generate the page: 0.01079 seconds