• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
  • Eevee Expo's webhost has been having technical issues since Nov. 20th and you might be unable to connect to our site. Staff are also facing issues connecting, so please send a DM to Cat on-site or through Discord directly for faster service!
Modern Quest System + UI

Resource Modern Quest System + UI 1.1.0

ThatWelshOne_

Champion
Member
It does. Thank you! How do I define rewards?
There are examples in 004_Quest_Data.rb that control what appears in the Reward box on the UI. Actually giving the player a reward of some kind is handled by you using pbReceiveItem or whatever.
Can you have repeatable quests?
Technically, yes. You can reactivate quests that have previously been completed. You'd just need to make sure all the quest objectives get reset which I imagine you'd do with self-switches.
 

Semolous

Novice
Member
Joined
Jun 5, 2022
Posts
31
There are examples in 004_Quest_Data.rb that control what appears in the Reward box on the UI. Actually giving the player a reward of some kind is handled by you using pbReceiveItem or whatever.

Technically, yes. You can reactivate quests that have previously been completed. You'd just need to make sure all the quest objectives get reset which I imagine you'd do with self-switches.
Is this right for making a quest with the red colour story related? I want to make sure it's right so I don't get any errors

activateQuest(:Quest1, colorQuest
("red"), true)
 

Semolous

Novice
Member
Joined
Jun 5, 2022
Posts
31

Attachments

  • Error.png
    Error.png
    460.3 KB · Views: 103

ThatWelshOne_

Champion
Member
I already knew what your error was going to be based on how you pasted the code in your message before.
The error message tells you what's wrong. You've split the script over multiple lines at a point in the code that the interpreter doesn't understand. Do you know about extendtext.exe?

Alternatively, you can paste the code like this:
Ruby:
Expand Collapse Copy
activateQuest(
    :Quest1,
    colorQuest("red"),
    true)
(I think)
 

Semolous

Novice
Member
Joined
Jun 5, 2022
Posts
31
I already knew what your error was going to be based on how you pasted the code in your message before.
The error message tells you what's wrong. You've split the script over multiple lines at a point in the code that the interpreter doesn't understand. Do you know about extendtext.exe?

Alternatively, you can paste the code like this:
Ruby:
Expand Collapse Copy
activateQuest(
    :Quest1,
    colorQuest("red"),
    true)
(I think)
Yup, that did it
 

Shadow56bomb

Cooltrainer
Member
Joined
Oct 15, 2022
Posts
220
When I open up the pause menu (even on a new save) I get this error
Exception `NoMethodError' at 279:UI_PauseMenu:324 - undefined method `hasAnyQuests?' for nil:NilClass
 

ThatWelshOne_

Champion
Member
V20.1 and no.
You put this in your UI_PauseMenu script?
Ruby:
Expand Collapse Copy
MenuHandlers.add(:pause_menu, :quests, {
  "name"      =>  _INTL("Quests"),
  "order"     => 50,
  "condition" => proc { next hasAnyQuests? },
  "effect"    => proc { |menu|
    pbPlayDecisionSE
    pbFadeOutIn {
      scene = QuestList_Scene.new
      screen = QuestList_Screen.new(scene)
      screen.pbStartScreen
      menu.pbRefresh
    }
    next false
  }
})
That shouldn't cause any problems.
 

Shadow56bomb

Cooltrainer
Member
Joined
Oct 15, 2022
Posts
220
How do I fix this?
[Pokémon Essentials version 20.1]
[v20.1 Hotfixes 1.0.7]

Error in Plugin: [Modern Quest System + UI]
Exception: SyntaxError
Message: [Modern Quest System + UI] 004_Quest_Data.rb:165: syntax error, unexpected symbol literal, expecting '}'
:Name => "Dynamax Research"
^
[Modern Quest System + UI] 004_Quest_Data.rb:173: syntax error, unexpected '}', expecting `end'
[Modern Quest System + UI] 004_Quest_Data.rb:177: syntax error, unexpected symbol literal, expecting '}'
:Name => "The Quickly Fading T...
^
[Modern Quest System + UI] 004_Quest_Data.rb:183: syntax error, unexpected '}', expecting `end'

Backtrace:
008:PluginManager:653:in `eval'
008:PluginManager:653:in `block (2 levels) in runPlugins'
008:PluginManager:643:in `each'
008:PluginManager:643:in `block in runPlugins'
008:PluginManager:634:in `each'
008:PluginManager:634:in `runPlugins'
389:Main:28:in `mainFunctionDebug'
389:Main:18:in `block in mainFunction'
014:Errors:80:in `pbCriticalCode'
389:Main:18:in `mainFunction'
 

ThatWelshOne_

Champion
Member
How do I fix this?
[Pokémon Essentials version 20.1]
[v20.1 Hotfixes 1.0.7]

Error in Plugin: [Modern Quest System + UI]
Exception: SyntaxError
Message: [Modern Quest System + UI] 004_Quest_Data.rb:165: syntax error, unexpected symbol literal, expecting '}'
:Name => "Dynamax Research"
^
[Modern Quest System + UI] 004_Quest_Data.rb:173: syntax error, unexpected '}', expecting `end'
[Modern Quest System + UI] 004_Quest_Data.rb:177: syntax error, unexpected symbol literal, expecting '}'
:Name => "The Quickly Fading T...
^
[Modern Quest System + UI] 004_Quest_Data.rb:183: syntax error, unexpected '}', expecting `end'

Backtrace:
008:PluginManager:653:in `eval'
008:PluginManager:653:in `block (2 levels) in runPlugins'
008:PluginManager:643:in `each'
008:PluginManager:643:in `block in runPlugins'
008:PluginManager:634:in `each'
008:PluginManager:634:in `runPlugins'
389:Main:28:in `mainFunctionDebug'
389:Main:18:in `block in mainFunction'
014:Errors:80:in `pbCriticalCode'
389:Main:18:in `mainFunction'
What does your quest data for this quest look like?
 

Shadow56bomb

Cooltrainer
Member
Joined
Oct 15, 2022
Posts
220
SyntaxEditor Code Snippet Quest13 = {
:ID => "13"
:Name => "Dynamax Research"
:QuestGiver => "Dynamax Dude"
:Stage1 => "Find a Wishing Star for the Dynamax Dude."
:Stage2 => "Bring the Wishing Star to the Dynamax Dude."
:Location1 => "Celestine City"
:Location2 => "Dynamax Field"
:QuestDescription => "Help the Dynamax Dude research Dynamax because he has no Pokémon."
:RewardString => "A Dynamax Band"
}
 

ThatWelshOne_

Champion
Member
SyntaxEditor Code Snippet Quest13 = {
:ID => "13"
:Name => "Dynamax Research"
:QuestGiver => "Dynamax Dude"
:Stage1 => "Find a Wishing Star for the Dynamax Dude."
:Stage2 => "Bring the Wishing Star to the Dynamax Dude."
:Location1 => "Celestine City"
:Location2 => "Dynamax Field"
:QuestDescription => "Help the Dynamax Dude research Dynamax because he has no Pokémon."
:RewardString => "A Dynamax Band"
}
I guess you need a comma at the end of every line except the RewardString line if that's exactly how you've written the data.
 

Shadow56bomb

Cooltrainer
Member
Joined
Oct 15, 2022
Posts
220
I get this error when starting a quest now
[Pokémon Essentials version 20.1]
[v20.1 Hotfixes 1.0.7]

Script error in event 3 (coords 24,18), map 266 (Dolerite Town)
Exception: NameError
Message: uninitialized constant Interpreter::Quest14

***Full script:
activateQuest(Quest14, "yellow", false)

Backtrace:
(eval):1:in `execute_script'
033:Interpreter:143:in `eval'
033:Interpreter:143:in `execute_script'
034:Interpreter_Commands:1112:in `command_355'
034:Interpreter_Commands:116:in `execute_command'
033:Interpreter:133:in `block in update'
033:Interpreter:90:in `loop'
033:Interpreter:90:in `update'
032:Scene_Map:160:in `block in update'
032:Scene_Map:159:in `loop'

Do I just have to change the name to what the quest's name is?
 
Back
Top