Home
Help
Search
Calendar
Login
Register
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
New forum theme up and running!
Charas-Project
»
Game Creation
»
Requests
»
RPG Maker Programming
»
How do I
« previous
next »
Print
Pages: [
1
]
2
Author
Topic: How do I (Read 5931 times)
evmaster
Member
Associate
Posts: 231
How do I
«
on:
July 18, 2006, 11:24:53 PM »
Okay, I walk up to a character in my game and talk to him/her. In the characters event, it saids if hero posses item, give to person, yes or no. Saying no will make them say something. I just wanted to know if I could make a certain button I could press to give the item to the character instead of putting yes or no and then they say something. Oh, how do you also make characters in town say something random.
And is this the right topic?
Logged
WarxePB
Action Sue
Royal
Posts: 3,601
What killed the dinosaurs?
(No subject)
«
Reply #1 on:
July 19, 2006, 10:38:31 PM »
If you're using RM2K3, then it's easy.
Make the person a Touched By Hero event. In the event, create a Key Input Process command that recognizes the key you want to press (if you want to use the item by pressing 1, for example, decheck all the boxes save for the Number keys.) Next, create a Conditional Branch/Fork Condition that checks if the variable you used above is equal to the key you pressed (if you used 1, then the variable should be equal to 11.) From there, just continue on with the event.
Logged
Blog:
The Gigaverse
Twitter:
Initial Chaos
evmaster
Member
Associate
Posts: 231
(No subject)
«
Reply #2 on:
August 01, 2006, 12:38:33 PM »
Could you explain how to do it with the shift key or the enter key? I am having some problems.
Logged
DragonBlaze
A Wild DB Appeared!
Royal
Posts: 3,329
(No subject)
«
Reply #3 on:
August 01, 2006, 01:47:48 PM »
Well you'll need to make the key input process, check the shift key box and uncheck all the other boxes. Under that, make a fork condition if they key is 7, in that fork, remove the item, or do what you want.
Logged
Hell Yeah! Just recovered all my old rm2k/3 games from my 10 year old, broken laptop hard drive that had been formatted and had a new OS installed on it. Oh, and I did all of this from my phone. WIN
evmaster
Member
Associate
Posts: 231
(No subject)
«
Reply #4 on:
August 01, 2006, 01:53:44 PM »
Thanks.
Logged
evmaster
Member
Associate
Posts: 231
(No subject)
«
Reply #5 on:
August 01, 2006, 02:25:35 PM »
Its not working.
Logged
DragonBlaze
A Wild DB Appeared!
Royal
Posts: 3,329
(No subject)
«
Reply #6 on:
August 01, 2006, 03:09:13 PM »
Did you set the key input process to wait until key is pressed? And did you make sure that the variable used in the key input process was the same variable used in the conditional branch?
Logged
Hell Yeah! Just recovered all my old rm2k/3 games from my 10 year old, broken laptop hard drive that had been formatted and had a new OS installed on it. Oh, and I did all of this from my phone. WIN
evmaster
Member
Associate
Posts: 231
(No subject)
«
Reply #7 on:
August 01, 2006, 03:19:23 PM »
I tried to post a picture in my last post.
Logged
WarxePB
Action Sue
Royal
Posts: 3,601
What killed the dinosaurs?
(No subject)
«
Reply #8 on:
August 01, 2006, 04:05:19 PM »
Hmm, the branch and the Key Input should be reversed in position.
Logged
Blog:
The Gigaverse
Twitter:
Initial Chaos
evmaster
Member
Associate
Posts: 231
(No subject)
«
Reply #9 on:
August 01, 2006, 04:09:42 PM »
I just switched them and if I press the Spacebar I can't move my character.
Logged
Meiscool-2
Sage
Posts: 7,030
If you support n00bs, you support communism.
(No subject)
«
Reply #10 on:
August 01, 2006, 04:24:07 PM »
You can't have a key input for the space bar. It's either enter, esc, or shift.
And don't ask which numbers are enter and shift. It tells you right when you make the key input.
Logged
Most Recent:
________________________
Old Stuff:
evmaster
Member
Associate
Posts: 231
(No subject)
«
Reply #11 on:
August 01, 2006, 04:39:31 PM »
I forgot to say that also when I try and press Shift Key nothing happens.
I now got it to where if I press the spacebar, I cant move, so then I have to press the shift key and then press the spacebar. How can I fix this?
Logged
WarxePB
Action Sue
Royal
Posts: 3,601
What killed the dinosaurs?
(No subject)
«
Reply #12 on:
August 01, 2006, 10:39:42 PM »
If your Key Input Process command has "Wait until key pressed" checked, de-check it.
Logged
Blog:
The Gigaverse
Twitter:
Initial Chaos
evmaster
Member
Associate
Posts: 231
(No subject)
«
Reply #13 on:
August 01, 2006, 10:52:14 PM »
This is what I have now. And thanks so much everybody.
Logged
WarxePB
Action Sue
Royal
Posts: 3,601
What killed the dinosaurs?
(No subject)
«
Reply #14 on:
August 01, 2006, 10:59:57 PM »
Yep, that should work. Just give us a buzz if you need help again.
Logged
Blog:
The Gigaverse
Twitter:
Initial Chaos
Print
Pages: [
1
]
2
« previous
next »
Charas-Project
»
Game Creation
»
Requests
»
RPG Maker Programming
»
How do I