Author Topic: A Party Member Dies When a Trailing Event Touches Water  (Read 1705 times)

0 Members and 1 Guest are viewing this topic.

Raxus

  • とてもかっこいいですよ!
  • Mod-Suspect
  • Tier 7
  • *
  • Posts: 10102
  • Gender: Male
  • Ignore the Hats! I don't have a problem!
    • Cupcakes So Sweet and Tasty~
  • Current Mood: playful playful
A Party Member Dies When a Trailing Event Touches Water
« on: March 14, 2010, 09:52:19 PM »
Okay. I am using Zeriab's Caterpillar system that uses events as the trailing party members. If one of the party members, which are represented as a trailing event, touch the water, I want them to disappear from the party and die. But the main character is not get damaged by stepping on water, nor are some of the other members of the party.

I'm pretty sure it can be done with variables and some common events, but I just don't know how. Thanks for taking the time to try to help me figure this out. ;)

Oh, if you don't understand, I'm sure this picture will help.
Spoiler: show
All screenshot are from :In Progress Name: "Crash". (This isn't the real Project's name) All of them are in progress shots. :seraismile:

Raxus

  • とてもかっこいいですよ!
  • Mod-Suspect
  • Tier 7
  • *
  • Posts: 10102
  • Gender: Male
  • Ignore the Hats! I don't have a problem!
    • Cupcakes So Sweet and Tasty~
  • Current Mood: playful playful
Re: A Party Member Dies When a Trailing Event Touches Water
« Reply #1 on: March 15, 2010, 10:18:51 PM »
Can I twenty-four-hour BUMP? Well, I just did.

Reives

  • Dr Platplat
  • Director
  • Tier 7
  • ****
  • Posts: 11331
  • Gender: Male
    • Freebird Games
  • Current Mood: happy happy
Re: A Party Member Dies When a Trailing Event Touches Water
« Reply #2 on: March 15, 2010, 11:25:26 PM »
Go to map editor in F9, to the Terrain Tag function and tag the water autotile as a #; let's say 9.

Have a parallel process on the map. Inside:

set [some variable~] to the killable-party-member-event (in Character) and select Terrain Tag.

Conditional branch: If [some variable~] == 9{
(do whatever horrible horrible things you need to to kill that party member)
}

wait 1 frame (to lessen the lag)



That should work. c: Gl.

Raxus

  • とてもかっこいいですよ!
  • Mod-Suspect
  • Tier 7
  • *
  • Posts: 10102
  • Gender: Male
  • Ignore the Hats! I don't have a problem!
    • Cupcakes So Sweet and Tasty~
  • Current Mood: playful playful
Re: A Party Member Dies When a Trailing Event Touches Water
« Reply #3 on: March 16, 2010, 05:10:19 PM »
Thank you so much, but I have one more question...
If another party member can't step on water also, I repeat the Event Code again. But if I use both, Zeriab's script messes up, and the only party member that can be on water, appears at the main character's feet.

Anyway to fix this...? :seraismile:
(By the way, I'll add you to the speical list.)