-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQuesting.lua
More file actions
57 lines (44 loc) · 1.19 KB
/
Copy pathQuesting.lua
File metadata and controls
57 lines (44 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
-- Copyright © 2017 DubsCheckum <m3rcury@tuta.io>
-- This work is free. You can redistribute it and/or modify it under the
-- terms of the Do What The Fuck You Want To Public License, Version 2,
-- as published by Sam Hocevar. See the COPYING file for more details.
name = "DailyQuesting"
author = "DubsCheckum, framework by g0ld"
description = [[Every Daily Quest.]]
dofile "config.lua"
--dofile "Quests/KantoTargets.lua"
local QuestManager
local questManager = nil
function onStart()
math.randomseed(os.time())
QuestManager = require "Quests/QuestManager"
questManager = QuestManager:new()
end
function onPause()
questManager:pause()
end
function onResume()
end
function onStop()
end
function onPathAction()
questManager:path()
if questManager.isOver then
return fatal("No more quest to do. Script terminated.")
end
end
function onBattleAction()
questManager:battle()
end
function onDialogMessage(message)
questManager:dialog(message)
end
function onBattleMessage(message)
questManager:battleMessage(message)
end
function onSystemMessage(message)
questManager:systemMessage(message)
end
function onLearningMove(moveName, pokemonIndex)
questManager:learningMove(moveName, pokemonIndex)
end