xabileug

Veteran
Veteran
Joined
Jul 1, 2014
Messages
510
Reaction score
171
I'm looking for a minigame plugin that works like as the title says, 4 pics 1 word. So there will be a word, like password, and clues shown. Then the player clicks on the available letters to fill up the slot.

I'm having trouble eventing this that is why i'm requesting a script. so I have pictures of the 27 letters A-Z, and all 10 numbers 0-9. The correct letters for the word fills up the array, then random letters are added, then they are scrambled. I get confused how to transfer the picture, its animated to shrink and re-appear on the answer box allotted.

for example the word is "GUESS", letters "G U E S S" are added to the choice pool, then random A B C D E, so the choices now are " A B C D E E G S S U " then scrambled, the letters are displayed in a 2 x 5 (row x col). then the answer box is 5 letters. I'm not good with arrays, so it get's scrambled when i use it with the show picture script call

EDIT:
so i was successful on eventing it. but i still wish someone could make a plugin for it as it required me 40 variables and 2 switches.
 
Last edited:

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
7,254
Reaction score
2,873
First Language
Dutch
Primarily Uses
RMMV
event it can be hard, but possible with some JS, ET_MapKey (keymapper)
SRD_HudMaker or probably a button common events plugin (YEP or Galv)
and it can be difficult for the random letters or some duplicates on it.

I made a bit simpler version for a password code, but the mechanic is also
very different.

if you want to use it as a password part and want a timer to place them,
it should be compitable with a timer plugin (SRD_Timer) dont know the exact
name and inputForm (111_inputForm), of DK had one or another similair
to let the timer continue to make it compitable if creating a plugin of this
puzzle.

random array of letters is one thing, placing the letters is the harder part,
but it can be interesting how it looks in the game.

wasn't there a similair one with pictures and placing the word with letters too?
I believe it was on the android version, but I cannot recall the game though.
 

Aerosys

Veteran
Veteran
Joined
Apr 23, 2019
Messages
880
Reaction score
881
First Language
german
Primarily Uses
RMMZ
You definitely need to split it down into multiple tasks. Also, do you want to integrate it into an RPG or as a Standalone-Game? Then why would you pick RPG Maker?
 

xabileug

Veteran
Veteran
Joined
Jul 1, 2014
Messages
510
Reaction score
171
You definitely need to split it down into multiple tasks. Also, do you want to integrate it into an RPG or as a Standalone-Game? Then why would you pick RPG Maker?
I want it as a mini game in my game in rmmv, detective game
name and inputForm (111_inputForm), of DK had one or another similair
to let the timer continue to make it compitable if creating a plugin of this
puzzle.
I tried input form its very easy, coz you just type, but the click letters is more visually appealing coz you can use picture, custom fonts, frames.
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
7,254
Reaction score
2,873
First Language
Dutch
Primarily Uses
RMMV
I might have a way to make it randomly appear on the screen for letters,
but it require a bit complex setup using variables and a switch/selfswitch.

but also require plugins to stop movement (or seperated map where it run into).
but I dont have alot of time at this point while I should test it with 7 letters and
random words (fixed), but if you want totally random words to be chosen.

a plugin is better with a txt or JSON file for the word indexing to pick from
with possible letters required which is more harder to do.

clicking the image is and conditional checks (with ALOE_ConditionalBranch++)
can speed up the progress, but it can break easely.

there is at least 1 variable needed to check the word, probably 1 variable
for each letters to indicate the position when clicked on it.

you can reference to my Ocarina of Time, but while that has 6 buttons,
convert it to 37 letters + numbers at random is a huge challenge at eventing.

I wonder if eventhing can make it smooth, where plugin is better, but probably
also harder to construct the position and the amount of letters shown and where.

5 letter word is easier than you have a random 5-20 letter word(s) if not 2 words
required to pass.

I think around what plugin is best for use to make this setup, but I dont know if
I can make a working version (simplified) within 7 days though and the 2 complex
evented mini games I made took me 3-5 days to figure it out to make it smooth.

Specially the busy day in RL can bother me alot lately as well.
 

Lady_JJ

Veteran
Veteran
Joined
May 6, 2019
Messages
473
Reaction score
385
First Language
English
Primarily Uses
RMMZ
EDIT-Just noticed this was posted under Plugin Requests, so the below eventing method is probably irrelevant. I'll put it in a spoiler.
I think it can be done by eventing. This is psuedo-code and I may have some incomplete javascript commands, like missing (), but it will give you an idea of one way to process it.
Code:
Name the letter files 01L (for A), 02L (for B)... 26L (for Z)
Assign an array wordArray=[]
Fill your wordArray with the number of the letter not the letter, so
GUESS wordArray would now be [7,21,5,19,19] then finish the array with the how many random numbers 1-26 you need.

Assign a counter variable to 0

Loop here
Assign the x and y value of the first picture.
Concatenate the picFileName from the element number
n=wordArray(counter).string()
    If n<10 then
    picFileName="0"+n+"L"
    else
    picFileName=n+"L"
Use a script to show that picture.
Increase X by how many pixels you need for correct placement of the next letter
counter = counter + 1
If counter = 5 then
    reset x to initial value
    increase y to desired value of next row
If counter = 10 then
    break loop as you have all the pictures showing
Loop

I would assign a different common event to each of the 10 pictures. The first common event should start with letter=wordArray(1), the second letter=wordArray(2), etc.
You may need to use parseInt or value to actually get the number rather than 0. I've learned arrays can be a bit finnicky in this respect.

When the button is clicked, use the Move Picture to move that picture to the answer box, shrinking along the way. You'll need an x variable to keep track of the answer box placement as each letter is placed there.

There are a bunch of other things to consider, such as
Are all words 5 letters in length?
How will the game know all the letters have been placed?
Will there be a submit button?
Supposing the player made a mistake? Can the player click on the letter in the answer box and return it to the 2x5 grid?

But these are questions that can be answered once you have the basic display set up. Note that this solution never looks at the letter itself, just at the number (1-26) assigned to that number. But you can then easily convert those numbers in the array to the correct word, like GUESS.

If this sounds like something that would work for you, I could do a small demo with actual event and javascript code.
 
Last edited:

xabileug

Veteran
Veteran
Joined
Jul 1, 2014
Messages
510
Reaction score
171
EDIT-Just noticed this was posted under Plugin Requests, so the below eventing method is probably irrelevant. I'll put it in a spoiler.
I think it can be done by eventing. This is psuedo-code and I may have some incomplete javascript commands, like missing (), but it will give you an idea of one way to process it.
Code:
Name the letter files 01L (for A), 02L (for B)... 26L (for Z)
Assign an array wordArray=[]
Fill your wordArray with the number of the letter not the letter, so
GUESS wordArray would now be [7,21,5,19,19] then finish the array with the how many random numbers 1-26 you need.

Assign a counter variable to 0

Loop here
Assign the x and y value of the first picture.
Concatenate the picFileName from the element number
n=wordArray(counter).string()
    If n<10 then
    picFileName="0"+n+"L"
    else
    picFileName=n+"L"
Use a script to show that picture.
Increase X by how many pixels you need for correct placement of the next letter
counter = counter + 1
If counter = 5 then
    reset x to initial value
    increase y to desired value of next row
If counter = 10 then
    break loop as you have all the pictures showing
Loop

I would assign a different common event to each of the 10 pictures. The first common event should start with letter=wordArray(1), the second letter=wordArray(2), etc.
You may need to use parseInt or value to actually get the number rather than 0. I've learned arrays can be a bit finnicky in this respect.

When the button is clicked, use the Move Picture to move that picture to the answer box, shrinking along the way. You'll need an x variable to keep track of the answer box placement as each letter is placed there.

There are a bunch of other things to consider, such as
Are all words 5 letters in length?
How will the game know all the letters have been placed?
Will there be a submit button?
Supposing the player made a mistake? Can the player click on the letter in the answer box and return it to the 2x5 grid?

But these are questions that can be answered once you have the basic display set up. Note that this solution never looks at the letter itself, just at the number (1-26) assigned to that number. But you can then easily convert those numbers in the array to the correct word, like GUESS.

If this sounds like something that would work for you, I could do a small demo with actual event and javascript code.
thanks for the ideas, im using PictureCallCommon and RS_Event Touch, yes just five letters for all words, it's hard to change the coordinates of the answer box every time for 3-7 words, unless i get a code to easily position them from the center screen and spead out evenly with 10 pixels gap.
Just like any 4p1w app, 1st click will be added to 1st letter in answer box. the player can return the choice by clicking reverse order their answer in the answer box.

EDIT:
here's what i have for the eventing
gif4p.gif
 
Last edited:

xabileug

Veteran
Veteran
Joined
Jul 1, 2014
Messages
510
Reaction score
171
I completed the event, now supports 3 to 7 letter words. filename is just "word"+n, so you have 4 pictures for example APPLE1,APPLE2,APPLE3,APPLE4.. the event breaks it down to APPLE, and adds filler letters, scramble..
i have several common events:
Game Manager
Image Manager
Word Manager
Filler Manager
Position Manager
Input Manager
Answer Manager
I had to use 11 switches.. for variables - 10 var for x coor, 10 var for y coor, 14 for answer+ input, 10 for choice, 15 for process handling..
hopefully someone could event this.
 

Latest Threads

Latest Posts

Latest Profile Posts

It's been a while again, eh.
It's all over! ep 27 now I got find some other long RPG to play, any reccomendations?
Shaz wrote on Avery's profile.
I need some of whatever you've been drinking for the last few weeks!
Although I love your awesome tutorials and always want more, I sure hope you're not going to burn yourself out.
Has anyone else ever thought about how the title of Gym Leader is usually hereditary? Usually the gym leaders child or sibling becomes the next gym leader. Not always, but usually. Pokémon nepotism
I have a new profile photo and I'm loving the heck out of it! Thanks @Finnuval :kaopride:
:kaoluv:

Forum statistics

Threads
129,949
Messages
1,206,496
Members
171,165
Latest member
ruiss
Top