The RPG Maker Resource Kit

Other Game Creation => Program Troubleshooting => Topic started by: Arkhan on January 25, 2007, 11:56:47 AM

Title: [RESOLVED] Mapping skills/common events to keys?
Post by: Arkhan on January 25, 2007, 11:56:47 AM
Is there a way to activate a skill by pressing a key? Or activate a common event by pressing a key? I'm sure there is, but how do you do it? I'm sorry, I know this must have been asked before, but it's not letting me search.
Title: Re: Mapping skills/common events to keys?
Post by: Nightwolf on January 25, 2007, 02:17:26 PM
I think you'll need those branches, that if player presses "a" for example, this happens.
But im not good in that, if you are you can work that yourself, or someone may post what exactly to do..
Title: Re: Mapping skills/common events to keys?
Post by: Snailer on January 25, 2007, 02:21:01 PM
YA !

run game and press F1 ( test game )
and look up your buttons.
After this go to common events and use conditional branch..
Title: Re: Mapping skills/common events to keys?
Post by: Arkhan on January 27, 2007, 01:51:36 AM
I've tried making a common event with "Parallel Process" as it's trigger, but then what does condition switch mean?
Title: Re: Mapping skills/common events to keys?
Post by: :) on January 27, 2007, 01:54:32 AM
if you are trying to make an action battle system,

save time:

http://rmrk.net/index.php/topic,9533.0.html

if not, reply here, and I will try and help you out.
Title: Re: Mapping skills/common events to keys?
Post by: Arkhan on January 27, 2007, 03:11:07 AM
I'm not.
Title: Re: Mapping skills/common events to keys?
Post by: :) on January 27, 2007, 03:15:32 AM
give me like 2 mins to set this up for you.
Title: Re: Mapping skills/common events to keys?
Post by: :) on January 27, 2007, 03:19:34 AM
here's how to activate your commen event, by pressing the button W (by default W is set as R)

set up a normal event on the map like this:
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg266.imageshack.us%2Fimg266%2F3263%2Feventonmapyb1.png&hash=478a008a5f53a655d389c0aac8ee1f32cadf0d0d)

the conditional branch is set on script whith no else...and the script is this:
Input.trigger?(Input::R)

then on your common event set it up to use the switch that you made the first event turn on (in my case switch 1)
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg294.imageshack.us%2Fimg294%2F6659%2Fcommeneventbv8.png&hash=bc4e4bd24aa81ae52885aaf200d3068b2b31f547)


for me if I press W in game right now, I will see the message that shows up in the common event
Title: Re: Mapping skills/common events to keys?
Post by: Arkhan on January 28, 2007, 09:07:15 AM
Thanks, Nouman. Just one more question... actually kind of two. How do you know what key (e.g. W) is set as what (e.g. R), and how can you change that, so that for example W is set as W?
Title: Re: Mapping skills/common events to keys?
Post by: :) on January 28, 2007, 07:43:49 PM
click playtest then press F1
Title: Re: Mapping skills/common events to keys?
Post by: GilgameshRO on January 28, 2007, 07:45:41 PM
By default:
A=Shift,Z
B=X
C=Space,Enter,C
X=A
Y=S
Z=D
L=Q
R=W

Btw, nouman, and arkhan I guess, for the parallel process the conditional branch should have else> switch Commonevent OFF, assuming you want it to turn back off afterwards.
Title: Re: Mapping skills/common events to keys?
Post by: Snailer on January 28, 2007, 08:21:56 PM
Maybe you could set it to Switch off at the end of process and than it will be repeatable .. 

Not ?