Best place for "Start" and "End" Quest "Actions"?

Announcements, support questions, and discussion for Quest Machine.
Post Reply
mroshaw
Posts: 96
Joined: Wed Jan 19, 2022 4:10 am

Best place for "Start" and "End" Quest "Actions"?

Post by mroshaw »

I'm so sorry, Tony, I seem to be on a bit of a roll. I would have added to an existing ticket, but thought it would be good as a separate one, just in case someone has a similar question in the future.

Either way, my apologies for bombarding you this week!

I had a quick question about how best to "do something at the start of a quest" and "do something at the end of a quest", mainly around the use of Actions within the Quest and Quest Nodes?

It's easier to visualise things like HUD and Journal Text, as there's a flow you can move through to understand how they "build up" over the course of parsing the Quest at a point in time. For actions, I find it less clear in my head!

If I want to execute a single, one time action at the beginning of a Quest, where's the best place to do so? Quest > Start Node > Active? Or Quest > State > Active?

Same question, if I want to execute a single, one time action once a Quest has been completed, where's the best place? Quest > Success Node > True? Quest State > Successfull?

I hope this ramble makes sense to you and you can help me out. Thank you again!
User avatar
Tony Li
Posts: 22102
Joined: Thu Jul 18, 2013 1:27 pm

Re: Best place for "Start" and "End" Quest "Actions"?

Post by Tony Li »

mroshaw wrote: Thu Apr 28, 2022 11:24 amIf I want to execute a single, one time action at the beginning of a Quest, where's the best place to do so? Quest > Start Node > Active? Or Quest > State > Active?

Same question, if I want to execute a single, one time action once a Quest has been completed, where's the best place? Quest > Success Node > True? Quest State > Successfull?
In both cases, the answer is: either. They effectively run at the same time. When a quest goes active, it runs the Quest > State > Active actions, and then it immediately sets the Start node active and runs the Quest > Start Node > Active actions. So you can add the actions in either place, wherever it feels most logical to you.
mroshaw
Posts: 96
Joined: Wed Jan 19, 2022 4:10 am

Re: Best place for "Start" and "End" Quest "Actions"?

Post by mroshaw »

Perfect, thank you again. I've now got everything working absolutely brilliantly, with various minimap markers being enabled and disabled as I progress through quests, and as the available and active quests change across my Quest Givers. Awesome!
User avatar
Tony Li
Posts: 22102
Joined: Thu Jul 18, 2013 1:27 pm

Re: Best place for "Start" and "End" Quest "Actions"?

Post by Tony Li »

Great! Happy questing!
Post Reply