The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Tutorials and Eventing => Topic started by: 1wdc on September 28, 2008, 11:56:42 AM

Title: [Resolved] How do I make a potion that has a duration effect
Post by: 1wdc on September 28, 2008, 11:56:42 AM
Okay here is my example:

I want to make a potion to increase a player's walking speed temporarily, however I can't figure out how to get it to stop after 2 minutes.

Help would be much appreciated :)
Title: Re: How do I make a potion that has a duration effect
Post by: Holkeye on September 28, 2008, 06:18:38 PM
Post in the right fucking place, and maybe people won't ignore you.
Title: Re: How do I make a potion that has a duration effect
Post by: 1wdc on September 28, 2008, 06:20:31 PM
Be more friendly, and maybe you'd keep some members.
Title: Re: How do I make a potion that has a duration effect
Post by: Holkeye on September 28, 2008, 06:21:31 PM
I guess its a good thing that I don't give a shit if you leave then, huh?
Title: Re: How do I make a potion that has a duration effect
Post by: 1wdc on September 28, 2008, 06:25:03 PM
Calm down, the internet isn't serious business. Cut down on the crack and kindly tell people where to put their topics, especially if they're newer members and it was their first post.

No wonder this topic goes 23 hours without a new post.
Title: Re: How do I make a potion that has a duration effect
Post by: modern algebra on September 28, 2008, 07:24:24 PM
23 hours? It's only been seven hours since you posted this topic

Anyway, I moved it to Tutorials. However, this will likely require a script, so post a topic in Script Request. Follow the stickied rules or else Falcon will get angry at you.
Title: Re: How do I make a potion that has a duration effect
Post by: GilgameshRO on October 01, 2008, 06:57:14 AM
This doesn't require a script at all. You make the potion call a common event.
...wraghsasgs let me just make a demo or something. I'll post it here whenever I get around to it.
Title: Re: How do I make a potion that has a duration effect
Post by: modern algebra on October 01, 2008, 11:44:45 AM
OH lol, sorry about that. I misunderstood the request: I shouldn't have redirected you to Scripts. Gilga is right.
Title: Re: How do I make a potion that has a duration effect
Post by: codemeister1990the2nd on October 04, 2008, 06:51:50 AM
just set a timer for 2 minutes, increase the player walk speed, and voila
its all in events, gilga is right, use a common event
player walk speed is in set move route
(it could probably be more detailed in what I just said, but that's the basics)
Title: Re: How do I make a potion that has a duration effect
Post by: modern algebra on October 05, 2008, 12:42:53 AM
I wouldn't use a timer, I'd use a wait command. Reason being only one timer can be active at a time, so you'd have to not use the timer for anything else or else disable use of the potion when another timer is active.
Title: Re: How do I make a potion that has a duration effect
Post by: GilgameshRO on October 10, 2008, 05:58:43 AM
I was going to make an event for this real quick, but everything ends up being more complex in RMVX. The just of it is you need a looping wait with a variable, or one really really long wait, as well as a seperate event to change your movement speed with a conditional branch related to the variable, since any event altering your movement pattern shuts down your manual movement.
Title: Re: How do I make a potion that has a duration effect
Post by: codemeister1990 on October 10, 2008, 04:24:34 PM
a wait command might work, if made correctly, this is not an easy thing to create   :(
Title: Re: How do I make a potion that has a duration effect
Post by: Kokowam on October 11, 2008, 02:53:27 AM
20 x number of seconds = waiting # of frames, from what I remember. 1wdc, you just suck at RPG Making. Learn what each event thing does and THEN come to us for help. You don't even need to learn them. Just read.
Title: Re: How do I make a potion that has a duration effect
Post by: modern algebra on October 11, 2008, 04:04:32 PM
There's no call for that mooface. I'm sure I could find some requests from you where the same advice could be given.
Title: Re: How do I make a potion that has a duration effect
Post by: 1wdc on October 12, 2008, 06:49:06 AM
20 x number of seconds = waiting # of frames, from what I remember. 1wdc, you just suck at RPG Making. Learn what each event thing does and THEN come to us for help. You don't even need to learn them. Just read.
I do know what each event does, tried several different common events, lurked the forum, and have found nothing.
Title: Re: How do I make a potion that has a duration effect
Post by: codemeister1990 on October 12, 2008, 04:03:20 PM
There's no call for that mooface. I'm sure I could find some requests from you where the same advice could be given.

 :mex: VIVA LA HITLER XD
Title: Re: How do I make a potion that has a duration effect
Post by: GilgameshRO on October 14, 2008, 05:54:38 PM
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg381.imageshack.us%2Fimg381%2F6929%2Ffucknb1.png&hash=af2b5b47888dfe2a32148f693f4540da7616112c)
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg393.imageshack.us%2Fimg393%2F2029%2Fasszs7.png&hash=b503394ab8e644a80580caeb6e1c77bf8c4197d7)

Jesus, that took all of two minutes and 30 seconds to make. The two minutes were to test it.
Have the speed potion call that first common event there.
The only issues are that it doesn't pause the timer during event scenes, and scenes that modify the character's speed will conflict with it, and I really don't feel like setting that up for you. It's not too hard, figure it out yourself.
These does, however, make it so that the timer resets if you use a second potion.
Title: Re: How do I make a potion that has a duration effect
Post by: 1wdc on October 26, 2008, 09:49:59 PM
That worked, thank you.

Sorry for the slow response, Oblivion + Spore can get addicting.
Title: Re: [Resolved] How do I make a potion that has a duration effect
Post by: Kokowam on October 27, 2008, 12:25:50 AM
Lol Spore gets old, quick. It is so boring once you reach creature stage.

There's no call for that mooface. I'm sure I could find some requests from you where the same advice could be given.
I'm actually going to try and find some of my requests, lol.

EDIT: I searched "request" from posts by me. Majority are talking about people and helping with requests. The majority of the remainder are non-RM questions, lol. The few that are are graphic requests that are obviously aren't on RMRK or that one help with scripting because it required using an obviously complex side-scrolling battle system. Lol.