Page 1 of 1

Multiple rewards in a quest

Posted: Mon Mar 25, 2024 2:43 pm
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 

Re: Multiple rewards in a quest

Posted: Mon Mar 25, 2024 3:06 pm
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_.