• Tutorials

  • Home
  • GPDL $SET_QUEST

    DungeonCraft Help Home

    Format:

           result = $SET_QUEST(questName, value); 

    Value is either an absolute value without any plus or minus sign or it is a increment to be applied to the current value. Examples:

        result = $SET_QUEST("red", "+0");  // Get current stage.
        result = $SET_QUEST("blue", 7);  // Set quest to stage 7.
        result = $SET_QUEST("green", -1); // Subtract one from quest.
    

    Characters other than '+', '-', and decimal digits are ignored. If more than one plus or minus sign appears in value then the last one is the one that takes effect. For example:

        result = $SET_QUEST("red", "h+7p-3");

    would result in subtracting 73 from the quest stage.

    The result is always the new value of the quest variable.