Page 1 of 1

prompt action problem

Posted: Sat Dec 18, 2021 7:51 pm
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_

Re: prompt action problem

Posted: Sun Dec 19, 2021 1:18 am
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.)

Re: prompt action problem

Posted: Sun Dec 19, 2021 2:50 am
by John Doom
Got it :)