Hi, recently I've been wanting to add a puzzle, where there's a typewriter and you can type into it and it gives a piece of paper (item) titled what ever you typed. how would I go about doing this?
Creating items for a puzzle
RPG Maker VXAce SupportYou get a typewrite sprite.
(I have one in the modern tiles list I think)
you make it an event and input the word as a password (dagny has a tutorial on how to do this)
you have an item with a common event associated with the variable that holds the password.
If you want long blocks of text, I believe you will need a script.
(I have one in the modern tiles list I think)
you make it an event and input the word as a password (dagny has a tutorial on how to do this)
you have an item with a common event associated with the variable that holds the password.
If you want long blocks of text, I believe you will need a script.
"titled" in this case means the name of the item, its description or, like Granny wrote, a variable that you get by using the item? The first 2 need scripts, the 3rd i don't know if it's possible to store something else than numbers in a variable without scripting.
I was hoping for the title to be changed, but the way Gdeb suggests seems less hair-pullingly hard, so I'll do that. Thanks!
Well, what you could do is set up an empty name in the database, use that for the "password entry" thing, and setup a variable to store that name. It would take a script command to get the text into the variable, but, I'm pretty sure it should be possible.
*Edit: This is what I get for not testing stuff first. Inputting the description "A note about \n[X]", does read the name of the actor in position X, but I can't get the name of the item to change with "Note (\n[X])". I was kinda thinking it would, though!
*Edit: This is what I get for not testing stuff first. Inputting the description "A note about \n[X]", does read the name of the actor in position X, but I can't get the name of the item to change with "Note (\n[X])". I was kinda thinking it would, though!
What Marrend said, except instead of using a variable to store the name. You just use a conditional branch to check if the name of the actor used is the same as the word you want it to be(Page 2 Actor# Name is applied).
I think I might be onto something with...
$game_variables[1] = $game_actors[11].name$data_items[18].name = "Note (" + $game_variables[1] + ")"...this. Though, you can obviously replace the number between the parathesis in either the "$game_variables" or "$data_items" expressions, depending on what your game looks like.*Edit: This also largely presumes that a name input processing has been performed before this happens.
*Edit2: Now that I think about this, it could probably be simplified to...
...that (or whatever) and skip the need for a variable alltogether.
$game_variables[1] = $game_actors[11].name$data_items[18].name = "Note (" + $game_variables[1] + ")"...this. Though, you can obviously replace the number between the parathesis in either the "$game_variables" or "$data_items" expressions, depending on what your game looks like.*Edit: This also largely presumes that a name input processing has been performed before this happens.
*Edit2: Now that I think about this, it could probably be simplified to...
Code:
$data_items[11].name = "Note (" + $game_actors[11].name + ")"
Modifying $data_items won't help you unless it's done every time the game is loaded, since it isn't included in the save file (unless you are using DoubleX's Dynamic Data: http://forums.rpgmakerweb.com/index.php?/topic/40054-doublex-rmvxa-dynamic-data/#entry397771)
lets keep it simple and just rename an actor =] see the tut =]
thanks lavra for keeping us straight!
thanks lavra for keeping us straight!
Oh, wow, yeah. It doesn't save! Oh well. This is what I get for not playtesting hard enough.
I try too hard, I guess.
I try too hard, I guess.
Original thread: https://forums.rpgmakerweb.com/threads/creating-items-for-a-puzzle.40489/