Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

2 Pages V   1 2 >  
Closed TopicStart new topic
> [Release] Teleport and Escape System - RPGMaker 2003 Style, I missed these in RPGMaker VX
storymasterq
post Mar 24 2008, 08:00 AM
Post #1


Level 7
Group Icon

Group: Member
Posts: 91
Type: Developer
RM Skill: Skilled




Title: Teleport and Escape System - RPGMaker 2003 Style
Current Version: 1.01
Author: StorymasterQ
Released Date: March 26, 2008

Information:
Reintroduces Teleport and Escape from RPGMaker2003, where you can set one coordinate for escape and several for teleport. When invoked, Escape will teleport the player to the Escape coordinate. Invoking Teleport will open a window with set teleport targets, to where players can choose to where they will be teleported.

Features:
- Can set/unset 1 Escape Point
- Can set/unset multiple Teleport Targets
- Can enable/disable/toggle/get enabled status, separate for Escape and Teleport
- Can get enabled status to be used from Conditional Branch, separate for Escape and Teleport

Version History
Version 1.01
- Added Teleport Window customization
- Added code to include the escape and teleport targets in save files

Version 1.00
- Initial release

Instructions:
Put each of the scripts on their own pages above Main. Detailed instructions are in the scripts, added here for convenience.
[Show/Hide] Teleport System
CODE
#===============================================================
===============
# StorymasterQ's Teleport System v1.0
#------------------------------------------------------------------------------
# Trying to copy RPGMaker2003's Teleport System as faithfully as possible
#------------------------------------------------------------------------------
# USAGE
#------------------------------------------------------------------------------
# To add a teleport target, from event call
# $skew_tele.add(map_id, x_coord, y_coord, facing, target_name, sw_id)
# where:
# map_id = ID of the target map
# x_coord = X coordinate on the target map
# y_coord = Y coordinate on the target map
# facing = (Optional) Character facing after teleport, omit to retain
# target_name = (Optional) Target text. If omitted, will use map name
# sw_id = (Optional) Switch ID to turn ON after teleport
#------------------------------------------------------------------------------
# To remove a teleport target, from event call
# $skew_tele.remove(map_id, x_coord, y_coord)
# where:
# map_id = ID of the target map
# x_coord = X coordinate on the target map
# y_coord = Y coordinate on the target map
#------------------------------------------------------------------------------
# To show the teleport target windows, from event call $skew_tele.show
# Upon selection of a teleport target, the Player will be teleported to the
# target immediately.
# If no teleport targets have been added, $skew_tele.show does nothing
#------------------------------------------------------------------------------
# To enable teleportation, call the $skew_tele.enable
# To disable, call $skew_tele.disable
# To switch between enabled and disabled, call $skew_tele.toggle
# Default is enabled. When disabled, $skew_tele.show does nothing
#------------------------------------------------------------------------------
# To set a switch on the current teleport ability, from event call
# $skew_tele.isenabled(switch_id)
# where:
# switch_id = Switch ID to be set TRUE if teleportation is enabled,
# FALSE otherwise
# To check the current teleport ability in a Conditional Branch, call
# $skew_tele.isenabled()
# from the Conditional Branch Script field
#==============================================================================


[Show/Hide] Escape System
CODE
#===============================================================
===============
# StorymasterQ's Escape System v1.0
#------------------------------------------------------------------------------
# Trying to copy RPGMaker2003's Escape System as faithfully as possible
#------------------------------------------------------------------------------
# USAGE
#------------------------------------------------------------------------------
# To set the escape target, from event, call
# $skew_escape.set(map_id, x_coord, y_coord, facing, switch) where:
# map_id = ID of the target map or area
# x_coord = X coordinate on the target map or area
# y_coord = Y coordinate on the target map or area
# facing = (Optional) Character facing after escape, omit to retain
# sw_id = (Optional) Switch ID to turn ON after escape
#------------------------------------------------------------------------------
# To unset the escape target, from event, call
# $skew_escape.unset
# If the escape target is not set, $skew_escape.unset does nothing
#------------------------------------------------------------------------------
# To go to the set escape target, from event, call
# $skew_escape.go
# If the escape target is not set or escaping is disabled, $skew_escape.go
# does nothing
#------------------------------------------------------------------------------
# To enable escaping, call $skew_escape.enable
# To disable escaping, call $skew_escape.disable
# To toggle escaping, call $skew_escape.toggle
# If escaping is disabled, $skew_escape.go does nothing. Default is enabled
#------------------------------------------------------------------------------
# To set a switch on the current escape ability, from event call
# $skew_escape.isenabled(switch_id)
# where:
# switch_id = (Optional) Switch ID to be set TRUE if escape is enabled,
# FALSE otherwise.
# To check the current escape ability in a Conditional Branch, call
# $skew_escape.isenabled()
# from the Conditional Branch Script field
#==============================================================================


Also, the teleport system has a few customizable settings
[Show/Hide] Teleport Window Settings
CODE
#--------------------------------------------------------------------------
# START SCRIPT CUSTOMIZATION
#--------------------------------------------------------------------------
# The width of the teleport window
TELEPORT_WINDOW_WIDTH = 272
# Number of targets shown on the teleport window
TELEPORT_WINDOW_SHOWN_TARGETS = 3
# Title of the teleport window
TELEPORT_WINDOW_TITLE = "Teleport"
# Teleport window horizontal offset
TELEPORT_WINDOW_X_OFFSET = 0
# Teleport window vertical offset
TELEPORT_WINDOW_Y_OFFSET = 0
# Dim map window when teleport window is showing
TELEPORT_WINDOW_DIM_MAP = false
#--------------------------------------------------------------------------
# END SCRIPT CUSTOMIZATION
#--------------------------------------------------------------------------


Script Link: Teleport System
Script Link: Escape System
Demo Link: Escape and Teleport Demo

Author's Notes:
Made a beginner scripter error when I forgot to put the code to include set targets in save files tongue.gif Won't happen again. Also, I decided to redo this post to make it more professional looking.

This post has been edited by storymasterq: Mar 26 2008, 09:20 AM


__________________________
Current Skills: Writing(Str) Lv. 4, Writing(Evt) Lv. 4, Scripting Lv. 3, Mapping Lv. 1, Spriting Lv. 0, Composing Lv. 0
Currently expanding: Scripting
[Show/Hide] My Personality

QUOTE (Arthur C. Clarke)
We have to abandon the idea that schooling is something restricted to youth. How can it be, in a world where half the things a man knows at 20 are no longer true at 40 - and half the things he knows at 40 hadn't been discovered when he was 20? (link)
Go to the top of the page
 
+Quote Post
   
Inigma
post Mar 24 2008, 11:43 AM
Post #2


Level 1
Group Icon

Group: Member
Posts: 12
Type: Event Designer
RM Skill: Skilled




Very very nice script, I like it, I like it a lot =], I may use it in my game (with ur creds and permission of course)


__________________________
Go to the top of the page
 
+Quote Post
   
storymasterq
post Mar 25 2008, 07:04 AM
Post #3


Level 7
Group Icon

Group: Member
Posts: 91
Type: Developer
RM Skill: Skilled




Oh, definitely! Free to use for any project, free or otherwise. A credit in the project is all I need. Any form of credit.

Even Republic Credits will do fine!

Cheers,
SQ


__________________________
Current Skills: Writing(Str) Lv. 4, Writing(Evt) Lv. 4, Scripting Lv. 3, Mapping Lv. 1, Spriting Lv. 0, Composing Lv. 0
Currently expanding: Scripting
[Show/Hide] My Personality

QUOTE (Arthur C. Clarke)
We have to abandon the idea that schooling is something restricted to youth. How can it be, in a world where half the things a man knows at 20 are no longer true at 40 - and half the things he knows at 40 hadn't been discovered when he was 20? (link)
Go to the top of the page
 
+Quote Post
   
Dann Woolf
post Jun 7 2008, 07:01 AM
Post #4


Level 9
Group Icon

Group: Revolutionary
Posts: 140
Type: None
RM Skill: Beginner




Sorry for bumping such an old topic but I have a problem.

When trying to use $skew_escape.disable ingame, I get an error message saying "NoMethodError occurred while running script. undefined method 'disable' for nil:NilClass"

How do I fix this?
Go to the top of the page
 
+Quote Post
   
Dann Woolf
post Jun 8 2008, 11:28 AM
Post #5


Level 9
Group Icon

Group: Revolutionary
Posts: 140
Type: None
RM Skill: Beginner




QUOTE (Dann Woolf @ Jun 7 2008, 04:15 PM) *
Sorry for bumping such an old topic but I have a problem.

When trying to use $skew_escape.disable ingame, I get an error message saying "NoMethodError occurred while running script. undefined method 'disable' for nil:NilClass"

How do I fix this?


So, how DO I fix this?

This post has been edited by Dann Woolf: Jun 8 2008, 12:09 PM
Go to the top of the page
 
+Quote Post
   
Lockheart
post Jun 8 2008, 02:27 PM
Post #6


Level 9
Group Icon

Group: Revolutionary
Posts: 136
Type: Developer
RM Skill: Advanced




There seems to be a small problem with this script, once you've found a spot, its there forever, thus if you start a new game you have access to all spots. This HOWEVER doesn't happen if you shut the game down completely and open it up again to play a new game.

Just pointing this out.
Go to the top of the page
 
+Quote Post
   
Guest_From_Ariel_*
post Jun 9 2008, 01:38 AM
Post #7





Guests





So basically this lets you escape from a dungeon using escape.....

Also I can teleport from city to city that you've been to previously?


if lockhearts right this script would be perfect so long as it can be modified
like upon entering a city for the first time can you make an event call to add that city to the list?

if so how?
Go to the top of the page
 
+Quote Post
   
Dann Woolf
post Jun 9 2008, 02:56 AM
Post #8


Level 9
Group Icon

Group: Revolutionary
Posts: 140
Type: None
RM Skill: Beginner




Y'know, I still have a problem...
Go to the top of the page
 
+Quote Post
   
storymasterq
post Jun 9 2008, 08:22 AM
Post #9


Level 7
Group Icon

Group: Member
Posts: 91
Type: Developer
RM Skill: Skilled




Oh, geez, sorry guys, I haven't looked at it yet. Um, I promised I'll get right into it as soon as I have time. Work's been piling up lately and with another (yes, that's another one) team member resigning, stuff will fall on me more than it used to.

If anyone would like to cut in and investigate the problems, I'll be glad to share credit for the script. But for the moment, I'm booked.

Cheers,
SQ


__________________________
Current Skills: Writing(Str) Lv. 4, Writing(Evt) Lv. 4, Scripting Lv. 3, Mapping Lv. 1, Spriting Lv. 0, Composing Lv. 0
Currently expanding: Scripting
[Show/Hide] My Personality

QUOTE (Arthur C. Clarke)
We have to abandon the idea that schooling is something restricted to youth. How can it be, in a world where half the things a man knows at 20 are no longer true at 40 - and half the things he knows at 40 hadn't been discovered when he was 20? (link)
Go to the top of the page
 
+Quote Post
   
Dann Woolf
post Jun 12 2008, 11:25 AM
Post #10


Level 9
Group Icon

Group: Revolutionary
Posts: 140
Type: None
RM Skill: Beginner




Bumped.
Go to the top of the page
 
+Quote Post
   
Dann Woolf
post Jun 17 2008, 03:30 AM
Post #11


Level 9
Group Icon

Group: Revolutionary
Posts: 140
Type: None
RM Skill: Beginner




Bumped.
Go to the top of the page
 
+Quote Post
   
Dann Woolf
post Jun 22 2008, 08:47 AM
Post #12


Level 9
Group Icon

Group: Revolutionary
Posts: 140
Type: None
RM Skill: Beginner




QUOTE (Dann Woolf @ Jun 7 2008, 04:15 PM) *
Sorry for bumping such an old topic but I have a problem.

When trying to use $skew_escape.disable ingame, I get an error message saying "NoMethodError occurred while running script. undefined method 'disable' for nil:NilClass"

How do I fix this?

Go to the top of the page
 
+Quote Post
   
Mech-Ah
post Jun 23 2008, 07:36 AM
Post #13


Level 2
Group Icon

Group: Member
Posts: 25
Type: None
RM Skill: Undisclosed




ERROR!
"
Scrip 'Skew's Teleport System' line 318: EOFError occurred.
End of file reached.
"
Line 318:
$skew_tele = Marshal.load(file)

What's the problem?
Go to the top of the page
 
+Quote Post
   
Dann Woolf
post Jun 24 2008, 11:19 AM
Post #14


Level 9
Group Icon

Group: Revolutionary
Posts: 140
Type: None
RM Skill: Beginner




Me and Mech-Ah need help, y'know.
Go to the top of the page
 
+Quote Post
   
Dann Woolf
post Jun 26 2008, 02:48 AM
Post #15


Level 9
Group Icon

Group: Revolutionary
Posts: 140
Type: None
RM Skill: Beginner




I think it's time to Beat Up Mary Poppins again.
Go to the top of the page
 
+Quote Post
   
YanXie
post Jun 26 2008, 03:03 AM
Post #16


Because Tomorrow Will Surely Come...
Group Icon

Group: Revolutionary
Posts: 1,137
Type: None
RM Skill: Skilled




@ Dann Woolf : read :

QUOTE
Oh, geez, sorry guys, I haven't looked at it yet. Um, I promised I'll get right into it as soon as I have time. Work's been piling up lately and with another (yes, that's another one) team member resigning, stuff will fall on me more than it used to.

If anyone would like to cut in and investigate the problems, I'll be glad to share credit for the script. But for the moment, I'm booked.

Cheers,
SQ


If he got time,he'll answer, if you continue bumping this thread, I'm gonna close this topic & you will be warned. Right now you're just being selfish.


__________________________
how make teleport to graveyard then your character die?

AWAY FOR VACATION.
NOT HERE UNTIL JAN/FEB 2010 -w-/
Go to the top of the page
 
+Quote Post
   
Dann Woolf
post Jun 26 2008, 06:00 AM
Post #17


Level 9
Group Icon

Group: Revolutionary
Posts: 140
Type: None
RM Skill: Beginner




QUOTE (puppeto4 @ Jun 26 2008, 12:17 PM) *
@ Dann Woolf : read :

QUOTE
Oh, geez, sorry guys, I haven't looked at it yet. Um, I promised I'll get right into it as soon as I have time. Work's been piling up lately and with another (yes, that's another one) team member resigning, stuff will fall on me more than it used to.

If anyone would like to cut in and investigate the problems, I'll be glad to share credit for the script. But for the moment, I'm booked.

Cheers,
SQ


If he got time,he'll answer, if you continue bumping this thread, I'm gonna close this topic & you will be warned. Right now you're just being selfish.


First of all: storymasterq may not have much time, but neither do I. I'd like to get the help I need ASAP, whether it's from storymasterq or someone else.

Until I GET that help I'll be making sure this stays on the front page.

Second: I'm selfish because I need help? What the fuck, man?
Go to the top of the page
 
+Quote Post
   
demosthenes2k8
post Jun 26 2008, 06:36 AM
Post #18


Level 4
Group Icon

Group: Member
Posts: 56
Type: Event Designer
RM Skill: Skilled




Maybe "selfish" is a bad way to put it.
How about...you're being a complete idiot on .org AND R3, and you're bumping things excessively.

[/oftopic]

Is this in XP, too?
Go to the top of the page
 
+Quote Post
   
Dann Woolf
post Jun 26 2008, 06:46 AM
Post #19


Level 9
Group Icon

Group: Revolutionary
Posts: 140
Type: None
RM Skill: Beginner




I thought I was allowed to bump it every couple of days.

And if I didn't bump it it would fall off the front page, severely hurting my chances of actually getting the help I've been waiting for.
Go to the top of the page
 
+Quote Post
   
Dann Woolf
post Jun 29 2008, 03:26 AM
Post #20


Level 9
Group Icon

Group: Revolutionary
Posts: 140
Type: None
RM Skill: Beginner




QUOTE (Dann Woolf @ Jun 7 2008, 04:15 PM) *
Sorry for bumping such an old topic but I have a problem.

When trying to use $skew_escape.disable ingame, I get an error message saying "NoMethodError occurred while running script. undefined method 'disable' for nil:NilClass"

How do I fix this?


I will keep bumping until this problem has been solved, either by storymasterq himself or someone else.
Go to the top of the page
 
+Quote Post
   

2 Pages V   1 2 >
Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 24th May 2013 - 07:06 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker