How to make random dialogue in ZSDF?

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
EndHack
Posts: 57
Joined: Wed Feb 14, 2018 8:53 pm

How to make random dialogue in ZSDF?

Post by EndHack »

How do I randomize what actors say in ZSDF?
I haven't been able to find anything on zdoom wiki, but maybe I'm just overlooking something.

Code: Select all

namespace = "ZDoom";

conversation
{
	actor = "Rebel2";
	page
	{
		name = "Rebel";
		panel = "M_REBEL";
		voice = "REBRM6";	
		dialog = "When we're in charge, the Order's going to eat dirt!";
	}
}
Blue Shadow
Posts: 5039
Joined: Sun Nov 14, 2010 12:59 am

Re: How to make random dialogue in ZSDF?

Post by Blue Shadow »

Take a look at this.
User avatar
EndHack
Posts: 57
Joined: Wed Feb 14, 2018 8:53 pm

Re: How to make random dialogue in ZSDF?

Post by EndHack »

that was helpful in showing how to do random text, but I wanted it to be connected to the voice line, which seems imposible at the moment judging from what I've just learned.
Post Reply

Return to “Scripting”