Chaos Project

RPG Maker => RPG Maker Scripts => RMXP Script Database => Topic started by: edwardthefma on September 16, 2009, 06:33:22 pm

Title: [XP] Town-scrolls for RMX-OS
Post by: edwardthefma on September 16, 2009, 06:33:22 pm
Town-scrolls for RMX-OS
Authors: edwardthefma, Blizzard
Version: 1.0
Type: RMX-OS Plugin
Key Term: RMX-OS Plugin



Introduction

This script allows you type in the command town-scroll and you will be tellaported to the town you have it set for.

This script is to be distributed under the same terms and conditions like the script it was created for: RMX-OS.


Features




Screenshots

N/A for this sort of script.


Demo

N/A


Script
Just make a new script above main and paste this code into it.
Spoiler: ShowHide

#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
# town scroll for RMX-OS by edwardthefma & Blizzard
# Version: 1.0
# Type: RMX-OS Add-on
# Date: 9.16.2009
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
#
#  This script is to be distributed under the same terms and conditions like
#  the script it was created for: RMX-OS.
#
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
#
# Information: ok you need to change the numbers to define
# where you want the town-scroll to go the command name can be any thing you want it to be

#   
#
#    if message =~ /\A\/command name \Z/
# if $game_party.item_number(item id) == 1
#     $game_temp.player_transferring = true
#    $game_temp.player_new_map_id = mapid
#     $game_temp.player_new_x = map x
#     $game_temp.player_new_y = map y
#     $game_temp.player_new_direction = 0
#     $scene = Scene_Map.new
#     $game_map.autoplay
#     $game_party.gain_item( item id ,-1)
#
# If you find any bugs, please report them here:
# http://forum.chaos-project.com
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=


class RMXOS::Network
 
  #============================================================================
  # module RMXOS::Docs
  #----------------------------------------------------------------------------
  # Contains data for in-game information how to use RMX-OS. This should not
  # be edited but only extended in case of adding new functionality (i.e.
  # additional chat commands).
  #============================================================================
 
  module RMXOS::Docs
 
  PARAMETERS['town-scroll'] = 'none'
  DESCRIPTIONS['town-scroll'] = 'takes you to a town.'
 
end
#==============================================================================
# the chat command for towns-scroll
#==============================================================================
alias check_normal_commands_command_save check_normal_commands
  def check_normal_commands(message)
    if message =~ /\A\/town-scroll\Z/
      if $game_party.item_number(34) == 1
      $game_temp.player_transferring = true
     $game_temp.player_new_map_id = 10
     $game_temp.player_new_x = 10
     $game_temp.player_new_y = 9
     $game_temp.player_new_direction = 0
     $scene = Scene_Map.new
     $game_map.autoplay
     $game_party.gain_item(34,-1)
        return true
    end
      return true
    end
    return check_normal_commands_command_save(message)
  end
 
end



Instructions

In the script


Compatibility

Requires RMX-OS to work.


Credits and Thanks




Author's Notes
none

If you find any bugs, please report them here:
http://forum.chaos-project.com
8) 8) 8) 8) 8)
Title: Re: [XP] Town-scrolls for RMX-OS
Post by: Blizzard on September 17, 2009, 02:15:43 am
*fixes your post a bit*
*moves*
*levels up*

<3