[Solved] Script: Enter Numbers & Shoe pics from inventory

Hi everyone,


I have 2 little problems and Hope you can help me:

1) Imagine you have a passport in your inventory and need a special information from it.Now how can I make show the picture form that passport when choose it from the inventory?

2) I have a script for enter a number with 4 digits in order to open a safe. This works great so far. Now I want theplayer to enter 5 digits instead of 4. Now trying to do this it won't let me because the script is too long. This is what the script should look like:
@message_waiting = true
$game_temp.message_proc = Proc.new {
@message_waiting = false }
$game_temp.message_text = "I need the right number"
$game_temp.num_input_start = 0
@parameters = [0006,5]
$game_temp.num_input_variable_id = 0006
@parameters[0]
$game_temp.num_input_digits_max = 5
@parameters[1]

Any ideas how to make this one fit?
1 - attach the item to a common event and put the Show Picture command in the common event.  Make it wait a certain number of seconds, or loop (with a wait inside) until a conditional branch for Button is Pressed is met, then break the loop, then erase the picture.


2 - why are you using a script to do this?  Show Text followed by Input Number does it perfectly, and lets you specify how many digits you want to use.  I'm also not sure what the @parameters[0] and @parameters[1] lines are meant to do in your script - I don't believe they would do anything at all.  I also don't really think the @parameters = [0006,5] would work either, and 0006 is not the correct format for using a number in a script.
Thank you for your answer!


#2 works fine, thank you 🙂


#1 I don't get it yet. Trigger is "Parallel"? And what about "Condition switch"? I can make a new common event with trigger Parallel and Condition Switch (e.g.Switch No. 1 named "Passport"). Than I do this show picture command but nothing happens when I choose the passport in the inventory. It seems I'm too stupid for the maker, sorry 🙁
Okay, forget my last answer. I forgot to assign the item to the common event. Now it works perfectly. Thank you very much! 🙂
The trigger should not be parallel on a common event attached to an item.

Original thread: https://forums.rpgmakerweb.com/threads/solved-script-enter-numbers-shoe-pics-from-inventory.70629/