• 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.
  • Reminder: AI-generated content is not allowed on the forums per the Rules and Regulations. Please contact us if you have any questions!
Daily Word Minigame

Resource Daily Word Minigame 1.1

wrigty12

Tester-Coder Hybrid
Member
Joined
Jul 24, 2022
Posts
727
wrigty12 submitted a new resource:

Daily Word Minigame - Bring the popular daily word guessing game to your own game!

This introduces a new minigame, where the player has a set number of chances to guess a word. This is based on the popular daily word game you all know and love.

qGcG8tag_o.png


Features
  • Daily word tracker, including a streak count.
  • Option to specify a word the player must guess. This could be good for password quests.
  • Play the minigame using a random word instead of a predefined one.
  • Fully editable word lists...

Read more about this resource...
 
Hello, good person. First off, pretty cool resource! I've tried it and it works incredibly well. That being said, I've encountered an error when I set the word to be a specific one rather than a random/daily. Maybe I'm being stupid, but I really can't get it to work

Here's the error:

Script error in event 7 (coords 32,5), map 42 (-------)
Exception: NoMethodError
Message: undefined method '[]=' for nil: NilClass
*** Full script:
pbDailyWordGame("Hello")
Backtrace:
[Daily Word Minigame] 002_Scene.rb:27:in 'block in pbDailyWordGame'
MessageConfig:575:in 'pbFadeOutIn'
[Daily Word Minigame] 002_Scene.rb:21:in `pbDailyWordGame'
(eval):1:in `execute_script'
Interpreter: 138:in 'eval'
Interpreter: 138:in 'execute_script'
Interpreter_Commands:1177:in 'command_355'
Interpreter_Commands:116:in `execute_command'
Interpreter: 130:in `block in update'
Interpreter:86:in 'loop'

I've not changed anything in the Settings besides translating two messages (Defaul won and retry text) into my language.
 
Hello, good person. First off, pretty cool resource! I've tried it and it works incredibly well. That being said, I've encountered an error when I set the word to be a specific one rather than a random/daily. Maybe I'm being stupid, but I really can't get it to work

Here's the error:

Script error in event 7 (coords 32,5), map 42 (-------)
Exception: NoMethodError
Message: undefined method '[]=' for nil: NilClass
*** Full script:
pbDailyWordGame("Hello")
Backtrace:
[Daily Word Minigame] 002_Scene.rb:27:in 'block in pbDailyWordGame'
MessageConfig:575:in 'pbFadeOutIn'
[Daily Word Minigame] 002_Scene.rb:21:in `pbDailyWordGame'
(eval):1:in `execute_script'
Interpreter: 138:in 'eval'
Interpreter: 138:in 'execute_script'
Interpreter_Commands:1177:in 'command_355'
Interpreter_Commands:116:in `execute_command'
Interpreter: 130:in `block in update'
Interpreter:86:in 'loop'

I've not changed anything in the Settings besides translating two messages (Defaul won and retry text) into my language.
I think I see what's wrong. I'll push a fix for it later today
 
I think I see what's wrong. I'll push a fix for it later today
Some additional info I forgot to add: The error occurs only after the minigame is complete. It works normally but breaks when I correctly guess "Hello".
 
Hello, good person. First off, pretty cool resource! I've tried it and it works incredibly well. That being said, I've encountered an error when I set the word to be a specific one rather than a random/daily. Maybe I'm being stupid, but I really can't get it to work

Here's the error:

Script error in event 7 (coords 32,5), map 42 (-------)
Exception: NoMethodError
Message: undefined method '[]=' for nil: NilClass
*** Full script:
pbDailyWordGame("Hello")
Backtrace:
[Daily Word Minigame] 002_Scene.rb:27:in 'block in pbDailyWordGame'
MessageConfig:575:in 'pbFadeOutIn'
[Daily Word Minigame] 002_Scene.rb:21:in `pbDailyWordGame'
(eval):1:in `execute_script'
Interpreter: 138:in 'eval'
Interpreter: 138:in 'execute_script'
Interpreter_Commands:1177:in 'command_355'
Interpreter_Commands:116:in `execute_command'
Interpreter: 130:in `block in update'
Interpreter:86:in 'loop'

I've not changed anything in the Settings besides translating two messages (Defaul won and retry text) into my language.
Should be fixed with the new update.
 
Is there by any chance a way to add a conditional variable after the minigame is played to award the player with a prize if they won? I'm stuck on how to format the script. It's not DailyWordGame.status == true, but is there a way as the script is currently written to do something like this?
 
Is there by any chance a way to add a conditional variable after the minigame is played to award the player with a prize if they won? I'm stuck on how to format the script. It's not DailyWordGame.status == true, but is there a way as the script is currently written to do something like this?
Putting pbDailyWordGame by itself in the conditional branch will return true if the player won (or if they have won already in the day and they interact with it again), or false if they lose. Looks like I forgot to add that to the documentation.

So your event would look like

Code:
Expand Collapse Copy
@>Conditional Branch: Script: pbDailyWordGame
  @> Put any of your winning stuff here
 : Else
  @> Put any of your losing stuff here
 : Branch End
@>
 
Thanks, that worked!

If I have it as a daily game, what kind of conditional check do I need to run to see if they've already played today? That way it doesn't run through either "winning stuff" or "losing stuff" when interacted with?
 
N
Thanks, that worked!

If I have it as a daily game, what kind of conditional check do I need to run to see if they've already played today? That way it doesn't run through either "winning stuff" or "losing stuff" when interacted with?
Nevermind...forgot about the existence of timed events.
 
Back
Top