Multiple rewards in a quest

For all talk about quest development - creation, testing, and quest system.
Post Reply
ghostputty
Posts: 5
Joined: Sat Mar 23, 2024 2:40 pm

Multiple rewards in a quest

Post by ghostputty »

I'm trying to reward a couple of different map types but I'm not sure what is happening. Quests will often have the line

Code: Select all

pick one of _map_ _nomap_
and then award a dungeon map. Here is the section which obtains the map. My question is how is this triggered? The _S.08_ task isn't defined anywhere in this file. Is it defined by default? Is there an example quest while diverges by separate rewards?

Code: Select all

variable _map_
variable _nomap_
_S.08_ task:
	when _map_ and _pcgetsgold_ 
	reveal _newdung_ readmap
    say 1013 

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

Re: Multiple rewards in a quest

Post by Jay_H »

I have moved this topic to Quest Development.

I can't find the quest you're referring to, but there are several similar examples in the game. M0B00Y00 has this:

Code: Select all


--	Quest start-up:
	pick one of _map_ _nomap_ _nomap_ _nomap_ 
	
_pcgetsgold_ task:
	when _qgclicked_ and _mondead_ 
	give pc _reward_ 
	end quest 

variable _map_
variable _nomap_
_S.11_ task:
	when _map_ and _pcgetsgold_ 
	reveal _newdung_ readmap
    say 1080 
The task S.11 will activate when _map_ and _pcgetsgold_ are activated. In the case of _map_, the game makes a selection at the start of the quest between one _map_ and three _nomap_ events (a 25% chance of selecting _map_). If that's true, and if the player reaches the _pcgetsgold_ task, the two will combine to activate _S.11_.

Post Reply