Super Simple Vehicle System - Enhanced
#44
BUMP
to version 9.2

First, lemme say *STUPID STUPID STOOOOPID* .    Laughing + Tongue sticking out

I set up the method called 'vehicle_passable?' to test events to see if you can pass through them or not.  However, I neglected to ensure a 'false' flag if all other conditions were ignored.   I needed a new line after the other conditions to return a 'false' value ... to block the vehicle.

The initial code initially read like this around line 543:

Code:
        if tile_id >= 0 and event != self_event and
           event.x == x and event.y == y and not event.through
          return false  if @passages[tile_id] & bit != 0
          return false  if @passages[tile_id] & 0x0f == 0x0f
          return true   if @priorities[tile_id] == 0
        end



It should now read thus:

Code:
        if tile_id >= 0 and event != self_event and
           event.x == x and event.y == y and not event.through
          return false  if @passages[tile_id] & bit != 0
          return false  if @passages[tile_id] & 0x0f == 0x0f
          return true   if @priorities[tile_id] == 0
          return false  unless $game_system.vehicle_character.nil?
        end

Yep, the last line returns a 'false' result saying the event cannot be walked through, but with an extra stipulation (if the vehicle exists... not nil).

The credits list now includes Sujabes467 for discovering and reporting the bug.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)

[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
Reply


Messages In This Thread
RE: Super Simple Vehicle System - Enhanced - by DerVVulfman - 02-25-2017, 04:54 AM
Super Simple Vehicle System - Enhanced - by Jeea - 12-20-2009, 04:03 PM
Super Simple Vehicle System - Enhanced - by Jeea - 12-21-2009, 02:44 AM
Super Simple Vehicle System - Enhanced - by Ace - 02-01-2010, 11:06 PM
Super Simple Vehicle System - Enhanced - by Ace - 02-01-2010, 11:42 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Super Skill Nerf XP kyonides 9 3,233 10-09-2025, 01:35 PM
Last Post: Ace_V
   Simple Dashing DerVVulfman 0 2,140 03-16-2025, 04:32 AM
Last Post: DerVVulfman
   Wachunga's Fog of War - Enhanced Edition DerVVulfman 0 1,868 11-17-2024, 04:14 AM
Last Post: DerVVulfman
   The Wanderers: The Customizable Encounters System DerVVulfman 0 2,657 08-24-2024, 07:12 PM
Last Post: DerVVulfman
   Enhanced Squad Movement DerVVulfman 5 11,265 02-24-2023, 04:40 PM
Last Post: DerVVulfman
   Zenith Tactical Battle System Plus (ZTBS+) DerVVulfman 0 5,637 05-10-2022, 10:42 PM
Last Post: DerVVulfman
   Text Scroll Script - Enhanced DerVVulfman 23 48,125 02-18-2021, 04:16 AM
Last Post: DerVVulfman
   Commercial System Package DerVVulfman 11 22,881 01-04-2020, 12:37 AM
Last Post: Pelip
   ACBS - Atoa Custom Battle System 3.2 Victor Sant 150 341,202 03-02-2019, 04:47 AM
Last Post: dragonprincess44
   DerVV's Simple Popup System DerVVulfman 4 16,864 10-08-2017, 04:53 PM
Last Post: DerVVulfman



Users browsing this thread: 2 Guest(s)