Charas-Project

Game Creation => Requests => RPG Maker Programming => Topic started by: evmaster on July 18, 2006, 11:24:53 PM

Title: How do I
Post by: evmaster 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?
Title:
Post by: WarxePB 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.
Title:
Post by: evmaster 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.
Title:
Post by: DragonBlaze 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.
Title:
Post by: evmaster on August 01, 2006, 01:53:44 PM
Thanks.
Title:
Post by: evmaster on August 01, 2006, 02:25:35 PM
Its not working. :(
Title:
Post by: DragonBlaze 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?
Title:
Post by: evmaster on August 01, 2006, 03:19:23 PM
I tried to post a picture in my last post.
Title:
Post by: WarxePB on August 01, 2006, 04:05:19 PM
Hmm, the branch and the Key Input should be reversed in position.
Title:
Post by: evmaster on August 01, 2006, 04:09:42 PM
I just switched them and if I press the Spacebar I can't move my character.
Title:
Post by: Meiscool-2 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.
Title:
Post by: evmaster 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?
Title:
Post by: WarxePB on August 01, 2006, 10:39:42 PM
If your Key Input Process command has "Wait until key pressed" checked, de-check it.
Title:
Post by: evmaster on August 01, 2006, 10:52:14 PM
This is what I have now. And thanks so much everybody.
Title:
Post by: WarxePB on August 01, 2006, 10:59:57 PM
Yep, that should work. Just give us a buzz if you need help again. :)
Title:
Post by: evmaster on August 01, 2006, 11:02:06 PM
Well, it isnt working because nothing comes up. Like theres no message.
Title:
Post by: Tomi on August 01, 2006, 11:05:47 PM
Is the event parallel processing?
Title:
Post by: evmaster on August 01, 2006, 11:07:23 PM
No it's not.
Title:
Post by: DragonBlaze on August 01, 2006, 11:12:38 PM
It'll need to be parallel process to work. Otherwise the event will run through once and be done with, if you don't press the key in time, nothing will happen.
Title:
Post by: evmaster on August 01, 2006, 11:16:10 PM
Thanks everybody. The pararell process made it work. :D
Title:
Post by: Tomi on August 01, 2006, 11:36:59 PM
Tomi ftw!  Glad it works.
Title:
Post by: Meiscool-2 on August 02, 2006, 05:04:02 AM
Quote
Originally posted by Tomi
Tomi ftw!  Glad it works.


He'll run into problems because you can press shift anywhere to give the guy the item.

Tomi ftl.
Title:
Post by: DragonBlaze on August 02, 2006, 01:23:28 PM
Quote
Originally posted by Meiscool
quote:
Originally posted by Tomi
Tomi ftw!  Glad it works.


He'll run into problems because you can press shift anywhere to give the guy the item.

Tomi ftl.


I'm confused, isnt it supposed to be that he can press the shift key anywhere to give the item? Or did I misread something...
Title: darn tresure chests!
Post by: elementalhero76 on August 02, 2006, 02:26:46 PM
Treasure chests give me such a pain the y keep coming back after i open them test play or not, but my friend figured out how to fix this but he is away can you tell me how? _veryangry_

oh and two days ago the rm2k3 crashed and my map tree got corrupted oh well... im starting over again _veryangry_

legend of semathia is my game it will never be done now college is starting *sigh*
Title:
Post by: Linkizcool on August 02, 2006, 04:35:01 PM
Okay. In the treasure chest event, you need two pages. The first page has the tresure chest stuff, like give item to hero, message "OMGOSH OMGOSH FOUND A POTION I HAVE THAT CURETH 25 HEALTH" etc, etc.
Then you need a switch function that turns a switch on, say
Switch Operations[0001:DA TRESURE] ON
Then in the nextpage, you need in the sidebar beside the event script under Triggers:
activated by Switch[0001:DA TRESURE] ON
Then in the event script put a message that says:
"FUDGECICLES, DA TREUSRE CHEST OF DESTINY IS EMPTYETH" or whatever you had in mind.

Done.

there is also a way to fix the map tree bug.
Just let me find the link to the tut.
Or Google it, because the site is down.
Title:
Post by: elementalhero76 on August 02, 2006, 04:53:35 PM
now how do you keep the chest from repeating the item when you return to the map or area?

I made a couple of rare items and i dont want them to be gotten again.
Title:
Post by: MrMister on August 02, 2006, 05:05:14 PM
Quote
Originally posted by elementalhero76
now how do you keep the chest from repeating the item when you return to the map or area?

I made a couple of rare items and i dont want them to be gotten again.

Switches carry over to all maps.
If you go back, the switch will still be on.
Title:
Post by: elementalhero76 on August 02, 2006, 06:35:37 PM
thanks i made a chest already that contains the rtp wood shield :bend:

Um... is there any way to fix my locked doors?
they come back locked in a dungeon if i go back to that floor.