Sylaer Posted January 30, 2008 Share Posted January 30, 2008 Minimappa DescrizioneQuesta è una demo per imparare ad usare la minimappa lo script è all'interno di questa.In realtà questa minimappa non l'ho fatta io l'ho presa da una battaglia in tempo reale piuttosto bella, ma non mi ricordo dove l'ho trovata. AutoreNon lo so, modificato da meAllegatiLa demo a questo indirizzo.Demo Minimappa Istruzioni per l'usoSono all'interno della demo Se ci sono problemi postete le vostre domande qui. http://www.rpg2s.net/awards/bestscripter1.jpgSe avete bisogno di modifiche, correzioni o creazioni da zero di script RGSS, allora visitate la mia bottega.La bottega di Sylaer Link to comment Share on other sites More sharing options...
Theoras Posted January 31, 2008 Share Posted January 31, 2008 E' bellissima, veramente, Sylaer!! Scaricatela, oltre ad essere una demo molto chiara è anche molto spiritosa. Complimenti Sylaer, sia per la demo che per lo Script. http://img396.imageshack.us/img396/3194/citta10mv9.gif Volete due giochi Completi e Seri fatti con RPG MAKER? Cliccate su... www.raldon.altervista.org Problemi con Raldon? Segnalali su... www.raldon.forumfree.net Partecipante al Rpg2s.net Game Contest 2008/2009 http://www.rpg2s.net/contest/GameContest0809/gc0809-bannerino.jpg Gioco in Sviluppo: Raldon Posizioni raggiunte nei Contest http://rpg2s.net/gif/SCContest1Oct.gifhttp://rpg2s.net/gif/SCContest1Oct.gifhttp://rpg2s.net/gif/SCContest3Oct.gifhttp://img76.imageshack.us/img76/1260/destroy3gr3.pnghttp://img233.imageshack.us/img233/7186/comics2hd8.gifhttp://www.rpg2s.net/gif/GC_bestoftool3.gif http://www.rpg2s.net/gif/GC_premio3.gifhttp://www.rpg2s.net/gif/GC_premio3.gifhttp://www.rpg2s.net/gif/GC_premio1.gifhttp://www.rpg2s.net/gif/GC_premio2.gifhttp://www.rpg2s.net/gif/GC_grafica3.gifhttp://www.rpg2s.net/gif/GC_programmazione3.gifhttp://www.rpg2s.net/gif/GC_programmazione1.gifhttp://www.rpg2s.net/awards/furordipopolo/Popolo3K.gifhttp://www.rpg2s.net/awards/furordipopolo/Popolo2XP.gifhttp://www.rpg2s.net/awards/furordipopolo/Popolo2BEST.gif http://www.rpg2s.net/awards/bestuser2.jpghttp://www.rpg2s.net/awards/bestmaker2.jpghttp://www.rpg2s.net/awards/mostpresent1.jpghttp://www.rpg2s.net/awards/mostproductive1.jpg Link to comment Share on other sites More sharing options...
Alexotter Posted January 31, 2008 Share Posted January 31, 2008 (edited) Stupendo questo script! la demo mi va benissimo, solo che quando provo ad aprire il progetto per vedere come è fatto mi dice incompatibilità di versione...come posso risolvere? Edited January 31, 2008 by Alexotter Link to comment Share on other sites More sharing options...
marigno Posted January 31, 2008 Share Posted January 31, 2008 Devi modificare il contenuto del file "Game.ini". Link to comment Share on other sites More sharing options...
Theoras Posted January 31, 2008 Share Posted January 31, 2008 Ti spiego: Esistono 2 versioni di Rpg Maker xp, la 1.01 e la 1.02.Sylaer utilizza la 1.02 i cui progetti non possono essere aperti con la 1.01. Te lo dico con sicurezza perché io ho 2 computer, uno su cui c'è la 02 uno con la 01.Il primo mi apre la demo senza problemi, l'altro mi fa il tuo stesso errore, Alexotter. Spero di essere stato chiaro ^-^ :Ok: http://img396.imageshack.us/img396/3194/citta10mv9.gif Volete due giochi Completi e Seri fatti con RPG MAKER? Cliccate su... www.raldon.altervista.org Problemi con Raldon? Segnalali su... www.raldon.forumfree.net Partecipante al Rpg2s.net Game Contest 2008/2009 http://www.rpg2s.net/contest/GameContest0809/gc0809-bannerino.jpg Gioco in Sviluppo: Raldon Posizioni raggiunte nei Contest http://rpg2s.net/gif/SCContest1Oct.gifhttp://rpg2s.net/gif/SCContest1Oct.gifhttp://rpg2s.net/gif/SCContest3Oct.gifhttp://img76.imageshack.us/img76/1260/destroy3gr3.pnghttp://img233.imageshack.us/img233/7186/comics2hd8.gifhttp://www.rpg2s.net/gif/GC_bestoftool3.gif http://www.rpg2s.net/gif/GC_premio3.gifhttp://www.rpg2s.net/gif/GC_premio3.gifhttp://www.rpg2s.net/gif/GC_premio1.gifhttp://www.rpg2s.net/gif/GC_premio2.gifhttp://www.rpg2s.net/gif/GC_grafica3.gifhttp://www.rpg2s.net/gif/GC_programmazione3.gifhttp://www.rpg2s.net/gif/GC_programmazione1.gifhttp://www.rpg2s.net/awards/furordipopolo/Popolo3K.gifhttp://www.rpg2s.net/awards/furordipopolo/Popolo2XP.gifhttp://www.rpg2s.net/awards/furordipopolo/Popolo2BEST.gif http://www.rpg2s.net/awards/bestuser2.jpghttp://www.rpg2s.net/awards/bestmaker2.jpghttp://www.rpg2s.net/awards/mostpresent1.jpghttp://www.rpg2s.net/awards/mostproductive1.jpg Link to comment Share on other sites More sharing options...
Alexotter Posted January 31, 2008 Share Posted January 31, 2008 Chiaro e tondo grazie!http://img160.imageshack.us/img160/8920/okcy2.gif Link to comment Share on other sites More sharing options...
Skimodex Posted November 1, 2008 Share Posted November 1, 2008 a me non me lo fa neanche aprire...mi da un errore "Impossibile trovare RGSS102E.dll."...che faccio? http://www.GameFun.it Link to comment Share on other sites More sharing options...
Narutofan95 Posted November 2, 2008 Share Posted November 2, 2008 allora... credo che tu debba aprire il Game.ini, e dove è scritto Library=RGSS102E.dll devi scrivere invece RGSS100J.dll (credo) e dunque salvare... prova e vedi se va. http://i46.tinypic.com/295vf6e.png merutochan Bandcamp | Twitter | Tumblr Link to comment Share on other sites More sharing options...
Delta Posted November 9, 2008 Share Posted November 9, 2008 Bellissimo script, complimenti Sto provando ad usarlo però vorrei che le zone oscurate (tipo l'erba alta) siano cmq visibili sulla minimappa, cosa devo fare? Link to comment Share on other sites More sharing options...
giver Posted November 10, 2008 Share Posted November 10, 2008 Bellissima la demo . . . X°°D L'autore è Selwyn (selwyn@rmxp.ch), comunque . . . (il BS era di Mr.Mo, invece) SCRIPT RGSS (RPG Maker XP) VINTAGE LIBRARY [2018+]http://www.rpg2s.net/forum/index.php/topic/21892-vintagevisualsrewrite-enhanced-revised-victory-screen-v-35-da-autori-vari-a-giver/ http://www.rpg2s.net/forum/index.php/topic/21868-eventing-utility-simple-last-battle-events-fix-v-30-by-giver/ http://www.rpg2s.net/forum/index.php/topic/21853-vintagerewrite-constance-menu-per-4-personaggi-da-team-constance-a-giver/ http://www.rpg2s.net/forum/index.php/topic/22126-vintagedoveroso-necroedit-dummy-title-22u-update-per-crearlo-ad-eventi-su-mappa-by-giver/ http://www.rpg2s.net/forum/index.php/topic/22127-vintagevisuals-tale-chapters-save-system-20-by-giver/ Breaking (in ogni senso) News: "Treno deraglia per via del seno di Sakurai Aoi . . ." - Info nello spoiler !! http://afantasymachine.altervista.org/_altervista_ht/NOOOOOOOOOilMIOtreninooooo_500.gifNon riesco a smettere di essere affascinato da immagini come questa . . .http://anime.vl-vostok.ru/art/photos2011/17/78049800/wall_VladAnime_WWA_1885-1680x1050.jpgAlcuni wallpapers che faccio ruotare sul mio vecchio PC . . .http://afantasymachine.altervista.org/_altervista_ht/gits_window.jpghttp://afantasymachine.altervista.org/_altervista_ht/madoka_group01.jpghttp://afantasymachine.altervista.org/_altervista_ht/arisu_picipici_01.jpghttp://afantasymachine.altervista.org/_altervista_ht/phantom_wp01_einzwei.jpg La parte più spassosa della mia vita è quando gli altri cercano di spiegarmi i miei pensieri . . . BBCode TestingTypeface & Size Link to comment Share on other sites More sharing options...
Darkshiva Posted November 10, 2008 Share Posted November 10, 2008 Grande demo http://team.ffonline.it/imgpersonaggio/seifer_it.jpg http://team.ffonline.it/imgpersonaggio/kimahri_it.jpg E tu in che personaggio ti identifichi?http://img145.imageshack.us/img145/4716/squallni0.gifhttp://img262.imageshack.us/img262/6382/gohanssj2ky4.gif Link to comment Share on other sites More sharing options...
cecco4 Posted December 10, 2008 Share Posted December 10, 2008 nella demo la mappa viene visualizzata correttamente, ma se copio lo script nella mappa appare solo la posizione dell'omino, ma non c'è lo scenario Link to comment Share on other sites More sharing options...
cecco4 Posted December 10, 2008 Share Posted December 10, 2008 nella demo la mappa viene visualizzata correttamente, ma se copio lo script nella mappa appare solo la posizione dell'omino, ma non c'è lo scenario in allegato l'immagine di come è la minimappap.s.: non dire che non si vede perchè non c'è disegnato niente nella mappa, ( nella mappa ci son 3 alberi)mappa.bmp Link to comment Share on other sites More sharing options...
Sylaer Posted December 10, 2008 Author Share Posted December 10, 2008 (edited) nella demo la mappa viene visualizzata correttamente, ma se copio lo script nella mappa appare solo la posizione dell'omino, ma non c'è lo scenario in allegato l'immagine di come è la minimappap.s.: non dire che non si vede perchè non c'è disegnato niente nella mappa, ( nella mappa ci son 3 alberi)Ci sono delle immagini nella cartella pictures della demo, che servono per la minimappa sei sicuro di averle trasferite tutte sul tuo progetto? Edited December 10, 2008 by Sylaer http://www.rpg2s.net/awards/bestscripter1.jpgSe avete bisogno di modifiche, correzioni o creazioni da zero di script RGSS, allora visitate la mia bottega.La bottega di Sylaer Link to comment Share on other sites More sharing options...
cecco4 Posted December 10, 2008 Share Posted December 10, 2008 Ci sono delle immagini nella cartella pictures della demo, che servono per la minimappa sei sicuro di averle trasferite tutte sul tuo progetto?si sono sicuro Link to comment Share on other sites More sharing options...
Sylaer Posted December 11, 2008 Author Share Posted December 11, 2008 Le hai importate con rpg maker oppure copiate direttamente sulla cartella pictures del tuo progetto? http://www.rpg2s.net/awards/bestscripter1.jpgSe avete bisogno di modifiche, correzioni o creazioni da zero di script RGSS, allora visitate la mia bottega.La bottega di Sylaer Link to comment Share on other sites More sharing options...
cecco4 Posted December 11, 2008 Share Posted December 11, 2008 le ho importate con rpg maker Link to comment Share on other sites More sharing options...
Sylaer Posted December 11, 2008 Author Share Posted December 11, 2008 Allora non lo so. Prova a passarmi il progetto o uno di prova in cui non ti fa. http://www.rpg2s.net/awards/bestscripter1.jpgSe avete bisogno di modifiche, correzioni o creazioni da zero di script RGSS, allora visitate la mia bottega.La bottega di Sylaer Link to comment Share on other sites More sharing options...
cecco4 Posted December 12, 2008 Share Posted December 12, 2008 ecco qua il mio progetto, non peroccuparti del mostro e delle altre cose presenti (che sono messe ancra male) concentrati sulla mappa, se vuoi puoi copiare qualcosa (se ti serve) ah un'altra cosa, è stato fatto con rpgm xp in versione italiana, forse è quello in problema?se me lo correggi con la versione inglese non posso più aprirlo quindi se non hai quella in ita fa lo stesso. clicca qua sotto per scaricarlo:http://www.mediafire.com/download.php?ykuwdlcnmyd Link to comment Share on other sites More sharing options...
Theoras Posted December 12, 2008 Share Posted December 12, 2008 Sylaer mi da errore quasi in fondo allo script, dove sono queste due righe: event.x = mapevent.real_x * 3 / 64 event.y = mapevent.real_y * 3 / 64Ho provato a toglierle ma mi leva tutti i pallini colorati, quindi ho capito che servono a quello.Il problema è che ho un'altro script che mi elimina degli eventi però non so di preciso come (non funziona ne con una switch ne come un erease event), quindi, a quello che ho capito, la minimappa vorrebbe capire dove si sono spostati ma non li trova più ed esplode dando errore. Può essere una cosa del genere? Se hai una soluzione al volo rispondi qui, altrimenti dimmelo che ti passo il progetto. http://img396.imageshack.us/img396/3194/citta10mv9.gif Volete due giochi Completi e Seri fatti con RPG MAKER? Cliccate su... www.raldon.altervista.org Problemi con Raldon? Segnalali su... www.raldon.forumfree.net Partecipante al Rpg2s.net Game Contest 2008/2009 http://www.rpg2s.net/contest/GameContest0809/gc0809-bannerino.jpg Gioco in Sviluppo: Raldon Posizioni raggiunte nei Contest http://rpg2s.net/gif/SCContest1Oct.gifhttp://rpg2s.net/gif/SCContest1Oct.gifhttp://rpg2s.net/gif/SCContest3Oct.gifhttp://img76.imageshack.us/img76/1260/destroy3gr3.pnghttp://img233.imageshack.us/img233/7186/comics2hd8.gifhttp://www.rpg2s.net/gif/GC_bestoftool3.gif http://www.rpg2s.net/gif/GC_premio3.gifhttp://www.rpg2s.net/gif/GC_premio3.gifhttp://www.rpg2s.net/gif/GC_premio1.gifhttp://www.rpg2s.net/gif/GC_premio2.gifhttp://www.rpg2s.net/gif/GC_grafica3.gifhttp://www.rpg2s.net/gif/GC_programmazione3.gifhttp://www.rpg2s.net/gif/GC_programmazione1.gifhttp://www.rpg2s.net/awards/furordipopolo/Popolo3K.gifhttp://www.rpg2s.net/awards/furordipopolo/Popolo2XP.gifhttp://www.rpg2s.net/awards/furordipopolo/Popolo2BEST.gif http://www.rpg2s.net/awards/bestuser2.jpghttp://www.rpg2s.net/awards/bestmaker2.jpghttp://www.rpg2s.net/awards/mostpresent1.jpghttp://www.rpg2s.net/awards/mostproductive1.jpg Link to comment Share on other sites More sharing options...
Sylaer Posted December 12, 2008 Author Share Posted December 12, 2008 @Theo:Penso che il tuo sia un problema di compatibilità degli script, quindi non posso risolverlo finché non mi passi il progetto oppure il file Script.rxdata. @cecco4:Ho scoperto qual'è il problema: la minimappa, per non so quale ragione, considera i tile cespugliosi (quelli con la semi trasparenza, per fare l'effetto di erba alta) non passabili, e quindi sulla minimappa li fa trasparenti come farebbe gli alberi. Siccome te hai fatto la prima mappa tutta con l'erba alta, non si vede la differenza tra questa e gli alberi.Comunque ho riscritto un po' lo script e ora dovrebbe funzionare. #============================================================================== # ¦ Passability Mini Map #------------------------------------------------------------------------------ # made by Selwyn // selwyn@rmxp.ch # released the 30th of May 2006 #============================================================================== #============================================================================== # ¦ Scene_Map #------------------------------------------------------------------------------ # draw the mini map # @corner is the corner you want the mini map to be displayed in. # 1 is upper left, 2 is upper right, 3 is bottom left and 4 is bottom right #============================================================================== class Scene_Map attr_accessor :corner alias main_passminimap main alias update_passminimap update alias transfer_passminimap transfer_player # #alias mrmo_hud_hide hud_hide # alias mrmo_hud_show hud_show #-------------------------------------------------------------------------- # ? initialize #-------------------------------------------------------------------------- def initialize @corner = 2 # 1 or 2 or 3 or 4 end #-------------------------------------------------------------------------- # ? main #-------------------------------------------------------------------------- def main @mini_map = Map_Event.new(@corner) main_passminimap @mini_map.dispose end #-------------------------------------------------------------------------- # * Turn HUD Show #-------------------------------------------------------------------------- def hud_show # mrmo_hud_show @mini_map.visible = true $game_switches[@mini_map.ACTIVATED_ID] = true end #-------------------------------------------------------------------------- # * Turn HUD Hide #-------------------------------------------------------------------------- def hud_hide # mrmo_hud_hide @mini_map.visible = false $game_switches[@mini_map.ACTIVATED_ID] = false end #-------------------------------------------------------------------------- # ? update #-------------------------------------------------------------------------- def update @mini_map.update update_passminimap end #-------------------------------------------------------------------------- # ? transfer_player #-------------------------------------------------------------------------- def transfer_player transfer_passminimap @mini_map.dispose @mini_map = Map_Event.new(@corner) end end #============================================================================== # ¦ Map_Base #------------------------------------------------------------------------------ # Base class for mini maps #============================================================================== class Map_Base < Sprite #-------------------------------------------------------------------------- # ? constants and instances #-------------------------------------------------------------------------- PMP_VERSION = 6 ACTIVATED_ID = 4 # set the switch id for the minimap display (on/off) attr_reader :event #-------------------------------------------------------------------------- # ? initialize #-------------------------------------------------------------------------- def initialize(corner) super(Viewport.new(16, 16, width, height)) viewport.z = 8000 @border = Sprite.new @border.x = viewport.rect.x - 6 @border.y = viewport.rect.y - 6 @border.z = viewport.z - 1 @border.bitmap = RPG::Cache.picture("mapback") self.visible = on? self.opacity = 180 case corner when 1 self.x = 270 self.y = 43 when 2 self.x = 640 - width - 16 self.y = 16 when 3 self.x = 16 self.y = 480 - height - 16 when 4 self.x = 640 - width - 16 self.y = 480 - height - 16 else self.x = 16 self.y = 16 end self.visible = on? end #-------------------------------------------------------------------------- # ? dispose #-------------------------------------------------------------------------- def dispose @border.dispose super end #-------------------------------------------------------------------------- # ? x= #-------------------------------------------------------------------------- def x=(x) self.viewport.rect.x = x @border.x = x - 6 end #-------------------------------------------------------------------------- # ? y= #-------------------------------------------------------------------------- def y=(y) self.viewport.rect.y = y @border.y = y - 6 end #-------------------------------------------------------------------------- # ? visible= #-------------------------------------------------------------------------- def visible=(bool) super self.viewport.visible = bool @border.visible = bool end #-------------------------------------------------------------------------- # ? minimap_on? #-------------------------------------------------------------------------- def on? return $game_switches[ACTIVATED_ID] end def ACTIVATED_ID return ACTIVATED_ID end #-------------------------------------------------------------------------- # ? update #-------------------------------------------------------------------------- def update super self.visible = on? if viewport.ox < display_x viewport.ox += 1 elsif viewport.ox > display_x viewport.ox -= 1 end if viewport.oy < display_y viewport.oy += 1 elsif viewport.oy > display_y viewport.oy -= 1 end end #-------------------------------------------------------------------------- # ? width #-------------------------------------------------------------------------- def width return 120 end #-------------------------------------------------------------------------- # ? height #-------------------------------------------------------------------------- def height return 90 end #-------------------------------------------------------------------------- # ? display_x #-------------------------------------------------------------------------- def display_x return $game_map.display_x * 3 / 64 end #-------------------------------------------------------------------------- # ? display_y #-------------------------------------------------------------------------- def display_y return $game_map.display_y * 3 / 64 end end #============================================================================== # ¦ Map_Passability #------------------------------------------------------------------------------ # draws the mini map # # thanks to Fanha Giang (aka fanha99) for the autotile drawing method #============================================================================== class Map_Passability < Map_Base #-------------------------------------------------------------------------- # ? constants #-------------------------------------------------------------------------- INDEX = [ 26, 27, 32, 33, 4, 27, 32, 33, 26, 5, 32, 33, 4, 5, 32, 33, 26, 27, 32, 11, 4, 27, 32, 11, 26, 5, 32, 11, 4, 5, 32, 11, 26, 27, 10, 33, 4, 27, 10, 33, 26, 5, 10, 33, 4, 5, 10, 33, 26, 27, 10, 11, 4, 27, 10, 11, 26, 5, 10, 11, 4, 5, 10, 11, 24, 25, 30, 31, 24, 5, 30, 31, 24, 25, 30, 11, 24, 5, 30, 11, 14, 15, 20, 21, 14, 15, 20, 11, 14, 15, 10, 21, 14, 15, 10, 11, 28, 29, 34, 35, 28, 29, 10, 35, 4, 29, 34, 35, 4, 29, 10, 35, 38, 39, 44, 45, 4, 39, 44, 45, 38, 5, 44, 45, 4, 5, 44, 45, 24, 29, 30, 35, 14, 15, 44, 45, 12, 13, 18, 19, 12, 13, 18, 11, 16, 17, 22, 23, 16, 17, 10, 23, 40, 41, 46, 47, 4, 41, 46, 47, 36, 37, 42, 43, 36, 5, 42, 43, 12, 17, 18, 23, 12, 13, 42, 43, 36, 41, 42, 47, 16, 17, 46, 47, 12, 17, 42, 47, 0, 1, 6, 7 ] X = [0, 1, 0, 1] Y = [0, 0, 1, 1] #-------------------------------------------------------------------------- # ? initialize #-------------------------------------------------------------------------- def initialize(corner) super(corner) @autotile = RPG::Cache.picture("minimap_tiles") setup() end #-------------------------------------------------------------------------- # ? setup #-------------------------------------------------------------------------- def setup() @map = load_data(sprintf("Data/Map%03d.rxdata", $game_map.map_id)) tileset = $data_tilesets[@map.tileset_id] @passages = tileset.passages @priorities = tileset.priorities redefine_tiles refresh end #-------------------------------------------------------------------------- # ? pass #-------------------------------------------------------------------------- def pass(tile_id) return 15 if tile_id == nil return @passages[tile_id] != nil ? @passages[tile_id] : 15 end #-------------------------------------------------------------------------- # ? passable #-------------------------------------------------------------------------- def passable(tile_id) result = pass(tile_id) return true if result == 64 return result < 15 end #-------------------------------------------------------------------------- # ? redefine_tile #-------------------------------------------------------------------------- def redefine_tiles width = @map.width height = @map.height map = RPG::Map.new(width, height) map.data = @map.data.dup for x in 0...width for y in 0...height for level in [1, 2] id = @map.data[x, y, level] if id != 0 and @priorities[id] == 0 @map.data[x, y, 0] = id @passages[@map.data[x, y, 0]] = @passages[id] end end end end for x in 0...width for y in 0...height for level in [0] tile = @map.data[x, y, level] u = @map.data[x, y-1, level] l = @map.data[x-1, y, level] r = @map.data[x+1, y, level] d = @map.data[x, y+1, level] if !passable(tile) map.data[x, y] = 0 else if tile == 0 map.data[x, y, level] = 0 next end if pass(tile) < 15 || pass(tile) == 64 if !passable(u) and !passable(l) and !passable(r) and !passable(d) map.data[x, y, level] = 0 elsif !passable(u) and !passable(l) and !passable(r) and passable(d) map.data[x, y, level] = 90 elsif !passable(u) and !passable(l) and !passable(d) and passable(r) map.data[x, y, level] = 91 elsif !passable(u) and !passable(r) and !passable(d) and passable(l) map.data[x, y, level] = 93 elsif !passable(l) and !passable(r) and !passable(d) and passable(u) map.data[x, y, level] = 92 elsif !passable(u) and !passable(d) and passable(r) and passable(l) map.data[x, y, level] = 81 elsif !passable(u) and !passable(r) and passable(d) and passable(l) map.data[x, y, level] = 84 elsif !passable(u) and !passable(l) and passable(d) and passable(r) map.data[x, y, level] = 82 elsif !passable(d) and !passable(r) and passable(l) and passable(u) map.data[x, y, level] = 86 elsif !passable(d) and !passable(l) and passable(r) and passable(u) map.data[x, y, level] = 88 elsif !passable(r) and !passable(l) and passable(d) and passable(u) map.data[x, y, level] = 80 elsif !passable(u) and passable(d) and passable(r) and passable(l) map.data[x, y, level] = 68 elsif !passable(d) and passable(u) and passable(r) and passable(l) map.data[x, y, level] = 76 elsif !passable(r) and passable(d) and passable(u) and passable(l) map.data[x, y, level] = 72 elsif !passable(l) and passable(d) and passable(u) and passable(r) map.data[x, y, level] = 64 else map.data[x, y, level] = 48 end else map.data[x, y, level] = 0 end end end end end @map = map.dup map = nil end #-------------------------------------------------------------------------- # ? refresh #-------------------------------------------------------------------------- def refresh self.visible = false self.bitmap = Bitmap.new(@map.width * 6, @map.height * 6) bitmap = Bitmap.new(@map.width * 6, @map.height * 6) rect1 = Rect.new(6, 0, 6, 6) for y in 0...@map.height for x in 0...@map.width for level in [0] tile_id = @map.data[x, y, level] next if tile_id == 0 id = tile_id / 48 - 1 tile_id %= 48 for g in 0..3 h = 4 * tile_id + g y1 = INDEX[h] / 6 x1 = INDEX[h] % 6 rect2 = Rect.new(x1 * 3, y1 * 3, 3, 3) bitmap.blt(x * 6 + X[g] * 3, y * 6 + Y[g] * 3, @autotile, rect2) end end end end d_rect = Rect.new(0, 0, @map.width * 6, @map.height * 6) s_rect = Rect.new(0, 0, bitmap.width, bitmap.height) self.bitmap.stretch_blt(d_rect, bitmap, s_rect) self.viewport.ox = display_x self.viewport.oy = display_y bitmap.clear bitmap.dispose end end #============================================================================== # ¦ Map_Event #------------------------------------------------------------------------------ # * draw the events and hero position #============================================================================== class Map_Event < Map_Passability #-------------------------------------------------------------------------- # ? initialize #-------------------------------------------------------------------------- def initialize(corner = 4) super(corner) @dots = [] @name_arr = [] @player = Sprite.new(self.viewport) @player.bitmap = RPG::Cache.picture("mm cursors") @player.src_rect = Rect.new(0, 0, 15, 15) @player.z = self.z + 3 @events = {} @page = {} end #-------------------------------------------------------------------------- # ? dispose #-------------------------------------------------------------------------- def dispose @player.dispose for event in @events.values next if event == nil or event.disposed? event.dispose end super end #-------------------------------------------------------------------------- # ? update #-------------------------------------------------------------------------- def update super #Update Events for key in $game_map.events.keys event = $game_map.events[key] if @events[key] != nil and (event.erased or event.page != @page[key]) @events[key].dispose @events.delete(key) @page.delete(key) next elsif @events[key] != nil next end next if event.list == nil for i in 0...event.list.size next if event.list[i].code != 108 if event.list[i].parameters[0].include?("evento") @events[key] = Sprite.new(self.viewport) @events[key].z = self.z + 2 @events[key].bitmap = RPG::Cache.picture("event") @page[key] = event.page elsif event.list[i].parameters[0].include?("nemico") @events[key] = Sprite.new(self.viewport) @events[key].z = self.z + 2 @events[key].bitmap = RPG::Cache.picture("enemy") @page[key] = event.page elsif event.list[i].parameters[0].include?("trans") @events[key] = Sprite.new(self.viewport) @events[key].z = self.z + 2 @events[key].bitmap = RPG::Cache.picture("teleport") @page[key] = event.page elsif event.list[i].parameters[0].include?("cassa") @events[key] = Sprite.new(self.viewport) @events[key].z = self.z + 2 @events[key].bitmap = RPG::Cache.picture("chest") @page[key] = event.page elsif event.list[i].parameters[0].include?("tizio") @events[key] = Sprite.new(self.viewport) @events[key].z = self.z + 2 @events[key].bitmap = RPG::Cache.picture("npc") @page[key] = event.page elsif event.list[i].parameters[0].include?("salvo") @events[key] = Sprite.new(self.viewport) @events[key].z = self.z + 2 @events[key].bitmap = RPG::Cache.picture("savepoint") @page[key] = event.page end end end @player.x = $game_player.real_x * 3 / 64 - 5 @player.y = $game_player.real_y * 3 / 64 - 4 @player.src_rect.x = ($game_player.direction / 2 - 1) * 15 for key in @events.keys event = @events[key] next if event == nil or event.disposed? mapevent = $game_map.events[key] event.x = mapevent.real_x * 3 / 64 event.y = mapevent.real_y * 3 / 64 end end end #============================================================================ # * Game Event #============================================================================ class Game_Event < Game_Character attr_reader :page attr_reader :erased end Ah, per la compatibilità non ci sarebbero problemi comunque, puoi aprire il file del progetto (Game.rxproj) con il blocco note e cambiare il numero scritto lì con quello della tua versione di rpg maker xp (1.01). http://www.rpg2s.net/awards/bestscripter1.jpgSe avete bisogno di modifiche, correzioni o creazioni da zero di script RGSS, allora visitate la mia bottega.La bottega di Sylaer Link to comment Share on other sites More sharing options...
cecco4 Posted December 12, 2008 Share Posted December 12, 2008 perfetto, grazie mille:) :) :) :) Link to comment Share on other sites More sharing options...
icebream Posted December 5, 2009 Share Posted December 5, 2009 a me viene solo che poi mi dice"Failed to obtain a trial serial number from the nTitles server Uff, Ogni giorno e una faticaccia M il corso di cinese! Link to comment Share on other sites More sharing options...
rizzuccio Posted February 1, 2012 Share Posted February 1, 2012 (edited) potreste riuppare la demo pls ?oppure anche solo le immagini che servono... Edited February 1, 2012 by rizzuccio http://www.freankexpo.net/signature.php?gid=683.png Link to comment Share on other sites More sharing options...
grost Posted February 22, 2012 Share Posted February 22, 2012 Concordo, riuppatele pls Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now