Problem with the fall through setting in events

● ARCHIVED · READ-ONLY
Started by Zino97 5 posts View original ↗
  1. Hi there
    so basicly i have a Event called butterfly it does nothing but looking nice and fly arround i set a moving route, above player, and
    the fall trough setting on so the butterfly won´t stuck colliding on other events or invisible ones so that they can fly through other npcs and stuff like this but there is one problem if i set fall through in the event it also flys through walls and other unpassable tiles
    so my question is if its possible to make an event on fall through but at the same time unable to pass unpassable tiles so that it just can pass other events.

    I tried do do it with region events have its trigger on event collision and evrey time the event collides on the unpassable tiles a switch is activated and turn off the fall through setting so that they cant pass events and unpassable tiles anymore and ones they dont collide anymore the switch is turning back off but thats a very ugly way to do it and turns evrey butterfly to be unable to pass through events and not only th one who hits the region event

    so if there is any script for doing it or any possible line i could edit in Scene_Map ore something like this please let me know
    and sorry for my bad english :)
  2. I have my own personal patch for this.
    Code:
    class Game_Character
      alias ed_passable? passable?
      def passable?(x,y,d)
        x2 = $game_map.round_x_with_direction(x, d)
        y2 = $game_map.round_y_with_direction(y, d)
        return true if debug_through? && self == $game_player
        return false if $game_map.terrain_tag(x2,y2) == 7 || 
                        $game_map.region_id(x2,y2) == 63
        ed_passable?(x,y,d)
      end
    end
    If you set either terrain tag to 7 or region id to 63, they will unable to move through tagged tiles.
  3. just a minor note - the setting is Through. Not Fall Through. It just allows an event (or the player, as you can apply it via a move route) to go through other events and tiles that are normally not passable.
  4. @TheoAllen Thanks man this is what i was searching for :D

    This thread can be closed now
  5. @Zino97 I don't know how you managed to access Mod messages, or maybe you copy/pasted from another post, but under no circumstances can you post that, or try and take Mod actions.

    If your query is fully resolved please Report your opening post and ask for it to be closed .

    And now for the real thing.
    [closed]IgnoreMe[/closed]