RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Time-bound effects

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 84
I need a script to make effects time bound ( such as an increase in player speed, that would stop working after 2 minutes.)

Any help much appreciated.

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Best Member2012 Best RPG Maker User (Scripting)2012 Favorite Staff Member2012 Most Mature MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
Well, if you are looking for an effect on the map, then all you need to do is use an event like this:

Set Move Route: Player
    Increase speed
Wait: 7200 Frames
Set Move Route: Player
    Decrease Speed

THere are 60 Frames per second, so 7200 frames = 2 minutes.

Anyway, that would work. If you wanted an item to have that effect then all you'd need to do is put it in a common event and have the item call the common event.

If you are looking for effects in battle, then making them have real-time limits doesn't really make sense, unless you are using a different battle script, in which case: link?

**
Rep: +0/-0Level 84
I've tried that method, the problem is when I tell it to wait, my character stands still and is incapablie of moving, I've even tried putting the event to parallell proccess and that didn't work either.

********
Hungry
Rep:
Level 96
Mawbeast
2013 Best ArtistParticipant - GIAW 11Secret Santa 2013 ParticipantFor the great victory in the Breakfast War.2012 Best Game Creator (Non-RM Programs)~Bronze - GIAW 9Project of the Month winner for December 2009Project of the Month winner for August 20082011 Best Game Creator (Non RM)Gold - GIAW Halloween
my guess is that the move route is executing repeatedly or something.

try this:

Common event 1 (trigger: Item)
Set Move Route: Player
    Increase speed
Switch-Y: on

Common event 2 (trigger: Switch-Y)
wait:7200 frames
Set Move Route: Player
    Decrease Speed
Switch-Y off

or something, idk
I'll see what I can do when I get home.

FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon

**
Rep: +0/-0Level 84
my guess is that the move route is executing repeatedly or something.

try this:

Common event 1 (trigger: Item)
Set Move Route: Player
    Increase speed
Switch-Y: on

Common event 2 (trigger: Switch-Y)
wait:7200 frames
Set Move Route: Player
    Decrease Speed
Switch-Y off

or something, idk
I'll see what I can do when I get home.

That didn't work either, I'm surprised I'm the only one who has tried to do this, seems like a common thing for rpgs.