Author Topic: [XP] Heretic's Magic Compass  (Read 2975 times)

Offline Heretic86

  • Astral Trancist
  • *****
  • Posts: 773
  • LV: 33
    • View Profile
[XP] Heretic's Magic Compass
« on: November 10, 2014, 01:46:18 PM »
Heretic's Magic Compass [XP]
Authors: Heretic
Version: 1.2
Type: Misc Add-on
Key Term: Misc Add-on

Introduction

This script will allow you to create a Magic Compass that points at either a Map Coordinates or an Event.  Its called a Magic Compass because normal compasses only point North.  This one points at a location Magically!

Features

  • Very easy to Install and Use
  • Should have a very high degree of compatability
  • Can point the Compass at any set of X and Y coordinates
  • Can point the Compass at an Event, even while it is moving around
  • Compass won't point at an Event that is Erased or doesn't have an Active Page
  • Can point at a set of X and Y coordinates that are off the current Map
  • Doesn't glitch when you go to Menu, unlike other Compass Scripts or Event Solutions
  • Uses a Background and Needle Image and positions these things for you!
  • Configuration Options can be altered during Gameplay
  • Limburger Cheese is really stinky but very tasty
  • Does anyone read this stuff?
  • No dependancies on other Scripts

Screenshots

(click to show/hide)


Demo

http://downloads.chaos-project.com/heretic86/MagicCompass/MagicCompassDemo.exe

Script

Place above Main and below Scene_Debug.  Anywhere else should be fine in theory.  If there are any problems, try moving this script closer to Main as some scripts replace methods that are aliased in this script.
(click to show/hide)

Instructions

This script is quite easy to use.

Once installed somewhere above main, you can mess with the Options if you'd like.

To display the Compass, run a Script $game_system.enable_compass = true
To hide the Compass, run a Script $game_system.enable_compass = false

NOTE: I ran into some issues with the game hanging because of an Interpreter Bug.  You can use Zeriab's command_355 fix to take care of the issue, or put another line in your script that says "return true".  The command_355 fix is really the way to go.

Now that your Compass is shown, it needs a Target to point at!  Just three important script calls.
- set_compass_map_target(x, y)          # Use for a Map Location (offscreen is fine)
- set_compass_event_target(event_id) # Use to point the Compass at an existing Event
- clear_compass_target()                   # Clears Compass Targets

There are more commands and features available, described in documentation.


Compatibility

May not be compatible with any Looping Map Scripts at this time.

Credits and Thanks

  • I'd like to thank the Meteor that wiped out the Dinosaurs 65 million years ago.
  • Without that Meteor, we wouldn't be here today and I might be all scaley and have dry skin.

Author's Notes

The point of Scripts is to make things easy for others.  It is possible to create a Compass purely out of Events, however, Event solutions have drawbacks as well as they may require more work than is necessary to pull off.  Just try the Demo.  It's small and will show you why this script is superior.

I would like to make this script compatible with Looping / Repeating Map Scripts for XP.  There is one method in this script that I believe may be aliased or replaced by said Looping / Repeating Map scripts for compatability.  That can be discussed if you're interested in getting these scripts to play nice with each other.  Besides Looping Map Scripts, there should be no other conflicts with this script.
« Last Edit: May 10, 2015, 12:05:44 PM by Heretic86 »
Current Scripts:
Heretic's Moving Platforms

Current Demos:
Collection of Art and 100% Compatible Scripts

(Script Demos are all still available in the Collection link above.  I lost some individual demos due to a server crash.)

Offline Zexion

  • Addicted to LoL
  • Chaos User
  • ******
  • Posts: 1519
  • LV: 69
  • Gender: Male
  • My anaconda don't...jk it does
    • View Profile
Re: Heretic's Magic Compass [XP]
« Reply #1 on: November 10, 2014, 01:52:42 PM »
I read everything >:]

Offline Heretic86

  • Astral Trancist
  • *****
  • Posts: 773
  • LV: 33
    • View Profile
Re: Heretic's Magic Compass [XP]
« Reply #2 on: November 10, 2014, 02:15:40 PM »
I read everything >:]

He he he, yes, Limburger Cheese is a Feature!  :p
Current Scripts:
Heretic's Moving Platforms

Current Demos:
Collection of Art and 100% Compatible Scripts

(Script Demos are all still available in the Collection link above.  I lost some individual demos due to a server crash.)

Offline ForeverZer0

  • CP's Pedophile
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3255
  • LV: 298
  • Gender: Male
  • Remember you are unique, just like everyone else.
    • View Profile
Re: Heretic's Magic Compass [XP]
« Reply #3 on: November 10, 2014, 08:52:49 PM »
* Fixes tag in the title so it displays in the database *
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Offline Heretic86

  • Astral Trancist
  • *****
  • Posts: 773
  • LV: 33
    • View Profile
Re: [XP] Heretic's Magic Compass
« Reply #4 on: November 10, 2014, 10:18:44 PM »
Oop, [XP] goes on the left.  Got it!

So how about a Repeating / Looping Map Script or two?
Current Scripts:
Heretic's Moving Platforms

Current Demos:
Collection of Art and 100% Compatible Scripts

(Script Demos are all still available in the Collection link above.  I lost some individual demos due to a server crash.)