The RPG Maker Resource Kit

RMRK RPG Maker Creation => XP => Topic started by: :) on November 24, 2006, 02:00:32 AM

Title: Chage spirit when button is pressed (rpg maker XP)
Post by: :) on November 24, 2006, 02:00:32 AM
Ok, so I want to know how to make it so when in game play I press the letter "C" the hero changes his charset grafic, and when I press "C" again he changes it back to the old one.
Title: Re: Im tired and can't get it too work
Post by: :) on November 24, 2006, 06:43:24 AM
anyone?
Title: Re: Chage spirit when button is pressed
Post by: :) on November 24, 2006, 03:07:43 PM
no one? well, I keep trying and again keep failing. Am I supposed to to use commen events? Ok here is how I am attempting to do it:

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi5.photobucket.com%2Falbums%2Fy163%2FNouman6%2Ftransform.jpg&hash=02ae1af0a49cd7ea04816c21ee4abc6eebdaaf6c)
Sorta like pressing "C" would have you transform into something, and pressing it again would chage you back to normal. All I need is for the Character grafic to change.
Title: Re: Chage spirit when button is pressed
Post by: &&&&&&&&&&&&& on November 24, 2006, 05:06:00 PM
Yeah common event should work...
Ill go try it.

Ok... I think I have something here...

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi109.photobucket.com%2Falbums%2Fn52%2Fdreamslayer7%2Fok.jpg&hash=59d3ab065021ad93ccfc1f3c71360f4bb510defd) (https://rmrk.net/proxy.php?request=http%3A%2F%2Fi109.photobucket.com%2Falbums%2Fn52%2Fdreamslayer7%2Fok2.jpg&hash=7c8ecf1bca074b3ac5501977b6344fd025d1e642)

But damn If this was 2003 or 2000 I would have had this working... OK, here it is. Two common events. The first needs to have a switch on to start, I called it OK. The event is that when c is pushed character sprite is changed and ok is turned off and a new switch is turned on which I called Ok2. When ok2 is on it make the second common even turn on which it the same as the first but at the end it turns ok2 off and ok on.

This should work... but it won't. How do you use the input process thing? I wich they would have kept the password thing from 2003...
Title: Re: Chage spirit when button is pressed
Post by: :) on November 24, 2006, 06:24:24 PM
wait..so it did NOT work, or is taht screenshot of a working event?
Title: Re: Chage spirit when button is pressed
Post by: &&&&&&&&&&&&& on November 25, 2006, 12:18:06 AM
Here the thing... I got it to work in 2000 and 2003 but cant make XP work  :-\
when I push C nothing happend... so this is a screen shot of a not working even  :-\

I think it is the thing I am using for the IF C IS PUSHED DO THIS thing that is making it not work...

I'm pretty sure that is what is not working...  :-\ -again
Title: Re: Chage spirit when button is pressed
Post by: :) on November 25, 2006, 12:26:08 AM
can anyone else figure this out for me? it sersiously seems so dam simple, but I can't get it
Title: Re: Chage spirit when button is pressed
Post by: Nathmatt on November 25, 2006, 12:44:30 AM
press f1 in test play & set the c botton for c
Title: Re: Chage spirit when button is pressed
Post by: :) on November 25, 2006, 12:46:26 AM
tried that, dosen't chage anything the C is already set to C...
Title: Re: Chage spirit when button is pressed
Post by: &&&&&&&&&&&&& on November 26, 2006, 01:42:35 AM
This is pissing me off  >:(

I know how to do it but I don't know what to do to make it do what I want it too.
Title: Re: Chage spirit when button is pressed
Post by: Best-Gammer on November 26, 2006, 01:54:34 AM
i think it would help if peeps added the name of the program in the name
Title: Re: Chage spirit when button is pressed
Post by: :) on November 26, 2006, 02:43:15 AM
? program? or verison?
Title: Re: Chage spirit when button is pressed (rpg maker XP)
Post by: Punk on November 26, 2006, 03:10:35 AM
I may not have RMXP anymore but I'll try to help you.

You will need two switches.

Do this:
- Conditional Branch: Script: Input.trigger?(Input:C)
-- Conditional Branch: Switch: 'Herochange' is OFF
--- Change character graphic
--- Switch 'Herochange' ON
-- Else
--- Change character graphic to default
--- Switch 'Herochange' OFF
Title: Re: Chage spirit when button is pressed (rpg maker XP)
Post by: :) on November 26, 2006, 05:16:17 PM
Input.trigger?(Input:C)

is that what I put in copy paste? it dosent work here is what I have

and you said two switches?? I only used one what is the other one
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi5.photobucket.com%2Falbums%2Fy163%2FNouman6%2Ftransformintosomething.jpg&hash=442ea34083b6a9635bf3ed0a16689c9670499500)
Title: Re: Chage spirit when button is pressed (rpg maker XP)
Post by: Punk on November 27, 2006, 01:12:51 AM
Whoops, my fault.

Replace with this.
Code: [Select]
Input.trigger?(Input::C)

The other switch was meant for common events.
Title: Re: Chage spirit when button is pressed (rpg maker XP)
Post by: :) on November 27, 2006, 01:33:33 AM
geeze, sorry to bother you again, but I sill cant get it...I really SUCK with events...So I added that, but this time when the games starts he is already the new grafic, and switches back in a second, and C does nothing....this should all be under a event page right? and set to parallel process?
Title: Re: Chage spirit when button is pressed (rpg maker XP)
Post by: Punk on November 27, 2006, 02:25:28 AM
Put the else conditional branch in the 'Switch: Herochange == OFF', not in the 'Script: Input.trigger?(Input::C)' conditional branch.
Title: Re: Chage spirit when button is pressed (rpg maker XP)
Post by: :) on November 27, 2006, 04:02:39 AM
no dice. Now the hero is the transformed version from start of game. C does nothing
Title: Re: Chage spirit when button is pressed (rpg maker XP)
Post by: Best-Gammer on November 27, 2006, 04:34:23 AM
Since your such a good friend'i'll tell you infact lemme edit this after i post it for the heads up so you can be happy
Title: Re: Chage spirit when button is pressed (rpg maker XP)
Post by: :) on November 27, 2006, 04:37:21 AM
i'm happy! punkid89 explained it perfect I know that, just i can't follow LOL i have events and stuff...maybe not cut sceens so much..I like mapping mostly.
Title: Re: Chage spirit when button is pressed (rpg maker XP)
Post by: Blizzard on November 27, 2006, 11:20:22 AM
Or try this here. Holding SHIFT and pressing ENTER will transform (yes, transform) the character or change it back (therefore the animation on the player character...). Make this common event a parallel process and don't forget to turn on the appropriate switch. Ignore the Soul Blade thing, the weapon changes with the transformation of my char (ZOMG, it also transforms!), that's why I need it. :=:
Also note that the "Transform allowed" switch is controlled by script in my game, so most probably don't need it either. Also it should be "not $game_system.map_interpreter.running?" what will disable transformation during the execution of another event. Transformation can be executed every 10 frames (1/2 second).

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg19.imageshack.us%2Fimg19%2F9650%2Fsnap89ar5.th.png&hash=279ec213a918314ab576126ad83af9a2ad21360b) (http://img19.imageshack.us/my.php?image=snap89ar5.png)
Title: Re: Chage spirit when button is pressed (rpg maker XP)
Post by: :) on November 29, 2006, 02:47:45 AM
wow, blizz any eaiser way? I know I seem so bossy I don't need to have teh intentory changed..Its for a project my friends doing that Im helping him on (Im making Legend of dragoon hes sorta helping...hes making his game im sorta helping)...(dam now I have to let it out) Star wars..I want to have the Lightsaber be shown when you press C. Change the character set to a different one.

Dam just realiazed something...if Possible can you make it so you need a weapon to be able to chage the chracter grafic? (Like actaully have the lightsaber before you change )
Title: Re: Chage spirit when button is pressed (rpg maker XP)
Post by: Punk on November 29, 2006, 03:51:19 AM
Yep. You will need to set up a conditional branch inside the conditional branch 'input.trigger?(input::C)' which states that if the character possesses the weapon or has the weapon equipped, he can change stance. Then give the newly created conditional branch the else co

Then get the 'Herochange' conditional branch, cut and paste it inside the new conditional branch you've created.
Title: Re: Chage spirit when button is pressed (rpg maker XP)
Post by: :) on November 29, 2006, 04:02:52 AM
maybe this can show what I did wrong...

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi5.photobucket.com%2Falbums%2Fy163%2FNouman6%2Flightsaber.jpg&hash=99a3e90ff20d4802bcf83178b7061b6fc450ba22)
Title: Re: Chage spirit when button is pressed (rpg maker XP)
Post by: Punk on November 30, 2006, 02:53:00 AM
What is it doing in gameplay?
Title: Re: Chage spirit when button is pressed (rpg maker XP)
Post by: :) on November 30, 2006, 03:04:56 AM
with that up there, absolutly nothing...the actor is normal at first...Pressing the Key does nothing
Title: Re: Chage spirit when button is pressed (rpg maker XP)
Post by: Blizzard on November 30, 2006, 10:40:48 AM
Instead of the Herochange conditional branch, use the outer branch (lightsaber in inventory). Also equip it on the char and uneuqip it when the sprite changes. And use a common event.