A Well-stocked Merchant
Moderator: Event DM
- Nighthawk4
- Assist DM
- Posts: 25898
- Joined: Fri Feb 07, 2003 8:32 pm
- Timezone: GMT
- DM Avatar: DruEl
- Location: The Home of the Bard of Avon
- Contact:
A Well-stocked Merchant
For a test module I am trying to build, I want to be able to try out a variety of items. At the moment, I usually go into the Toolset, load the module, drop a few items around on the floor, build the module and then run it. If I find I missed an item or want to try other items, then it is back to the start. Of course, I could add the items to the Inventory of a merchant, instead of leaving them on the floor.
Is there any way to script access to the whole of the palette, without trying to run it with the DM Client? Then, the Merchant can give me access to whatever I want to test.
Can that be done please?
Is there any way to script access to the whole of the palette, without trying to run it with the DM Client? Then, the Merchant can give me access to whatever I want to test.
Can that be done please?
Life is never as bad as you think it is, although that doesn't help at the time.
Orleron wrote:I think it's a fun idea if you can idiot-proof it. Problem is God always builds a better idiot.
- Aloro
- Team Member; Retired with Honors
- Posts: 12805
- Joined: Sat Dec 28, 2002 5:11 am
- Location: Rainbow's End
- Contact:
Sadly, no.
Items only appear in modules if they're individually placed there. You can place an instance of an item on the ground, or in a container, or give it to a merchant to sell, but you still have to place the item in the module yourself at some point.
For testing, I usually just drop the items on the ground, personally.
- Aloro
Items only appear in modules if they're individually placed there. You can place an instance of an item on the ground, or in a container, or give it to a merchant to sell, but you still have to place the item in the module yourself at some point.
For testing, I usually just drop the items on the ground, personally.
- Aloro
Aleksandr Solzhenitsyn wrote:The meaning of earthly existence lies, not as we have grown used to thinking, in prosperity, but in the development of the soul.
- JollyOrc
- Elder Sage
- Posts: 3984
- Joined: Fri Jan 17, 2003 11:41 am
- Timezone: Europe, CE(S)T
- Location: Germany
- Contact:
I have a script that puts items in a container.
I'll have to add the items by tag/resref into the script, so it's not the super easy solution. But it's helpful if I need to have lots of copies of the same item, or items of a similar type that are numbered.
One way would be to start a dedicated server, and log in with a DM client and the player client alternately, depending on what you need.
I think Sindol knows how to add items with the debug console too, although I have no idea how he does it exactly (guess you'll need to know the tag/resref too for this)
I'll have to add the items by tag/resref into the script, so it's not the super easy solution. But it's helpful if I need to have lots of copies of the same item, or items of a similar type that are numbered.
One way would be to start a dedicated server, and log in with a DM client and the player client alternately, depending on what you need.
I think Sindol knows how to add items with the debug console too, although I have no idea how he does it exactly (guess you'll need to know the tag/resref too for this)
- Aloro
- Team Member; Retired with Honors
- Posts: 12805
- Joined: Sat Dec 28, 2002 5:11 am
- Location: Rainbow's End
- Contact:
Yeah, you can spawn in items from the console, but it's a pain in the ass (you need the resref for each item). I've never used that approach, myself, since it's easier to drop them in the module from the toolset.JollyOrc wrote:I think Sindol knows how to add items with the debug console too, although I have no idea how he does it exactly (guess you'll need to know the tag/resref too for this)
- Aloro
Aleksandr Solzhenitsyn wrote:The meaning of earthly existence lies, not as we have grown used to thinking, in prosperity, but in the development of the soul.
-
- Team Member; Retired with Honors
- Posts: 6261
- Joined: Fri May 14, 2004 4:59 pm
- Location: VA (GMT -4)
- Contact:
1.) If it's a small module, you could use a module reloader. Basically, create an item that loads the same module you're in. Then with the toolset and the game open, it takes about 30 seconds to drop an item on the ground, save the module and reload it in-game. Voila! Your item appears!
2.) You could set up a listening NPC and script it so when you say, "CREATE resref" the item will pop into your inventory.
2.) You could set up a listening NPC and script it so when you say, "CREATE resref" the item will pop into your inventory.
- Nighthawk4
- Assist DM
- Posts: 25898
- Joined: Fri Feb 07, 2003 8:32 pm
- Timezone: GMT
- DM Avatar: DruEl
- Location: The Home of the Bard of Avon
- Contact:
-
- Team Member; Retired with Honors
- Posts: 6261
- Joined: Fri May 14, 2004 4:59 pm
- Location: VA (GMT -4)
- Contact:
Oops, my bad. I meant you could script an NPC to interpret what you say, like the way Abyss404's emote thingamaggier works.Nighthawk4 wrote:It says 'Function CREATE not found'![]()
Is that the correct command please?
I've never really messed with the listen code, so I can't give anything to use off the top of my head. If you want, I can try and cobble something together for you tonight.
Doug
- Sindol
- Team Member; Retired with Honors
- Posts: 6479
- Joined: Mon Jan 06, 2003 4:23 pm
- Location: Nijmegen - Netherlands (GMT+1)
- Contact:
True. If you switch the debugmode on in the mod you can spawn in items with a DM command using the resref of the item. This means that if I just made them myself I can usually spawn them just fine. In all other cases I'll have to use the toolset as well.Aloro wrote:Yeah, you can spawn in items from the console, but it's a pain in the ass (you need the resref for each item). I've never used that approach, myself, since it's easier to drop them in the module from the toolset.JollyOrc wrote:I think Sindol knows how to add items with the debug console too, although I have no idea how he does it exactly (guess you'll need to know the tag/resref too for this)
- Aloro
Still a buggerance that you can open a chooser in debugmode, but not a creator.
So much fun,
yet so little time to enjoy it.
- Sindol
yet so little time to enjoy it.
- Sindol