Re: Custom quest support
Posted: Mon Jun 29, 2020 8:50 am
No, you can only pre-define a number for that. You could set multiple ones using "pick one of" to make it a little more varied, but you can't choose a random number from X to Y.
Tools for Daggerfall
Code: Select all
QBN: Person _qgiver_ group Questor Clock _delayend_ 01.00:00 --Quest start-up: start timer _delayend_ log 1010 step 0 _prostitute5_ task: faction The_Prostitutes available repute with _qgiver_ exceeds 60 do _choice1_ _prostitute4_ task: faction The_Prostitutes available repute with _qgiver_ exceeds 45 do _choice2_ _prostitute3_ task: faction The_Prostitutes available repute with _qgiver_ exceeds 30 do _choice3_ _prostitute2_ task: faction The_Prostitutes available repute with _qgiver_ exceeds 15 do _choice4_ _prostitute1_ task: faction The_Prostitutes available repute with _qgiver_ exceeds 00 do _prostitution1_ _choice1_ task: pick one of _prostitution5_ _prostitution4_ _prostitution3_ _prostitution2_ _choice2_ task: pick one of _prostitution4_ _prostitution3_ _prostitution2_ _prostitution1_ _choice3_ task: pick one of _prostitution3_ _prostitution2_ _prostitution1_ _choice4_ task: pick one of _prostitution2_ _prostitution1_ _prostitution5_ task: start quest PROST005 clear _prostitute5_ clear _prostitute4_ clear _prostitute3_ clear _prostitute2_ _prostitution4_ task: start quest PROST004 clear _prostitute4_ clear _prostitute3_ clear _prostitute2_ clear _prostitute1_ _prostitution3_ task: start quest PROST003 clear _prostitute3_ clear _prostitute2_ clear _prostitute1_ _prostitution2_ task: start quest PROST002 clear _prostitute2_ clear _prostitute1_ _prostitution1_ task: start quest PROST001 clear _prostitute1_ _qgiverclicked_ task: clicked npc _qgiver_ _delayend_ task: when _qgiverclicked_ prompt 1011 yes _yes_ no _no_ _yes_ task: give pc nothing remove log step 0 log 1012 step 1 end quest _no_ task: say 1003 remove log step 0 log 1013 step 1 end quest
Changing it to the "when... is" format removed the problems in VS Code for me.Checking faction availability
when aFaction is available
This condition checks whether the specified faction is available for assignment as a questor in an upcoming quest that the present quest would like to schedule. nnn is either a faction number, or the proper name of a faction. See the Person command for the complete list of factions.
This condition is triggered by the player clicking the mouse on an NPC sprite associated with the specific faction in the game world.
The main quest monitors the availability of NPCs connected with the main story before attempting to schedule a new subplot. The player triggers this check by clicking on the NPC sprite that corresponds to the specified faction.
Some permanent NPCs play a role in several different subplots. To avoid inadvertently scheduling a new subplot which uses a permanent NPC in a starring role while the same NPC is already starring in an active quest, the monitor quest checks whether the desired NPC is free at the moment, to schedule their entrance in the upcoming subplot.