luistop12Dom Ene 20, 2013 6:58 pm
SUPER MODERADOR
bueno este script mas bien conocido como catepillar hace que los compañeros que se te unan te sigan en el mapa
screen
script:
creditos:Zeriab
screen
script:
- Código:
#==============================================================================
# Silver Wind's AutoParty
# Addon to Zeriab's Caterpillar Script
# Version: 1.1
# Author: silver wind (converted to RMVX by modern algebra)
# Date: December 6, 2009
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Description:
# * Now you don't have to create events for each party member, in every map.
# This script will create them automatically. You may create events for some
# of the actors, and let this system add the missing events.
# * If you ever need to know the id of the event used for a certain actor,
# use:
# event_id = $game_map.cat_event_id(actor_id)
#==============================================================================
#==============================================================================
# ** Game_Map
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Summary of Changes:
# aliased method - setup
# new methods - make_cat_events; new_cat_event; cat_event_id
#==============================================================================
class Game_Map
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# * Setup
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
alias silwer_wind_cat_game_map_setup setup
def setup(*args)
silwer_wind_cat_game_map_setup(*args)
make_cat_events
end
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# * Make Caterpillar Events
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
def make_cat_events
# if the caterpillar event doesn't exist, create it
all_actors = []
for i in 1...$data_actors.size
all_actors.push ($game_actors[i].id)
end
actor_events = []
for event in @events.values
actor_events.push (event.caterpillar_actor)if event.caterpillar_actor != nil
end
for actor_id in all_actors
# add a new event for this actor
new_cat_event(actor_id) if !actor_events.include? (actor_id)
end
end
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# * Create new Caterpillar Event
# actor_id : the ID of the actor to create event for
creditos:Zeriab