Charas-Project
Game Creation => Requests => RPG Maker Programming => Topic started 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...
-
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.
-
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 ?
-
My mistake. The conditional branch should trigger if the switch is turned on not off. Other than that it should work.
-
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
-
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!
-
i did exactly what u wrote...and it doesnt work...*-)
-
do anyone got other ideas ? ( sorry for double posting )
-
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.
-
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
-
Key Input = Password. And Branch = Fork. Sorry about that.
-
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?
-
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.
-
yea...yea... :), good idea, ill do that, now i will test it ;)
-
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"...
-
It still doesn't work? It must be your version of RM2K3, then.
-
or maybe i just do something wrong...:S, hm...if anyone got other ideas..tell me plz :P
-
OMG ! WTF !!! OHHH YEAAAAHHH NOW IT WORKS !!! THX TO SEPHIROTH ROCKS ! AND WARXE ! thx a bunch for helping me guys ! thx again !