!!

Welcome to Save Point!

Formerly known as RMVXP, Save-Point is a game creational forum that aids users in creating games using software like RPG Maker or Game Maker. Support is also available today for members and members can also upload and download resources and scripts to use in their games. If you are new or experienced we welcome you to register.

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[XP/VX/VXA Script] Veiw Range Script
Near Fantastica
Unregistered

 
Thanks:
Given thank(s) in post(s)

Save Points: 0sp
Awards:

Gender:
Favorite Maker:
Post: #1
Veiw Range Script

Veiw Range Script
Version: 1 & 2
by Jaime 'Near Fantastica' Webster
Not DerVVulfman
and Version: 3 Eta
Edit by DerVVulfman

Features
  • Lets events see the player and interact with it in different ways depending on how close the player is
  • To add this script make a script call it View_Range and add the following into it then call it accordingly with a script call
  • Can handle BGS effects

By the poster
I didn't create the original scripts, and as of now the links that Near Fantastica put up are down (and he can't get to them) and his RMXP system is down. Given that he posted the original (though broken) demo links here, there should be no problem to post the script.

I tinkered with the system and made a version 3 (still tinkering :) ) that combines the best features of both... and a little more.

Script
View Range v1
View Range v2

And
View Range v3 Eta


Instructions

For version 1

For version 2


For version 3



Take Care,
Near


Enjoy,
Mike aka DerVVulfman


* - * - * - * - * - *

Version 3 Eta
I included built in instructions that allow you to use local self-switches and global RMXP switches, as well as being able to control the volume when using the event_sound call. Also, the system's 'view' calls now includes an optional switch so impassable tiles can 'block' the view/detection system.
03-02-2008 07:54 AM
Quote this message in a reply
DerVVulfman Offline
Administrator

Posts: 4,246
Joined: May 2009
View My Download Submissions
Thanks: 23
Given 59 thank(s) in 146 post(s)

Save Points: 14,767sp
Items: (View All Items)
Awards:

Gender: Male
Favorite Maker: RPG Maker XP
Post: #2
Veiw Range Script

BUMP
Updated the version 3 edit to Version 3 Delta

The revision fixes a problem whereby enemies/events that can have their view 'blocked' may not properly detect the player coming into view.
10-23-2009 03:42 AM
Find all posts by this user Quote this message in a reply
samsonite789 Offline
Junior Member

**
Posts: 3
Joined: Oct 2009
View My Download Submissions
Thanks: 0
Given 0 thank(s) in 0 post(s)

Save Points: 130sp
Awards:

Gender:
Favorite Maker:
Post: #3
Veiw Range Script

I have spent hours upon hours trying to figure out how to fix that exact problem you fixed with the delta version. You have saved my life and sanity.

THANK YOU!!!!!!!
11-02-2009 07:25 AM
Find all posts by this user Quote this message in a reply
DerVVulfman Offline
Administrator

Posts: 4,246
Joined: May 2009
View My Download Submissions
Thanks: 23
Given 59 thank(s) in 146 post(s)

Save Points: 14,767sp
Items: (View All Items)
Awards:

Gender: Male
Favorite Maker: RPG Maker XP
Post: #4
RE: Veiw Range Script

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...)
Personal standpoint...
"I believe in giving people options, not 'forcing' only one script or system upon everyone. Adaption is key, not specialization. Overspecialize, and you breed in weakness."


02-21-2012 04:53 AM
Find all posts by this user Quote this message in a reply
DerVVulfman Offline
Administrator

Posts: 4,246
Joined: May 2009
View My Download Submissions
Thanks: 23
Given 59 thank(s) in 146 post(s)

Save Points: 14,767sp
Items: (View All Items)
Awards:

Gender: Male
Favorite Maker: RPG Maker XP
Post: #5
RE: Veiw Range Script

Ignore all that, and upgrade to View Range v3 Zeta.

Version Epsilon had code in it for both RPGMaker XP and RPGMaker VX dual compatability and fixed a directional error for VX. But Zeta got a working auto-detect for RPGMaker VX that worked.

Up is down, left is right and sideways is straight ahead.
- Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)
Personal standpoint...
"I believe in giving people options, not 'forcing' only one script or system upon everyone. Adaption is key, not specialization. Overspecialize, and you breed in weakness."


03-06-2012 08:51 AM
Find all posts by this user Quote this message in a reply
FoxDemonSoavi Offline
Psycho Lesbo Robo

**
Posts: 26
Joined: Dec 2010
View My Download Submissions
Thanks: 0
Given 0 thank(s) in 3 post(s)

Save Points: 3,566sp
Awards:

Gender: Female
Favorite Maker: None/N/A
Post: #6
RE: Veiw Range Script

I am having issues opening the document in open office. IT tries to interpret it as an ascii file and shows gibberish when I open it. However, if I open it in editpad pro, it works fine.

I do wonder if its possible to make types of view. (cone, all around, straight line) and to check for events with a specific comment in them (hostile to certain types of events and afraid of others)
03-07-2012 06:38 PM
Find all posts by this user Quote this message in a reply
DerVVulfman Offline
Administrator

Posts: 4,246
Joined: May 2009
View My Download Submissions
Thanks: 23
Given 59 thank(s) in 146 post(s)

Save Points: 14,767sp
Items: (View All Items)
Awards:

Gender: Male
Favorite Maker: RPG Maker XP
Post: #7
RE: Veiw Range Script

Meh... Now it's ETA. Yeah, I'm going through the Greek Alphabet.

Autodetect stank. It didn't help if you made a script in RMXP that used a class that VX had and was detecting, so I said the heck with it and made it an on/off switch.

Up is down, left is right and sideways is straight ahead.
- Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)
Personal standpoint...
"I believe in giving people options, not 'forcing' only one script or system upon everyone. Adaption is key, not specialization. Overspecialize, and you breed in weakness."


03-31-2012 04:08 AM
Find all posts by this user Quote this message in a reply
DerVVulfman Offline
Administrator

Posts: 4,246
Joined: May 2009
View My Download Submissions
Thanks: 23
Given 59 thank(s) in 146 post(s)

Save Points: 14,767sp
Items: (View All Items)
Awards:

Gender: Male
Favorite Maker: RPG Maker XP
Post: #8
RE: Veiw Range Script

This bump is thanks to PK8. While working on a request, he discovered that View Range Eta also works with RPGMaker VXAce.

Up is down, left is right and sideways is straight ahead.
- Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)
Personal standpoint...
"I believe in giving people options, not 'forcing' only one script or system upon everyone. Adaption is key, not specialization. Overspecialize, and you breed in weakness."


05-25-2012 03:16 AM
Find all posts by this user Quote this message in a reply
Post Reply 


User(s) browsing this thread:
1 Guest(s)


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
   Multi-Slot Equipment Script Guillaume777 2 1,603 Yesterday 04:09 AM
Last Post: DerVVulfman
   Battle Report Script Window style mageone 4 1,840 03-20-2013 10:51 PM
Last Post: KasperKalamity
   Z9 Project Protection Script Narzew 5 761 10-02-2012 03:18 PM
Last Post: Narzew
   Weather Script ccoa 26 4,073 08-30-2012 03:31 AM
Last Post: DerVVulfman
   Caterpillar Script ccoa 2 1,175 08-29-2012 04:48 AM
Last Post: DerVVulfman
   Neo Mode 7 Script by MGCaladtogel MGC 58 14,681 08-04-2012 03:59 PM
Last Post: Zohran
   Data Backup Script 2.2 PK8 7 2,101 06-12-2012 03:15 PM
Last Post: PK8
   Cursor Script Selwyn 3 954 04-09-2012 10:22 PM
Last Post: buddysievers
   Hearts of Iron 3 Menu Script Tigurus Fay 1 1,100 03-28-2012 10:49 PM
Last Post: Tigurus Fay
   Ending Credits Script Emily_Konichi 1 1,053 07-01-2011 10:40 AM
Last Post: Pherione



 Quick Theme: