Quest Showcase

For all talk about quest development - creation, testing, and quest system.
Post Reply
User avatar
Jay_H
Posts: 4059
Joined: Tue Aug 25, 2015 1:54 am
Contact:

Re: Quest Showcase

Post by Jay_H »

JHKN007: The Order has been tasked with resolving a series of mysterious murders around a local shop. The PC must find someone sufficiently suspicious, then recruit the aid of a dispelling mage to unmask the foe.

This is my first quest to deal heavily in dialogue between multiple NPCs. More effort than I expected, but it flows smoothly. I always hated classic's tendency to make some NPCs non-interactive until you're supposed to talk to them, so I decided to give each person some dialogue for each step of the quest.

Known limitations: This should vary between two types of foe in equal proportion, but that mechanic has some minor problems. Not all NPCs will disappear on demand right now.

User avatar
Feralwarlord
Posts: 117
Joined: Sat Jul 29, 2017 10:08 am

Re: Quest Showcase

Post by Feralwarlord »

Jay_H wrote: FGDFU006: Escort a client to his home, which he believes is watched by assassins from the Dark Brotherhood. Just make sure you kill them quickly...
Screenshot (21)mod.png
Screenshot (21)mod.png (1.22 MiB) Viewed 3165 times
But my Character is female

User avatar
Interkarma
Posts: 7234
Joined: Sun Mar 22, 2015 1:51 am

Re: Quest Showcase

Post by Interkarma »

This one is interesting. Pronominal macros are expanded based on last NPC encountered in message token stream. When the player's name is used, this doesn't register as a hit on the token stream because it only considers Person resources.

I'd consider this a limitation on my side and have added this to my growing internal list of items for 0.4 stable. Will fix this when I can.

Jay, you shouldn't need to do anything more in the quest. Provided you use the %g macro family and don't hardcode "him"/"her", etc. in text. I'll find a way for this to consider player in token stream.

User avatar
Feralwarlord
Posts: 117
Joined: Sat Jul 29, 2017 10:08 am

Re: Quest Showcase

Post by Feralwarlord »

Interkarma wrote:This one is interesting. Pronominal macros are expanded based on last NPC encountered in message token stream. When the player's name is used, this doesn't register as a hit on the token stream because it only considers Person resources.

I'd consider this a limitation on my side and have added this to my growing internal list of items for 0.4 stable. Will fix this when I can.

Jay, you shouldn't need to do anything more in the quest. Provided you use the %g macro family and don't hardcode "him"/"her", etc. in text. I'll find a way for this to consider player in token stream.
I had a quick look at the quest file when I encountered this and jay has used %g2 here

User avatar
Hazelnut
Posts: 3014
Joined: Sat Aug 26, 2017 2:46 pm
Contact:

Re: Quest Showcase

Post by Hazelnut »

Interkarma wrote:This one is interesting. Pronominal macros are expanded based on last NPC encountered in message token stream. When the player's name is used, this doesn't register as a hit on the token stream because it only considers Person resources.

I'd consider this a limitation on my side and have added this to my growing internal list of items for 0.4 stable. Will fix this when I can.

Jay, you shouldn't need to do anything more in the quest. Provided you use the %g macro family and don't hardcode "him"/"her", etc. in text. I'll find a way for this to consider player in token stream.
You know, this could be very simply avoided if I created a new set of pronoun macros for the player. (i.e. pg, pg2, pg2self, pg3) Since the name & race in this quest are both player specific macros, doesn't seem too silly to extend that to pronouns.

Even if you don't like the idea, please bear it in mind if having player be the last person referenced proves tricky or annoying.
See my mod code for examples of how to change various aspects of DFU: https://github.com/ajrb/dfunity-mods

User avatar
Jay_H
Posts: 4059
Joined: Tue Aug 25, 2015 1:54 am
Contact:

Re: Quest Showcase

Post by Jay_H »

Hazelnut wrote:You know, this could be very simply avoided if I created a new set of pronoun macros for the player. (i.e. pg, pg2, pg2self, pg3) Since the name & race in this quest are both player specific macros, doesn't seem too silly to extend that to pronouns.

Even if you don't like the idea, please bear it in mind if having player be the last person referenced proves tricky or annoying.
I'd be happy to work with this solution if everyone else OK's it. (I'd also hope at some future point for a fix on the clunky %g3, which gives "his/hers" when "his/her" is much more useful, but that's something I can wait on for a long time).

Good work pointing this out Feralwarlord :)

User avatar
Interkarma
Posts: 7234
Joined: Sun Mar 22, 2015 1:51 am

Re: Quest Showcase

Post by Interkarma »

Hazelnut wrote:You know, this could be very simply avoided if I created a new set of pronoun macros for the player. (i.e. pg, pg2, pg2self, pg3) Since the name & race in this quest are both player specific macros, doesn't seem too silly to extend that to pronouns.

Even if you don't like the idea, please bear it in mind if having player be the last person referenced proves tricky or annoying.
I'd be happy for this to happen. To the best of my knowledge, classic doesn't have pronoun support for player in quest messages. I can easily work this into the current setup to include player, but can't hurt to have some additional pronoun macros specific to player.

User avatar
Jay_H
Posts: 4059
Joined: Tue Aug 25, 2015 1:54 am
Contact:

Re: Quest Showcase

Post by Jay_H »

JHKN008: A noble in the region may suffer an assassination attempt by orcs soon. The PC is asked to guard the palace and ensure its safety.

This was one heck of a challenge to program. Part of it was just ordinary mistakes I made on the way, but I had to think of some way to give a time duration based on the hour of the day, which Daggerfall's system doesn't have a straight parameter for. I also had to take into account the possibility of the player just abandoning the quest altogether. Finally, there's a small chance of no assassination attempt at all I wanted to include.

It's a mess, but it should work well.

User avatar
Jay_H
Posts: 4059
Joined: Tue Aug 25, 2015 1:54 am
Contact:

Re: Quest Showcase

Post by Jay_H »

JHMG002: Mages Guild quest. Get a scholar to come back to civilization with his/her research. Hopefully you'll be able to convince him/her that you're actually from the guild...

This is another quiz quest. I haven't done a lot of Mages Guild quests yet since some of my ideas depend on magic use, so it's good to at least get this in. This is meant to be a real challenge, and the failure text is supposed to lampshade that. Good luck getting through this! I've tried to ensure all the answers are right, but feel free to challenge me on any of them.

Note: the introductory question will always be answered "yes," as it points back to where you got this quest from, which will eventually be a Mages Guild.

User avatar
Hazelnut
Posts: 3014
Joined: Sat Aug 26, 2017 2:46 pm
Contact:

Re: Quest Showcase

Post by Hazelnut »

Jay_H wrote:
Hazelnut wrote:You know, this could be very simply avoided if I created a new set of pronoun macros for the player. (i.e. pg, pg2, pg2self, pg3) Since the name & race in this quest are both player specific macros, doesn't seem too silly to extend that to pronouns.

Even if you don't like the idea, please bear it in mind if having player be the last person referenced proves tricky or annoying.
I'd be happy to work with this solution if everyone else OK's it. (I'd also hope at some future point for a fix on the clunky %g3, which gives "his/hers" when "his/her" is much more useful, but that's something I can wait on for a long time).

Good work pointing this out Feralwarlord :)
Okay, done. %pg, %pg1, %pg2, %pg2self, %pg3 all availiable.
%pg1 = his/her (you're welcome :D )

You will need to wait for the PR to get merged into master.. so tomorrow probably. Then please test it out.

The existing %g1 is exactly the same as %g at the moment, since that's how it is in classic. It's only used once in quest NOB20Y05, so if that quest script was changed to use %g instead I could make %g1 map to his/her for person objects as well. Not comfortable doing this myself since I'm not sure about quest script lifecycle.
See my mod code for examples of how to change various aspects of DFU: https://github.com/ajrb/dfunity-mods

Post Reply