Charas-Project

Game Creation => Requests => RPG Maker Programming => Topic started by: Slayer004_69 on July 25, 2005, 05:35:03 AM

Title: Someone know how to do that?
Post by: Slayer004_69 on July 25, 2005, 05:35:03 AM
ok hm, im not sure all of you will understand, but i wish so... ok , my prob is, in my game, im doing a "meditation room" and, the more you stay without moving or pressing any keys, you'll learn some skills, example, you enter the chamber , it asks : Do you wanna meditate, Yes/No, if u say yes, the character moves to the center of a carpet, and then the graphic change into the "meditation character", and then...you just need to wait huh...we will say, 5mins without doing anything, if u succeed, it could say like : congratulations u won the Fire Skill, something like that... so...i just need to know how to do the "timer" event... that will alow my hero to get his skill if he doesnt move for a certain time...
Title:
Post by: Sephiroth rocks on July 25, 2005, 01:34:21 PM
First make 4 events around the spot where the hero's meditating and make the trigger condition "Touched by hero" and make them turn a switch on. Then start a 5 min timer in the meditation event and make a parellel process event and set the trigger to be "Timer is 0min and 0sec". Then make a conditional branch in the event and make it trigger if the switch the surrounding events turn on is turned off. Then inside the conditional branch learn the hero the skill(s) and turn the switch off.
Title:
Post by: Slayer004_69 on July 25, 2005, 05:53:45 PM
hmm...i tried what you said...but i dont seem to work...or maybe im doing it not correctly :S...could u try to explain it again plz ?
Title:
Post by: Sephiroth rocks on July 25, 2005, 08:39:41 PM
My mistake. The conditional branch should trigger if the switch is turned on not off. Other than that it should work.
Title:
Post by: Slayer004_69 on July 25, 2005, 08:58:43 PM
hm...doesnt seem again to work... :S... i tried a lot of diffrent things, but maybe i just not understand well how u explained it to me...( im french lol )...so....if u could re-explain it easiest plz, it would be great
Title:
Post by: Sephiroth rocks on July 25, 2005, 09:09:09 PM
Well...

Meditation event:
<>Message: Do you wish to meditate?
<>Choise: yes/no
<>yes handler:
<>timer operations: Set timer 5mins 0secs.
<>switch opertions: turn switch Meditate on
<>no handler:
<>

Events surrounding the meditation area (touched by hero):
Trigger condition: switch Meditate is on
<>switch operation: turn switch Interrupt Meditation on

Parellel process event:
Trigger condition: Timer is 0 mins and 0 secs
Trigger condition 2: Switch Meditate is on
<>conditional branch: switch Interrupt Meditation is off
<>change skill: Add [skill] to hero
else:
<>message: You wasn't concentrated enough!
Title:
Post by: Slayer004_69 on July 25, 2005, 09:35:43 PM
i did exactly what u wrote...and it doesnt work...*-)
Title:
Post by: Slayer004_69 on July 27, 2005, 02:32:00 AM
do anyone got other ideas ? ( sorry for double posting )
Title:
Post by: WarxePB on July 27, 2005, 02:45:42 AM
Create 2 Parallel Process events. Insert the following code into the events:

Event 1:

<>Key Input: Var[0721]
<>Branch if Var[0721: MEDITATE] is 1 or more
|<>Branch if Var[0720:MINUTES] is 5
||<>You learned (spell)!
||<>
|<>Else Handler
||<>You couldn't concentrate enough.
||<>
|<>End
|<>
<>End
<>

Event 2:
<>Wait: 0.1 sec
<>Variable Operation: Var[0718: M-SECONDS] +, 1
<>Branch if Var[0718: M-SECONDS] is 10
|<>Variable Operation: Var[0718: M-SECONDS] Set, 0
|<>Variable Operation: Var[0719: SECONDS] +, 1
|<>Branch if Var[0719: SECONDS] is 60
||<>Variable Operation: Var[0720: MINUTES] +, 1
||<>
|<>End
|<>
<>End
<>

I don't see why Sephy's won't work for you, but try this anyways and see if it works.
Title:
Post by: Slayer004_69 on July 27, 2005, 02:56:33 AM
maybe we dont use the same RPG maker *-)..but hm, i got a question....what ya mean by : key input  ^^'' sory for that... cause i dont think we use the same...and the terms are diferent maybe
Title:
Post by: WarxePB on July 27, 2005, 02:57:55 AM
Key Input = Password. And Branch = Fork. Sorry about that.
Title:
Post by: Slayer004_69 on July 27, 2005, 03:14:39 AM
ok, i did all u said, but hm, ( i didnt test it ) hm...will it be on a specific spot? or it will be wherever my hero is in the map?
Title:
Post by: WarxePB on July 27, 2005, 03:16:22 AM
Wherever he is. It might be a good idea to make both events activated by a switch, and then turn the switch on when you're staritng to meditate.
Title:
Post by: Slayer004_69 on July 27, 2005, 03:17:10 AM
yea...yea... :), good idea, ill do that, now i will test it ;)
Title:
Post by: Slayer004_69 on July 27, 2005, 03:30:13 AM
just a question...and u said : 1 or more, did u mean : "above" or "bigger" ?

hmm well...it didnt work ( with above )... :(....so i dont think it will work with "bigger"...
Title:
Post by: WarxePB on July 27, 2005, 04:16:11 AM
It still doesn't work? It must be your version of RM2K3, then.
Title:
Post by: Slayer004_69 on July 27, 2005, 04:17:28 AM
or maybe i just do something wrong...:S, hm...if anyone got other ideas..tell me plz :P
Title:
Post by: Slayer004_69 on July 27, 2005, 05:05:38 AM
OMG ! WTF !!! OHHH YEAAAAHHH NOW IT WORKS !!! THX TO SEPHIROTH ROCKS ! AND WARXE ! thx a bunch for helping me guys ! thx again !