eardrums
Member
- Joined
- May 27, 2010
- Messages
- 94
- Solutions
- 1
- Reaction score
- 10
Hello,
I'm trying to understand how quest logs work and connect my first quest to a quest log.
The quest itself shows in the quest log but the missions dont show and I dont know why. here is the script
I'm trying to understand how quest logs work and connect my first quest to a quest log.
The quest itself shows in the quest log but the missions dont show and I dont know why. here is the script
Lua:
Game.createQuest("The Mystery Plague", {
storageId = 30001,
storageValue = 1,
missions = {
{
name = "Back up Generator",
storageId = 30001,
startValue = 1,
endValue = 2,
ignoreEndValue = false,
description = function(player)
return string.format("Example description %d by %s.", player.storage[30001], player:getName())
end
},
{
name = "Example Mission 2",
storageId = 30001,
startValue = 2,
endValue = 3,
ignoreEndValue = false,
description = "Mission 2"
}
}
}):register()