Jump to content


Photo

Water-walk state


  • Please log in to reply
11 replies to this topic

#1 Tsukihime

Tsukihime

    Advanced Member

  • Member
  • 7120 posts
  • LocationToronto
  • RM Skill - Coder

Awards Bar:

Users Awards

Posted 02 August 2012 - 12:45 PM

Water-walk State
-Tsukihime

This script allows you to "walk on water".
You designate a "water tile" using terrain tags, and then you can pass through it if your "water walk" state is on.

Usage

Database:

1. create a waterwalk state, and set the ID in the config.
2. choose a terrain tag, and set your water tiles in your tileset editor, then set the ID in the config

Two options

-Leader only. This means only the leader needs to have water-walk state in order for you to walk on water. Otherwise, everyone needs to have the state.

-Drown damage. This means you don't actually need water-walk state to walk on water, but anyone that doesn't have the state will take drown-damage. I mean there's nothing really stopping a non-swimmer from jumping in the water.

Download

Script: http://db.tt/RYrBHh48

Notes

This is a simple implementation.
For tile passability, it assumes if it's a water-tile, and you have water walk on, you can cross it.

Might need a more complex check though, but I can't think of any use cases.

Edited by Tsukihime, 02 August 2012 - 12:47 PM.

All of my work can be found on my website:

banner200x40.png

You can follow me on any of these platforms:

logo_facebook40x40.pnglogo_twitter40x40.pnglogo_youtube40x40.pnglogo_patreon40x40.pnglogo_instagram40x40.png

Go here for Bugs and Requests.
 
Want to become a beta tester for my plugins before they are released to the public?

#2 Exarkfr

Exarkfr

    Newbie

  • Member
  • 3 posts

Posted 03 August 2012 - 02:00 AM

Thank you for this.
Works fine.


Beware, though, the part from "=begin" (line 1) to "class Game_Player" (line 73) has been copy-pasted twice

#3 Tsukihime

Tsukihime

    Advanced Member

  • Member
  • 7120 posts
  • LocationToronto
  • RM Skill - Coder

Awards Bar:

Users Awards

Posted 03 August 2012 - 02:32 PM

LOL wow that's weird I wonder how that happened.
It's fixed now.

Edited by Tsukihime, 03 August 2012 - 02:33 PM.

All of my work can be found on my website:

banner200x40.png

You can follow me on any of these platforms:

logo_facebook40x40.pnglogo_twitter40x40.pnglogo_youtube40x40.pnglogo_patreon40x40.pnglogo_instagram40x40.png

Go here for Bugs and Requests.
 
Want to become a beta tester for my plugins before they are released to the public?

#4 Sievn

Sievn

    Advanced Member

  • Member
  • 112 posts

Posted 26 August 2012 - 08:11 AM

Is it possible to make specific events to walk on water?
would like fish to touch me but at the same time , those fishes could swim.

Edited by Sievn, 26 August 2012 - 08:27 AM.


#5 VegaKotes

VegaKotes

    We event what we must because we can~

  • Member
  • 295 posts
  • LocationRamming my head against a wall trying to figure out stuff that should be simple.
  • RM Skill - Artist

Posted 26 August 2012 - 09:11 AM

Is it possible to make specific events to walk on water?
would like fish to touch me but at the same time , those fishes could swim.

Should be able to give them the "Through" passability on their event pages, and by making them below the character it can make it seem like you're walking over top the fish.

I gotta say, on every post, that you script makers are freaking amazing.

Cuz wow, my brain just hurts whenever I look at coding. :I


#6 Sievn

Sievn

    Advanced Member

  • Member
  • 112 posts

Posted 26 August 2012 - 09:50 AM


Is it possible to make specific events to walk on water?
would like fish to touch me but at the same time , those fishes could swim.

Should be able to give them the "Through" passability on their event pages, and by making them below the character it can make it seem like you're walking over top the fish.


Well through technically allows the fishes to swim, but I would like them to be able to touch me :/
as if they were solid.

#7 Tsukihime

Tsukihime

    Advanced Member

  • Member
  • 7120 posts
  • LocationToronto
  • RM Skill - Coder

Awards Bar:

Users Awards

Posted 26 August 2012 - 12:58 PM

It wouldn't really be water-walk state anymore though, since events don't have states.
All of my work can be found on my website:

banner200x40.png

You can follow me on any of these platforms:

logo_facebook40x40.pnglogo_twitter40x40.pnglogo_youtube40x40.pnglogo_patreon40x40.pnglogo_instagram40x40.png

Go here for Bugs and Requests.
 
Want to become a beta tester for my plugins before they are released to the public?

#8 raisedfromthedead

raisedfromthedead

    Advanced Member

  • Member
  • 46 posts
  • LocationByron Ga, US
  • RM Skill - Musician

Posted 09 September 2012 - 08:16 PM

Is it possible to make the state permanent? never to be removed?

my goal is to have a player receive a boat as an inventory item, and at the same time the water walk state. and so when the player steps on the shallow water
tiles i can event it so the graphic changes to the boat. and when they do not have the state they cannot pass through. but it doesnt work for me if the state gets removed after recovery.

or maybe like a water walk inventory item.




- okay so i solved my problem through eventing but now without this state i am receiving damage when crossing a bridge over water

Edited by raisedfromthedead, 10 September 2012 - 12:50 PM.


#9 GmEric

GmEric

    Newbie

  • Member
  • 3 posts

Posted 09 September 2012 - 08:59 PM

Oh...I need this
but i can't check now:(

#10 Moo

Moo

    Moo

  • Member
  • 55 posts
  • RM Skill - Jack of All Trades

Posted 14 January 2014 - 05:52 PM

I can't get this to work. I could before, but not now. I made a new project. Made State 26. Turned the sea tile to Terrain Tag 1. Set an event to add state 26. Tried to walk. Couldn't. So I'm confused.



#11 WinglessRM

WinglessRM

    Member

  • Member
  • 13 posts

Posted 12 November 2014 - 05:15 PM

Is this script no longer working?

 

I'm having the same problem as the guy above.



#12 Dymdez

Dymdez

    Advanced Member

  • Member
  • 419 posts
  • RM Skill - Jack of All Trades

Posted 12 November 2014 - 06:09 PM

Likewise, HIME show us the way with your geniusness :D






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users