RPG Socrate
Bonjour et Bienvenue sur RPG Socrate !!!




Si tu es déjà inscrit, connecte toi ci-dessous.

Sinon, inscrit-toi vite (en cliquant sur "s'enregistrer").

Nous serons ravis de t'accueillir parmi nous !!!




L'homme sans visage

Rejoignez le forum, c’est rapide et facile

RPG Socrate
Bonjour et Bienvenue sur RPG Socrate !!!




Si tu es déjà inscrit, connecte toi ci-dessous.

Sinon, inscrit-toi vite (en cliquant sur "s'enregistrer").

Nous serons ravis de t'accueillir parmi nous !!!




L'homme sans visage
RPG Socrate
Vous souhaitez réagir à ce message ? Créez un compte en quelques clics ou connectez-vous pour continuer.
Connexion

Récupérer mon mot de passe

Meilleurs posteurs
Yosura (252)
Grande map I_vote_lcapGrande map I_voting_barGrande map I_vote_rcap 
L'homme sans visage (225)
Grande map I_vote_lcapGrande map I_voting_barGrande map I_vote_rcap 
The Best of Maker (196)
Grande map I_vote_lcapGrande map I_voting_barGrande map I_vote_rcap 
okaya (103)
Grande map I_vote_lcapGrande map I_voting_barGrande map I_vote_rcap 
kilari (26)
Grande map I_vote_lcapGrande map I_voting_barGrande map I_vote_rcap 
apocalypse (8)
Grande map I_vote_lcapGrande map I_voting_barGrande map I_vote_rcap 
Shaymin (6)
Grande map I_vote_lcapGrande map I_voting_barGrande map I_vote_rcap 
EM!R'Ald (4)
Grande map I_vote_lcapGrande map I_voting_barGrande map I_vote_rcap 
yojoqc (3)
Grande map I_vote_lcapGrande map I_voting_barGrande map I_vote_rcap 
fandbz13 (3)
Grande map I_vote_lcapGrande map I_voting_barGrande map I_vote_rcap 

Horloge Socratienne
Voter pour nôtre site avec un écart de 2h entre chaque vote. MERCI

TOP GAMEMAKING
L'Hymne de RPG Socrate

Découvrez Tryo!
Nombre de Visiteurs
Derniers sujets
» L'avenir de RPG Socrate
Grande map Icon_minitime1Mar 19 Juin 2012 - 19:07 par apocalypse

» parodie des jeux pokemon
Grande map Icon_minitime1Ven 8 Juin 2012 - 18:56 par apocalypse

» Rpg maker xp
Grande map Icon_minitime1Jeu 14 Juil 2011 - 4:56 par kaplio0777

» Présentation de kaplio0777
Grande map Icon_minitime1Jeu 14 Juil 2011 - 4:43 par kaplio0777

» me presenté
Grande map Icon_minitime1Ven 17 Juin 2011 - 17:12 par apocalypse

» créer un jeu de rôle
Grande map Icon_minitime1Ven 17 Juin 2011 - 17:09 par apocalypse

» se presenter
Grande map Icon_minitime1Mer 19 Jan 2011 - 21:54 par apocalypse

» Serment du Juge actuel
Grande map Icon_minitime1Dim 26 Déc 2010 - 15:52 par Yosura

» Le Réseau Social - Parodie de la BA de The Social Network
Grande map Icon_minitime1Dim 26 Déc 2010 - 15:42 par Yosura

[Partenaire] Feuille d'RPG

Mer 28 Jan 2009 - 0:42 par L\'homme sans visage

Un site crée part kilari spécialisé dans les scénarios.

Feuille d'RPG

Commentaires: 0

[Partenaire] RPG Alliance

Lun 26 Jan 2009 - 20:45 par L\'homme sans visage

Voici le site que nous avons créer en partenariat avec The Best of Maker :

RPG Alliance

Commentaires: 0

[Partenaire] Super RPG

Sam 24 Jan 2009 - 0:38 par L\'homme sans visage

Voici le site de nôtre ami The Best of Maker.
Il parle de RPG maker (vous l'aurez sûrement devinez Laughing) :

Super RPG

Commentaires: 0

Sondage

Quel est la version de RPG maker que vous préférez ?

Grande map I_vote_lcap75%Grande map I_vote_rcap 75% [ 18 ]
Grande map I_vote_lcap0%Grande map I_vote_rcap 0% [ 0 ]
Grande map I_vote_lcap4%Grande map I_vote_rcap 4% [ 1 ]
Grande map I_vote_lcap4%Grande map I_vote_rcap 4% [ 1 ]
Grande map I_vote_lcap17%Grande map I_vote_rcap 17% [ 4 ]

Total des votes : 24

Lutter contre le SPAM

Grande map

2 participants

Aller en bas

Normal Grande map

Message par okaya Ven 27 Fév 2009 - 15:47

Ouvrez l'éditeur de script ( F11 ) et faites un nouveau script au dessus de "Main", nommez le "Big Map" et collez le code ci-dessous

Code:
#==============================================================================
# ** EJ Big Map
#------------------------------------------------------------------------------
# EJ
# Version 1
# 2005 April 9
#==============================================================================

#--------------------------------------------------------------------------
# * SDK Log Script
#--------------------------------------------------------------------------

SDK.log('EJ Big Map', 'EJ', 1, '2005-04-09')
#--------------------------------------------------------------------------
# * Begin SDK Enable Test
#--------------------------------------------------------------------------

if SDK.state('EJ Big Map') == true
 
  class Game_Temp
    attr_accessor :map_changed
    attr_accessor :player_transferring2
  end
 
  class Game_Map
    alias ej_bmap_g_map_setup_load setup_load
    alias ej_bmap_g_map_setup_events setup_events
    #------------------------------------------------------------------------
    attr_accessor :big_map
    attr_accessor :a_width
    attr_accessor :a_height
    attr_accessor :a_tl
    attr_accessor :a_tc
    attr_accessor :a_tr
    attr_accessor :a_cl
    attr_accessor :a_cr
    attr_accessor :a_bl
    attr_accessor :a_bc
    attr_accessor :a_br
    #------------------------------------------------------------------------
    BIG_MAP_ID = 1
    #------------------------------------------------------------------------
    def setup_load
     
      # load the map
      ej_bmap_g_map_setup_load

      @a_width = @map.width
      @a_height = @map.height
     
      # get the area settings

      b_name = name.split
      if b_name[0] != 'BM'
        @big_map = false
        return
      end
     
      if @big_map != true
        $game_temp.map_changed = true
      end
     
      @big_map = true
     
      @a_tl = b_name[1].to_i
      @a_tc = b_name[2].to_i
      @a_tr = b_name[3].to_i

      @a_cl = b_name[4].to_i
      @a_cr = b_name[5].to_i
     
      @a_bl = b_name[6].to_i
      @a_bc = b_name[7].to_i
      @a_br = b_name[8].to_i
     
      # load the empty map
      @map = load_data(sprintf('Data/Map%03d.rxdata', BIG_MAP_ID))
     
      #top left map
      map_b = load_data(sprintf('Data/Map%03d.rxdata', @a_tl))
     
      for z in 0..2
        for y in 0..@a_height - 1
          for x in 0..@a_width - 1
            @map.data[x, y, z] = map_b.data[x, y, z]
          end
        end
      end

      #top map
      map_b = load_data(sprintf('Data/Map%03d.rxdata', @a_tc))
      for z in 0..2
        for y in 0..@a_height - 1
          for x in 0..@a_width - 1
            @map.data[x + @a_width, y, z] = map_b.data[x, y, z]
          end
        end
      end
     
      #top right map
      map_b = load_data(sprintf('Data/Map%03d.rxdata', @a_tr))
      for z in 0..2
        for y in 0..@a_height - 1
          for x in 0..@a_width - 1
            @map.data[x + (@a_width * 2), y, z] = map_b.data[x, y, z]
          end
        end
      end

      #center left map
      map_b = load_data(sprintf('Data/Map%03d.rxdata', @a_cl))
      for z in 0..2
        for y in 0..@a_height - 1
          for x in 0..@a_width - 1
            @map.data[x, y + @a_height, z] = map_b.data[x, y, z]
          end
        end
      end

      #center map
      map_b = load_data(sprintf('Data/Map%03d.rxdata', @map_id))
      for z in 0..2
        for y in 0..@a_height - 1
          for x in 0..@a_width - 1
            @map.data[x + @a_width, y + @a_height, z] = map_b.data[x, y, z]
          end
        end
      end
     
      #events
      @map.events = map_b.events
      @map.encounter_list = map_b.encounter_list
      @map.encounter_step = map_b.encounter_step
     
      #center right map
      map_b = load_data(sprintf('Data/Map%03d.rxdata', @a_cr))
      for z in 0..2
        for y in 0..@a_height - 1
          for x in 0..@a_width - 1
            @map.data[x + (@a_width * 2), y + @a_height, z] = map_b.data[x, y, z]
          end
        end
      end

      #bottom left map
      map_b = load_data(sprintf('Data/Map%03d.rxdata', @a_bl))
      for z in 0..2
        for y in 0..@a_height - 1
          for x in 0..@a_width - 1
            @map.data[x, y + (@a_height * 2), z] = map_b.data[x, y, z]
          end
        end
      end

      #bottom map
      map_b = load_data(sprintf('Data/Map%03d.rxdata', @a_bc))
      for z in 0..2
        for y in 0..@a_height - 1
          for x in 0..@a_width - 1
            @map.data[x + @a_width, y+ (@a_height * 2), z] = map_b.data[x, y, z]
          end
        end
      end
     
      #bottom right map
      map_b = load_data(sprintf('Data/Map%03d.rxdata', @a_br))
      for z in 0..2
        for y in 0..@a_height - 1
          for x in 0..@a_width - 1
            @map.data[x + (@a_width * 2), y +(@a_height * 2), z] = map_b.data[x, y, z]
          end
        end
      end
     
    end
    #----------------------------------------------------------------------
    def setup_events
      ej_bmap_g_map_setup_events
     
      for event in @events.values
        event.moveto(event.x + @a_width, event.y + @a_height)
      end
    end
    #----------------------------------------------------------------------
    def name
      return $map_infos[@map_id]
    end
  end

  class Game_Player < Game_Character
    alias ej_bmap_g_player_update update
    alias ej_bmap_g_player_moveto moveto
    #------------------------------------------------------------------------
    def update
      if $game_map.big_map == true
        unless moving?
          if @x == $game_map.a_width and @direction == 4
            #left
            unless $game_temp.player_transferring and
            $game_temp.message_window_showing and
            $game_temp.transition_processing
              $game_temp.player_transferring = true
              $game_temp.player_transferring2 = true
              $game_temp.player_new_map_id = $game_map.a_cl
              $game_temp.player_new_x = @x + $game_map.a_width
              $game_temp.player_new_y = @y
              $game_temp.transition_processing = false
            end
          elsif @y == $game_map.a_height and @direction == 8
            #up
            unless $game_temp.player_transferring and
            $game_temp.message_window_showing and
            $game_temp.transition_processing
              $game_temp.player_transferring = true
              $game_temp.player_transferring2 = true
              $game_temp.player_new_map_id = $game_map.a_tc 
              $game_temp.player_new_x = @x
              $game_temp.player_new_y = @y + $game_map.a_height
              $game_temp.transition_processing = false
            end
          elsif @x == ($game_map.a_width*2)-1 and @direction == 6
            #right
            unless $game_temp.player_transferring and
            $game_temp.message_window_showing and
            $game_temp.transition_processing
              $game_temp.player_transferring = true
              $game_temp.player_transferring2 = true
              $game_temp.player_new_map_id = $game_map.a_cr
              $game_temp.player_new_x = @x - $game_map.a_width
              $game_temp.player_new_y = @y
              $game_temp.transition_processing = false
            end
          elsif @y == ($game_map.a_height*2)-1 and @direction == 2
            #down
            unless $game_temp.player_transferring and
            $game_temp.message_window_showing and
            $game_temp.transition_processing
              $game_temp.player_transferring = true
              $game_temp.player_transferring2 = true
              $game_temp.player_new_map_id = $game_map.a_bc
              $game_temp.player_new_x = @x
              $game_temp.player_new_y = @y - $game_map.a_height
              $game_temp.transition_processing = false
            end
          end
        end
      end
      ej_bmap_g_player_update
    end
    #----------------------------------------------------------------------
    def moveto(x,y)
      if $game_temp.map_changed == true
        ej_bmap_g_player_moveto(x + $game_map.a_width, y + $game_map.a_height)
        $game_temp.map_changed = false
      else
        ej_bmap_g_player_moveto(x, y)
      end
    end
  end
 
  class Scene_Map
    alias ej_bmap_s_map_transfer_player transfer_player
    #------------------------------------------------------------------------
    def transfer_player
      if $game_temp.player_transferring2
        $game_temp.player_transferring = false
        $game_temp.player_transferring2 = false
       
        $game_map.setup($game_temp.player_new_map_id)
       
        $game_player.moveto($game_temp.player_new_x, $game_temp.player_new_y)
       
        #$game_map.update
       
        @spriteset.dispose
        @spriteset = Spriteset_Map.new       
       
        $game_map.autoplay
       
      else
        ej_bmap_s_map_transfer_player
      end
    end
  end
 
  class Scene_Title
    alias ej_bmap_s_title_main main
    #------------------------------------------------------------------------
    def main
      $map_infos = load_data('Data/MapInfos.rxdata')
      for key in $map_infos.keys
        $map_infos[key] = $map_infos[key].name
      end
      ej_bmap_s_title_main
    end
  end
#--------------------------------------------------------------------------
# * End SDK Enable Test
#--------------------------------------------------------------------------
 
end # End SDK Check
okaya
okaya
Secrétaire Général
Secrétaire Général

Masculin
Nombre de messages : 103
Age : 26
Localisation : BOULOGNE-BILLANCOURT
Avertissement :
Grande map Left_bar_bleue0 / 1000 / 100Grande map Right_bar_bleue

Points : 7589
Date d'inscription : 09/01/2009

Revenir en haut Aller en bas

Normal Re: Grande map

Message par L\'homme sans visage Ven 27 Fév 2009 - 17:56

Euh, juste une question...

A quoi set-il ? Very Happy
L\'homme sans visage
L\'homme sans visage
Empereur Suprême
Empereur Suprême

Masculin
Nombre de messages : 225
Localisation : Mais c'est quoi ct'e question !
Avertissement :
Grande map Left_bar_bleue0 / 1000 / 100Grande map Right_bar_bleue

Points : 12831
Date d'inscription : 26/11/2008

https://rpgsocrate.superforum.fr

Revenir en haut Aller en bas

Revenir en haut


 
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum