rubenwardy wrote:See quests in rpgtes
It's WTFPL
TheReaperKing wrote:Looking at your quests mod, is there any way to give rewards?
Edit - I see the goal.reward in the code, would you just add a line in this syntax?
local quest = quests.new(name, "Preparing a small feast")
quests.add_dig_goal(quest, "Harvest wheat", "farming:wheat_8", 5)
quests.add_dig_goal(quest, "Harvest apples", "default:apple", 3)
quests.add_quest(name, quest)
goal.reward("food:pie")
goal.ending("For your efforts you have been awarded a pie! Thank you!")
local quest = quests.new(name, "Preparing a small feast")
local goal_1 = quests.add_dig_goal(quest, "Harvest wheat", "farming:wheat_8", 5)
local goal_2 = quests.add_dig_goal(quest, "Harvest apples", "default:apple", 3)
goal_2.requires = goal_1 -- the player needs to complete goal 1 before goal 2
goal_2.reward = "food:pie" -- set reward
goal_2.ending = "For your efforts you have been awarded a pie! Thank you!" -- set ending
quests.add_quest(name, quest)
Users browsing this forum: No registered users and 6 guests