Vai al contenuto


Toggle Chat RM - Chat Apri la Chat in un popup

E' severamente vietato richiedere supporto su RPG Maker in chat!
@  MihaChan : (23 May 2012 - 09:19 PM) a parte i denti -che stanno decidendo di darmi noia in questi giorni-, tutto okay~
@  Melosx : (23 May 2012 - 09:18 PM) bene ^.^ ... Tu??
@  MihaChan : (23 May 2012 - 09:17 PM) come va? xD
@  MihaChan : (23 May 2012 - 09:16 PM) okay
@  MihaChan : (23 May 2012 - 09:16 PM) ah
@  Melosx : (23 May 2012 - 09:14 PM) ciao miha... ai dont spic inglisc
@  MihaChan : (23 May 2012 - 09:12 PM) how'sa goin'?
@  MihaChan : (23 May 2012 - 09:12 PM) ciao Mel!
@  Melosx : (23 May 2012 - 09:07 PM) ciao
@  MihaChan : (23 May 2012 - 09:06 PM) salve D:
@  Pech93 : (23 May 2012 - 08:05 PM) MIk?
@  Melosx : (23 May 2012 - 07:51 PM) VIENI SU MSN!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@  Melosx : (23 May 2012 - 07:51 PM) MIIIIIIIIIIIIIIIIIIIKKKKKKKKKKKK!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@  Melosx : (23 May 2012 - 07:46 PM) *iù
@  Melosx : (23 May 2012 - 07:38 PM) iu spin mi rai rau bebi rai rau laic a record bebi rau rau rau rau
@  Melosx : (23 May 2012 - 07:37 PM) lalalallalallalallallllllllllalalalallaaaaaaaaaaaaaaaaaaaaaa!!!!!!!!!!!!!!!!!!
@  Melosx : (23 May 2012 - 07:37 PM) lalalalala
@  Melosx : (23 May 2012 - 07:37 PM) naoinvaoèvpodlnvvrovnovnondpppppppppmvdgdvjomvmvpe
@  Melosx : (23 May 2012 - 07:36 PM) che coa che robaé
@  Abadon : (23 May 2012 - 07:34 PM) dopo che il forum è andato fuori servizio si è persa un po' la chat D:

MSX - Bars Type


  • Per cortesia connettiti per rispondere
4 risposte a questa discussione

#1 OFFLINE   Melosx

Melosx

    Maker di rpgmkr.net

  • RM-Dreamers
  • 895 Messaggi:
  • LocalitàAvola
  • Ruolo:
    Scripter
  • Progetto Ace:
    Menu Chora
  • Tool:
    RPG Maker VX/VX Ace

Inviato 13 January 2012 - 04:54 PM

Nome Script: MSX - Bars Type
Versione: 1.0
Autore/i: Melosx

Informazioni:
Aggiunge due tipi di barre per personalizare di più i vostri menu... Ho pensato a questo script giocando a Skyrim...

Screenshots:
Spoiler

Istruzioni:
Nello script.

Script:
#=============================================================================
# ** MSX - Bars Type
#=============================================================================
# Autore: Melosx
# Versione: 1.0 => 13-1-2012
#
#=============================================================================
# * Istruzioni
#-----------------------------------------------------------------------------
# Aggiunge due nuovi tipi di barre. Questi nuovi tipi vanno settati inserendo 0, 1 o 2 nel codice
# che disegna le barre. di default è settato 0 cioè il tipo di barra di default.
#
#==============================================================================



class Window_Base < Window

  def draw_gauge(x, y, width, rate, color1, color2, type = 0)
    case type
    when 0
      fill_w = (width * rate).to_i
      gauge_y = y + line_height - 8
      contents.fill_rect(x, gauge_y, width, 6, gauge_back_color)
      contents.gradient_fill_rect(x, gauge_y, fill_w, 6, color1, color2)
    when 1
      fill_w = (width * rate).to_i
      gauge_y = y + line_height - 8
      gr_x = x + (width - fill_w) / 2
      contents.fill_rect(x, gauge_y, width, 6, gauge_back_color)
      contents.gradient_fill_rect(gr_x, gauge_y, fill_w, 6, color1, color2)  
    when 2
      fill_w = (width * rate).to_i
      gauge_y = y + line_height - 8
      gr_x = x + (width - fill_w)
      contents.fill_rect(x, gauge_y, width, 6, gauge_back_color)
      contents.gradient_fill_rect(gr_x, gauge_y, fill_w, 6, color1, color2)
    end
  end

  def draw_actor_hp(actor, x, y, width = 124, type = 0)
    draw_gauge(x, y, width, actor.hp_rate, hp_gauge_color1, hp_gauge_color2, type = 1)
    change_color(system_color)
    draw_text(x, y, 30, line_height, Vocab::hp_a)
    draw_current_and_max_values(x, y, width, actor.hp, actor.mhp,
      hp_color(actor), normal_color)
    end

  def draw_actor_mp(actor, x, y, width = 124, type = 0)
    draw_gauge(x, y, width, actor.mp_rate, mp_gauge_color1, mp_gauge_color2, type = 2)
    change_color(system_color)
    draw_text(x, y, 30, line_height, Vocab::mp_a)
    draw_current_and_max_values(x, y, width, actor.mp, actor.mmp,
      mp_color(actor), normal_color)
    end

  def draw_actor_tp(actor, x, y, width = 124, type = 0)
    draw_gauge(x, y, width, actor.tp_rate, tp_gauge_color1, tp_gauge_color2, type)
    change_color(system_color)
    draw_text(x, y, 30, line_height, Vocab::tp_a)
    change_color(tp_color(actor))
    draw_text(x + width - 42, y, 42, line_height, actor.tp.to_i, 2)
  end

end

Demo:
N/D

Incompatibilità:
Non ne ha, almeno credo... ho pensato a tutto...
Immagine inserita
Immagine inserita
Immagine inserita
Immagine inserita

Immagine inserita
Immagine inserita

Targhette vinte nei contest
Spoiler

from skype with love
Spoiler

#2 OFFLINE   Ally

Ally

    Fondatori

  • Amministratori
  • 5558 Messaggi:
  • Localitàrpgmkr
  • Ruolo:
    Scripter
  • Progetto VX:
    Essence
  • Tool:
    RM2k/2k3

Inviato 13 January 2012 - 08:53 PM

Scriptino semplice ma utile :*

Grazie ^^
Immagine inserita
Spoiler

#3 OFFLINE   Reyhue

Reyhue

    RM Avanzato

  • Utenti RM
  • StellettaStellettaStelletta
  • 54 Messaggi:
  • LocalitàNel castello del boss finale del tuo progetto.
  • Tool:
    Preferisco il 2k3

Inviato 13 January 2012 - 08:59 PM

Effettivamente ricorda Skyrim XD
Interessante!... sei molto bravo a scriptare o sbaglio? °_°
Mi piace in particolare il tipo 1
Immagine inserita
Spoiler
Immagine inserita Immagine inserita

#4 OFFLINE   Melosx

Melosx

    Maker di rpgmkr.net

  • RM-Dreamers
  • 895 Messaggi:
  • LocalitàAvola
  • Ruolo:
    Scripter
  • Progetto Ace:
    Menu Chora
  • Tool:
    RPG Maker VX/VX Ace

Inviato 13 January 2012 - 09:16 PM

sono cose semplici... il tipo 1 è identico alla barra salute mentre il 2 al vigore in skyrim provatelo con vari menu e script di battaglia e ditemi ce ci sono problemi...
Immagine inserita
Immagine inserita
Immagine inserita
Immagine inserita

Immagine inserita
Immagine inserita

Targhette vinte nei contest
Spoiler

from skype with love
Spoiler

#5 OFFLINE   achille911

achille911

    RM Avanzato

  • Utenti RM
  • StellettaStellettaStelletta
  • 74 Messaggi:

Inviato 21 March 2012 - 09:17 PM

Molto bello, Skyrim è un gran gioco e fare dei lavori per rpg maker in questo stile è ottimo, mi piace molto la scelta, semplice, veloce e di impatto!




1 utente(i) stanno leggendo questa discussione

0 utenti, 1 ospiti, 0 utenti anonimi