prompt action problem

For all talk about quest development - creation, testing, and quest system.
Post Reply
User avatar
John Doom
Posts: 89
Joined: Wed Dec 01, 2021 5:59 pm
Location: Italy
Contact:

prompt action problem

Post by John Doom »

I'm writing a "quest" to let the player acquire activities. When asked if I want to acquire the activity, if I answer no, I can't get the owner to ask me the question again. I've checked the quest debug screen, and it seems the _question_ task is properly enabled when I click on the owner again, but the prompt action isn't executed. Help? :?:

Code: Select all

Quest: JDAC
DisplayName: Acquisition


QRC:
RumorsDuringQuest:  [1005]
<ce>_owner_ is broke at _place_ in __place_.

RumorsPostfailure:  [1006]
<ce>rumor failure

RumorsPostsuccess:  [1007]
<ce>rumor success

QuestorPostsuccess:  [1008]
<ce>questor success

QuestorPostfailure:  [1009]
<ce>questor failure

QuestLogEntry:  [1010]
%qdt:
 log

Message: 1020
<ce>I'm broke. Buy my activity for _price_.

Message: 1021
<ce>I see...

Message: 1022
<ce>Not enough money. Please come back with enough money.

Message: 1023
<ce>Thanks boss.


QBN:

Person _owner_ faction The_Merchants
Place _place_ local generalstore
Item _price_ gold

--startup:
    place npc _owner_ at _place_

_question_ task:
    clicked npc _owner_
    prompt 1020 yes _accept_ no _refuse_

_accept_ task:
    at least _price_ gold otherwise do _poor_
    say 1023
    end quest

_poor_ task:
    say 1022

_refuse_ task:
    say 1021
    clear _question_ _refuse_

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

Re: prompt action problem

Post by Jay_H »

The difficulty you have is that DFU is hard-coded to not produce the same message twice in a quest. If you run message 1020 during the quest, 1020 cannot appear again during the same quest. You'd have to create a new instance of the quest, or find an alternate way to make the offer if the quest continues.

(I'll move this over to the quest discussion subforum.)

User avatar
John Doom
Posts: 89
Joined: Wed Dec 01, 2021 5:59 pm
Location: Italy
Contact:

Re: prompt action problem

Post by John Doom »

Got it :)

Post Reply