Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 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
   Enhanced Squad Movement DerVVulfman 5 5,361 02-24-2023, 04:40 PM
Last Post: DerVVulfman
   Zenith Tactical Battle System Plus (ZTBS+) DerVVulfman 0 2,037 05-10-2022, 10:42 PM
Last Post: DerVVulfman
   Text Scroll Script - Enhanced DerVVulfman 23 30,018 02-18-2021, 04:16 AM
Last Post: DerVVulfman
   Commercial System Package DerVVulfman 11 12,110 01-04-2020, 12:37 AM
Last Post: Pelip
   ACBS - Atoa Custom Battle System 3.2 Victor Sant 150 224,924 03-02-2019, 04:47 AM
Last Post: dragonprincess44
   DerVV's Simple Popup System DerVVulfman 4 10,969 10-08-2017, 04:53 PM
Last Post: DerVVulfman
   Super Simple MCISendString DerVVulfman 0 4,385 03-09-2017, 04:52 AM
Last Post: DerVVulfman
   Melly-Mel's Calendar System DerVVulfman 23 38,824 12-02-2016, 04:31 AM
Last Post: DerVVulfman
   The Magey Mage's Spellbook System DerVVulfman 3 9,059 10-31-2016, 01:45 AM
Last Post: Noctis
   CTB - A Final Fantasy X-like Battle System, Version 3.2 Charlie Fleed 572 646,644 05-19-2016, 05:38 PM
Last Post: Starmage



Users browsing this thread: