[ZSDF]Random string support for YesMessage & NoMessage

Remember, just because you request it, that doesn't mean you'll get it.

Moderator: GZDoom Developers

[ZSDF]Random string support for YesMessage & NoMessage

Postby amv2k9 » Tue Feb 18, 2014 8:41 pm

Pretty much what it says. USDF can already print a string chosen at random from a set list in the LANGUAGE lump for use by an NPC in their dialog, so it'd be helpful if YesMessage & NoMessage could do this too.
Last edited by amv2k9 on Fri Nov 18, 2016 3:32 pm, edited 1 time in total.
User avatar
amv2k9
That Strife Guy
 
Joined: 10 Jan 2010
Location: Southern California

Re: [USDF]Random string support for YesMessage & NoMessage

Postby TheMightyHeracross » Tue Feb 18, 2014 8:54 pm

amv2k9 wrote:USDF can already print a string chosen at random from a set list in the LANGUAGE lump for use by an NPC in their dialog

It can? :o
User avatar
TheMightyHeracross
...and remember: his silence is golden.
 
Joined: 18 Aug 2013
Location: Philadelphia, PA
Discord: TheMightyHeracross#1716
Operating System: Debian-like Linux (Debian, Ubuntu, Mint, etc) 64-bit

Re: [USDF]Random string support for YesMessage & NoMessage

Postby amv2k9 » Tue Feb 18, 2014 8:58 pm

TheMightyHeracross wrote:
amv2k9 wrote:USDF can already print a string chosen at random from a set list in the LANGUAGE lump for use by an NPC in their dialog

It can? :o
Yeah. You can see it in action in vanilla Strife. Just talk to any guard, peasant or beggar more than once. The strings are stored in LANGUAGE, under TXT_RANDOM_PEASANT_01-10, TXT_RANDOM_AGUARD_01-05 and so forth.
User avatar
amv2k9
That Strife Guy
 
Joined: 10 Jan 2010
Location: Southern California

Re: [USDF]Random string support for YesMessage & NoMessage

Postby Xaser » Sat Feb 22, 2014 12:32 pm

What's interesting is that those random strings are "dynamic" in the sense that you can use the same naming convention for totally new strings and ZDoom will detect them and have them use randomness too. Pretty neat.
User avatar
Xaser
anarchivist
 
 
 
Joined: 20 Jul 2003

Re: [ZSDF]Random string support for YesMessage & NoMessage

Postby amv2k9 » Fri Nov 18, 2016 3:33 pm

Updated this to reflect the request being for ZSDF instead.
User avatar
amv2k9
That Strife Guy
 
Joined: 10 Jan 2010
Location: Southern California

Re: [ZSDF]Random string support for YesMessage & NoMessage

Postby Blzut3 » Fri Nov 18, 2016 9:18 pm

This was already part of the USDF 2.2 draft which I kind of forgot about myself and was basically approved by lack of comment.
Blzut3
Pronounced: B-l-zut
 
 
 
Joined: 24 Nov 2004
Github ID: Blzut3
Operating System: Debian-like Linux (Debian, Ubuntu, Mint, etc) 64-bit
Graphics Processor: ATI/AMD with Vulkan Support

Re: [ZSDF]Random string support for YesMessage & NoMessage

Postby Nash » Sat Nov 19, 2016 12:10 am

My suggestion is to add a byechoice block which contains all the options of the current choice block except it can't have a cost (thus can't display one) and it would not have closedialog (always true). This would still allow mod authors to create "can't back out" situations by having the dialog switch the current page and/or execute a line special. Pressing escape should be equivalent to selecting this option. Hiding the option could be implied by the text being empty.


This was a very good proposal... I wonder why it was never implemented. :O
User avatar
Nash
Twitter/Facebook/Youtube: nashmuhandes
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Twitch ID: nashmuhandes
Github ID: nashmuhandes

Re: [ZSDF]Random string support for YesMessage & NoMessage

Postby Blzut3 » Sun Nov 20, 2016 11:54 pm

Like I said, I kind of forgot I did this (I don't even remember if it was questions during SVE development or something else that prompted it) and the recent interest in the Strife dialogs reminded me that I never implemented these things. I'll put that back on my short list unless someone else has an interest in taking a stab at it.
Blzut3
Pronounced: B-l-zut
 
 
 
Joined: 24 Nov 2004
Github ID: Blzut3
Operating System: Debian-like Linux (Debian, Ubuntu, Mint, etc) 64-bit
Graphics Processor: ATI/AMD with Vulkan Support


Return to Feature Suggestions

Who is online

Users browsing this forum: No registered users and 0 guests