The RPG Maker Resource Kit

RMRK RPG Maker Creation => MV => MV Scripts Database => Topic started by: Glasses on January 12, 2016, 07:22:46 AM

Title: Quicksand
Post by: Glasses on January 12, 2016, 07:22:46 AM
Name: Quicksand
Version: 1.2
Author: Mr. Trivel
Created: 2015-11-27


What does it do?
Allows regions to sink players and events in. If player sinks in completely - game over screen or common event can be executed.


Screenshots:
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fpuu.sh%2FlAAmr%2Fc9a5b93917.png&hash=789c1d34c4054c560ef2a8b826b258975d972ea2)


How to use?
Set up tags Map Note.
Full setup looks like this:
<quicksand: [ID]>
SinkSpeed: [FLOAT]
SlowDown: [FLOAT]
MaxSlowDown: [FLOAT]
MaxSink: [INT]
SinkReached: [Common Event ID/0/-1]
Dash: [true/false]
CutOff: [true/false]
</quicksand>

What each of those do:
<quicksand: [iD]> - start of region data, [iD] is for which region will it apply
</quicksand> - end of region data
SinkSpeed: [FLOAT] - How fast characters sink in
SlowDown: [FLOAT] - How slower characters move per sink in
MaxSlowDown: [FLOAT] - Slowest characters can move E.g. 0.5
MaxSink: [INT] - Lowest possible sinking point (E.g. 30)
SinkReached: [Common Event ID/0/-1] - What happens after player sinks in. 0 - nothing, -1 - Game Over, >0 calls Common Event of that ID.
Dash: [true/false] - Is player allowed to Dash while in this region
CutOff: [true/false] - Cut off part of sprite depending on sink in?

Is it possible to set multiple regions on same map? Yes.

Settings I used for the screenshot:
[spoiler]
<quicksand: 5>
SinkSpeed: 0.1
SlowDown: 0.05
MaxSlowDown: 0.2
MaxSink: 10
SinkReached: 0
Dash: false
CutOff: true
</quicksand>
[/spoiler]

Can I make events unsinkable? Yes.
Just add <Unsinkable> to Event's note field.


Plugin: <Link: Github> (https://github.com/Trivel/RMMV/blob/master/MrTS_Quicksand.js)
How to download the Plugin. Click the link above, there will be a button named Raw, press Right Click -> Save As.


Terms of Use:
Don't remove the header or claim that you wrote this plugin.
Credit Mr. Trivel if using this plugin in your project.
Free for non-commercial projects.
For commercial use contact Mr. Trivel.
Title: Re: Quicksand
Post by: Glasses on January 31, 2016, 06:39:30 PM
Version 1.1
- Fixed values staying false when declared as true.
Title: Re: Quicksand
Post by: Glasses on February 11, 2016, 01:27:57 PM
Version 1.2
- Removed redundant tags. Added Common Event execution on sink in.