Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Veiw Range Script
#4
This is NOT a bump, but a revelation for users of RPGMaker VX.

A surprise occurred as a member of House Slashers, Lysop, discovered that most of the functions of View Range v3Delta actually worked with RPGMaker VX.

OMG, the script is cross-platform!!!! I gotta change this script's flag to BOTH!

For both RPGMaker XP and RPGMaker VX, it lets events find another event or the player within a certain range, and impassible tiles can block an event's view of its target if the 'block' parameter in the event viewing call is set to true.

IE:
$view_range.enemies_view(2, 12, 14, nil, true)
Lets event #2 see the player if it's within 12 tiles, but only if there are no impassible tiles blocking.
-and-
$view_range.enemies_view(2, 12, 14, nil)
Lets event #2 see the player if it's within 12 tiles regardless of impassible tiles



The only thing necessary for View Range to fully function with RPGMaker VX is a bit of editing so the Event Sound feature can function.

Normally, and with RPGMaker XP, it runs some statements within the Game_System class. These statements were removed from RPGMaker VX. But if you paste the below code into RPGMaker VX, you restore these methods that the Event Sound feature uses without any conflicts or side effects.

Code:
#==============================================================================
# ** Game_System
#------------------------------------------------------------------------------
#  This class handles system-related data. Also manages vehicles and BGM, etc.
# The instance of this class is referenced by $game_system.
#==============================================================================

class Game_System
  #--------------------------------------------------------------------------
  # * Play Background Sound
  #     bgs : background sound to be played
  #--------------------------------------------------------------------------
  def bgs_play(bgs)
    @playing_bgs = bgs
    if bgs != nil and bgs.name != ""
      Audio.bgs_play("Audio/BGS/" + bgs.name, bgs.volume, bgs.pitch)
    else
      Audio.bgs_stop
    end
    Graphics.frame_reset
  end
  #--------------------------------------------------------------------------
  # * Fade Out Background Sound
  #     time : fade-out time (in seconds)
  #--------------------------------------------------------------------------
  def bgs_fade(time)
    @playing_bgs = nil
    Audio.bgs_fade(time * 1000)
  end  
  #--------------------------------------------------------------------------
  # * Get Playing Background Sound
  #--------------------------------------------------------------------------
  def playing_bgs
    return @playing_bgs
  end  
end
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
Veiw Range Script - by Near Fantastica - 03-02-2008, 07:54 AM
RE: Veiw Range Script - by DerVVulfman - 02-21-2012, 04:53 AM
RE: Veiw Range Script - by DerVVulfman - 03-06-2012, 08:51 AM
RE: Veiw Range Script - by LilyKnight - 03-07-2012, 06:38 PM
RE: Veiw Range Script - by DerVVulfman - 03-31-2012, 04:08 AM
RE: Veiw Range Script - by DerVVulfman - 05-25-2012, 03:16 AM
RE: Veiw Range Script - by penguwin - 07-12-2013, 08:28 AM
RE: Veiw Range Script - by DerVVulfman - 07-13-2013, 04:16 AM
RE: Veiw Range Script - by deus69xxx - 08-12-2013, 11:53 PM
RE: Veiw Range Script - by MechanicalPen - 08-13-2013, 12:48 AM
RE: Veiw Range Script - by deus69xxx - 08-13-2013, 01:34 AM
RE: Veiw Range Script - by MechanicalPen - 08-13-2013, 01:53 AM
RE: Veiw Range Script - by deus69xxx - 08-13-2013, 07:01 AM
RE: Veiw Range Script - by MechanicalPen - 08-13-2013, 06:03 PM
RE: Veiw Range Script - by deus69xxx - 08-13-2013, 10:39 PM
RE: Veiw Range Script - by MechanicalPen - 08-13-2013, 10:55 PM
RE: Veiw Range Script - by deus69xxx - 08-14-2013, 03:29 AM
RE: Veiw Range Script - by MechanicalPen - 08-14-2013, 05:08 AM
RE: Veiw Range Script - by deus69xxx - 08-14-2013, 05:47 AM
RE: Veiw Range Script - by MechanicalPen - 08-14-2013, 06:16 PM
RE: Veiw Range Script - by deus69xxx - 08-16-2013, 02:05 AM
RE: Veiw Range Script - by MechanicalPen - 08-16-2013, 06:37 PM
RE: Veiw Range Script - by deus69xxx - 08-16-2013, 09:37 PM
RE: Veiw Range Script - by MechanicalPen - 08-16-2013, 10:15 PM
RE: Veiw Range Script - by deus69xxx - 08-17-2013, 07:19 AM
RE: Veiw Range Script - by MechanicalPen - 08-17-2013, 06:21 PM
RE: Veiw Range Script - by deus69xxx - 08-17-2013, 11:56 PM
Veiw Range Script - by DerVVulfman - 10-23-2009, 03:42 AM
Veiw Range Script - by samsonite789 - 11-02-2009, 07:25 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Text Scroll Script - Enhanced DerVVulfman 23 29,911 02-18-2021, 04:16 AM
Last Post: DerVVulfman
   Cursor Script Selwyn 7 13,212 09-28-2019, 02:13 PM
Last Post: DerVVulfman
   ACBS FIX SCRIPT #2: Advanced Cry Correction DerVVulfman 1 3,981 08-09-2019, 03:42 PM
Last Post: aeliath
   ACBS FIX SCRIPT #1: Victory Cries Patch DerVVulfman 1 3,955 08-08-2019, 02:53 PM
Last Post: aeliath
   Archived Script Listings DerVVulfman 9 33,896 01-08-2019, 04:27 AM
Last Post: DerVVulfman
   Spritesheet Generator Conversion Script DerVVulfman 0 3,641 11-21-2018, 04:48 AM
Last Post: DerVVulfman
   Neo Mode 7 Script by MGCaladtogel MGC 59 111,815 09-29-2017, 03:48 AM
Last Post: DerVVulfman
   Longer Script Calls LiTTleDRAgo 0 4,407 05-17-2017, 12:36 AM
Last Post: LiTTleDRAgo
   SLOLS: Snake Look-alike on Load Script Zeriab 3 10,230 05-14-2017, 06:25 PM
Last Post: LiTTleDRAgo
   Character Select Script Selwyn 3 9,567 03-07-2017, 04:14 AM
Last Post: JayRay



Users browsing this thread: