Jay_H's quest writing tutorial

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

Re: Jay_H's quest writing tutorial

Post by Jay_H » Mon Dec 23, 2019 3:51 pm

Daggerfall divides strictly between intangible flats and tangible enemies. You can make the noble a flat first and turn him/her into an enemy when you click on the sprite, but there's no way to harm a flat.
Come join Lysandus' Tomb, a Daggerfall Unity fan Discord.
In-progress guide for Quest Pack 1 here.

james2k
Posts: 8
Joined: Wed Dec 04, 2019 8:16 pm

Re: Jay_H's quest writing tutorial

Post by james2k » Mon Dec 23, 2019 8:11 pm

Jay_H wrote:
Mon Dec 23, 2019 3:51 pm
Daggerfall divides strictly between intangible flats and tangible enemies. You can make the noble a flat first and turn him/her into an enemy when you click on the sprite, but there's no way to harm a flat.
So something like this?
Person _lord_ faction Lord_Khane
Foe _lordhostile_ is Knight

...

place npc _lord_ at _fort_

...

_lordclicked_ task:
clicked npc _lord_
hide npc _lord_
place foe _lordhostile_ at _fort_

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

Re: Jay_H's quest writing tutorial

Post by Jay_H » Mon Dec 23, 2019 8:16 pm

Precisely, that should do it perfectly. That's the same method classic quests like the Baltham Greyman one use to make an NPC "combat-ready."
Come join Lysandus' Tomb, a Daggerfall Unity fan Discord.
In-progress guide for Quest Pack 1 here.

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

Re: Jay_H's quest writing tutorial

Post by Hazelnut » Mon Dec 23, 2019 9:58 pm

You could just use a foe from the start, since there's a foe clicked action now, but the graphics are much more limited.
See my mod code for examples of how to change various aspects of DFU: https://github.com/ajrb/dfunity-mods

John Mathston
Posts: 2
Joined: Mon May 11, 2020 5:56 am

Re: Jay_H's quest writing tutorial

Post by John Mathston » Mon May 11, 2020 6:31 am

Hello. I am having trouble following the basic quest tutorial.

Basically I cant get the Orc to spawn when the quest starts, im probably missing something very basic.

Heres the code
Spoiler!
Quest: TESTING1
DisplayName: JayH Is Helping Me
-- Message panels
QRC:

QuestorOffer: [1000]
<ce> We want a _enemy_ dead.

RefuseQuest: [1001]
<ce> Stuff off.

AcceptQuest: [1002]
<ce> Good right behind you.

QuestFail: [1003]
<ce> Go back to fighting butterflys.

QuestComplete: [1004]
<ce> Good job heres your reward.

QBN:
Item _reward_ gold

Person _questgiver_ group Questor male

Clock _timer_ 00:20

Foe _enemy_ is Orc

Place _guild_ local fighters

-- Quest start-up:
start timer _timer_
Place foe _enemy_ at _guild_

_mondead_ task:
killed 1 _enemy_
give pc _reward_
end quest

_timer_ task:
end quest

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

Re: Jay_H's quest writing tutorial

Post by Jay_H » Mon May 11, 2020 7:06 am

Welcome to the forums, and the tutorial! :)

Looks like the problem is the "Place foe" command you used. It should be "place", lowercase. The capital P is not getting recognized by the quest engine.
Come join Lysandus' Tomb, a Daggerfall Unity fan Discord.
In-progress guide for Quest Pack 1 here.

User avatar
BadLuckBurt
Posts: 554
Joined: Sun Nov 05, 2017 8:30 pm

Re: Jay_H's quest writing tutorial

Post by BadLuckBurt » Mon May 11, 2020 7:27 am

Jay_H wrote:
Mon May 11, 2020 7:06 am
Welcome to the forums, and the tutorial! :)

Looks like the problem is the "Place foe" command you used. It should be "place", lowercase. The capital P is not getting recognized by the quest engine.
I had the same problem a while back and this explains why. However, the Place foe command is how you've written it in this post: viewtopic.php?f=25&t=622#p6410. Check under Defining quest actions.
Daggerfall Unity on UESP: https://en.uesp.net/w/index.php?title=T ... fall_Unity
Daggerfall Unity on Nexus Mods: https://www.nexusmods.com/daggerfallunity
My github repositories with mostly DFU related stuff: https://github.com/BadLuckBurt

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

Re: Jay_H's quest writing tutorial

Post by Jay_H » Mon May 11, 2020 7:32 am

Ooh, that's terrible. Thanks for the heads-up Burt, I changed it.
Come join Lysandus' Tomb, a Daggerfall Unity fan Discord.
In-progress guide for Quest Pack 1 here.

John Mathston
Posts: 2
Joined: Mon May 11, 2020 5:56 am

Re: Jay_H's quest writing tutorial

Post by John Mathston » Mon May 11, 2020 7:51 am

Lol thanks mate *Fistpumps*.

Im learning to make quests so I can make a tax system. I appreciate your help

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

Re: Jay_H's quest writing tutorial

Post by Jay_H » Mon May 11, 2020 8:01 am

You're welcome, we're here to help where we can :)
Come join Lysandus' Tomb, a Daggerfall Unity fan Discord.
In-progress guide for Quest Pack 1 here.

Post Reply