Strife Dialogue with custom monsters

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
User avatar
Berserker
Posts: 39
Joined: Sat Dec 15, 2018 8:11 pm
Graphics Processor: nVidia with Vulkan support
Location: In my head, creating non-stop

Strife Dialogue with custom monsters

Post by Berserker »

Hey there, I'm working on a dialogue script with ally monsters.
Problem is, it seems to not work on custom monsters...

I have setup a conversation with a marine from a package I downloaded on Realm667, and called his name as I usually do : actor = "MarineAllyMG";.
But when I come to press use on him, nothing happen. I also tried to give him a conversation ID and called him with the ID : ID = 1;
Still nothing.

I have tried with a basic actor and choose ScriptedMarine in the Marines section in Things, and it works when I call his name.
I don't understand exactly what I should do to make the system recognize my custom actor so I can engage conversation with him ...

Here a piece of the dialogue script :

Code: Select all

namespace = "ZDoom";

conversation
{
	//Armorer dialog
	actor = "MarineAllyMG";

	//Introduction page
	Page
	{
		name = "\cdAndy the armorer\n";
		Dialog = "\cnWelcome to the base \cdDoomSlayer \cn! What can I do for you ?";
		goodbye = "\caSee ya.";
		Choice
		{
			text = "\ckTell me about your shop.";
			NextPage = 2;
		}
		Choice
		{
			text = "\caI already know everything, thanks !";
			NextPage = 6;
		}

	}
User avatar
Berserker
Posts: 39
Joined: Sat Dec 15, 2018 8:11 pm
Graphics Processor: nVidia with Vulkan support
Location: In my head, creating non-stop

Re: Strife Dialogue with custom monsters

Post by Berserker »

Well finally found the solution, there are flags in the DECORATE lump that prevent dialogue to run, so I removed one by one to see wich one is the problem, and now the script runs well
Blue Shadow
Posts: 5043
Joined: Sun Nov 14, 2010 12:59 am

Re: Strife Dialogue with custom monsters

Post by Blue Shadow »

What was the flag or flags which caused the problem? (Just in case someone runs into the same problem and wants a solution).
Post Reply

Return to “Scripting”