I've done a bit of what he said, here is the dialogue for MAP53, I want to make a townlike setting with NPCs that talk and a merchant.
Spoiler
namespace = "zdoom";
include = "script00";
conversation
{
//A Civilian of Stannis speaks to you.
actor = "StannisCivilian";
page
{
name = "Citizen";
dialog = "Hello there.";
}
}
conversation
{
//Zofa the Shopkeeper
id = 2;
actor = "Zofa";
page
{
name = "Zofa the Shopkeeper";
dialog = "Welcome to Zofa's Shop, whatcha wanna buy?";
choice
{
text = "Ammo Box";
yesmessage = "Here's a replenisment of ammo!";
giveitem = "ClipBox";
closedialog = true;
}
choice
{
text = "Box of Shells";
yesmessage = "Here's the wide ranged box!";
giveitem = "ShellBox";
closedialog = true;
}
choice
{
text = "Box of Rockets";
yesmessage = "Thanks, be sure to blow up Cyberdemons!";
giveitem = "RocketBox";
closedialog = true;
}
choice
{
text = "Cell Charge Pack";
yesmessage = "My my, a wise choice! Burn these baddies up!";
giveitem = "CellPack";
closedialog = true;
}
choice
{
text = "Grenades";
yesmessage = "Be careful with these, you might hurt youself.";
giveitem = "FragGrenadeAmmo";
closedialog = true;
1
The problem is, when I test this map on GZDOOM Builder (UDMF format), I can't interact with them. Could somebody help me with that, I would appreciate that. Thank you!
Question
JohnCook1994
Hello there, I have a problem with interactable NPCs, I looked up this link https://forum.zdoom.org/viewtopic.php?f=39&t=52710/
I've done a bit of what he said, here is the dialogue for MAP53, I want to make a townlike setting with NPCs that talk and a merchant.
namespace = "zdoom";
include = "script00";
conversation
{
//A Civilian of Stannis speaks to you.
actor = "StannisCivilian";
page
{
name = "Citizen";
dialog = "Hello there.";
}
}
conversation
{
//Zofa the Shopkeeper
id = 2;
actor = "Zofa";
page
{
name = "Zofa the Shopkeeper";
dialog = "Welcome to Zofa's Shop, whatcha wanna buy?";
choice
{
text = "Ammo Box";
yesmessage = "Here's a replenisment of ammo!";
giveitem = "ClipBox";
closedialog = true;
}
choice
{
text = "Box of Shells";
yesmessage = "Here's the wide ranged box!";
giveitem = "ShellBox";
closedialog = true;
}
choice
{
text = "Box of Rockets";
yesmessage = "Thanks, be sure to blow up Cyberdemons!";
giveitem = "RocketBox";
closedialog = true;
}
choice
{
text = "Cell Charge Pack";
yesmessage = "My my, a wise choice! Burn these baddies up!";
giveitem = "CellPack";
closedialog = true;
}
choice
{
text = "Grenades";
yesmessage = "Be careful with these, you might hurt youself.";
giveitem = "FragGrenadeAmmo";
closedialog = true;
The problem is, when I test this map on GZDOOM Builder (UDMF format), I can't interact with them. Could somebody help me with that, I would appreciate that. Thank you!
Share this post
Link to post
8 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.