Jump to content
Rpg²S Forum

Quest Show (alias un semplice scrivi msg xD)


Morshudiego
 Share

Recommended Posts

Quest Show 1.5

Descrizione

 

Permette di mostrare una scritta dove ci sta scritta la prossima tappa di gioco (una quest, una battaglia, una cosa da fare qualunque)

 

Autore

 

Morshudiego

 

 

Allegati

 

N/D

 

Istruzioni per l'uso

 

Le istruzioni sono presenti nello script.

 

Script

[/indent]
[indent=1]#===============================================================================
#  Quest Show																														    
#  Scritto da Morshudiego. RPG2s.net																		    
#  Versione: 1.5																													    
#  Creditate se usato nel vostro progetto.																    
#-------------------------------------------------------------------------------
#  FUNZIONI																																    
#  Questo script permette di usare una variabile per visualizzare la missione  
#  su schermo																															  
#-------------------------------------------------------------------------------
#  ISTRUZIONI PER L'USO	    
#  -Settare nel modulo DIEGO i vari parametri.
#  -Usare il comando "Chiama Script" con il seguente codice:
#  mostra_missione(x,y,messaggio)
#  -Usare invece questa stringa per eliminare il messaggio:
#  nascondi_missione
#===============================================================================
module DIEGO
#Il prefisso del messaggio quest
SHOWQUEST_MSGPREFIX = 'MISSIONE: '
#La variabile che indica la quantità posseduta nell'inventario
SHOWQUEST_HELDVAR = 2
#La variabile che indica la quantità necessaria per passare la missione
SHOWQUEST_NEEDVAR = 3
#Il segno che separa i due numeri.
SHOWQUEST_SEPARATOR = '/'
end
class Diego_ShowQuest < Window_Base
$imported = {} if $imported == nil
$imported['Diego_ShowQuest'] = true
def initialize(x,y,messaggio)
   super(x,y,544,WLH+32)
 self.opacity = 0
   @messaggio = messaggio
@prefisso = DIEGO::SHOWQUEST_MSGPREFIX
@possesso = $game_variables[DIEGO::SHOWQUEST_HELDVAR]
 @necessari = $game_variables[DIEGO::SHOWQUEST_NEEDVAR]
@divisore = DIEGO::SHOWQUEST_SEPARATOR
refresh
end
def refresh
  self.contents.clear
   @possesso = $game_variables[DIEGO::SHOWQUEST_HELDVAR]
 @necessari = $game_variables[DIEGO::SHOWQUEST_NEEDVAR]
if $game_variables[DIEGO::SHOWQUEST_NEEDVAR] > 0
	 self.contents.draw_text(x, y + WLH * 0, 512, WLH,
  "#{@prefisso}#{@messaggio} #{@possesso}#{@divisore}#{@necessari}")
  else
 self.contents.draw_text(x, y + WLH * 0, 512, WLH,
  "#{@prefisso}#{@messaggio}")  
   end
end
end
class Game_Interpreter
def mostra_missione(x,y,messaggio)
$showquest = Diego_ShowQuest.new(x,y,messaggio)
end
def nascondi_missione
   $showquest.dispose
 $showquest = nil
end
end
class Scene_Map < Scene_Base
alias diego_showquest_update update
def update
diego_showquest_update
if $showquest != nil
 $showquest.refresh
  end
end
end
#PS: Ho finalmente trovato un template adatto per le info dei miei script :D

Edited by Holy87

Succodipera: Il blog di Morshudiego su RPG Maker (Leggetelo, lì ci sono più aggiornamenti che sulla firma!)

<AGGIORNAMENTI> (Ultima modifica: Oct 30 2014)
Myth of First Star - Facendo il punto della situazione
Project Sudoku - Il multitasking non è il mio forte. XD (Spero comunque di risolvere il bug per rilasciare la 0.3 :P)
Tutorial Menu Eventi - Uscita parte 2 (però è malformattata, non so se riuscirò ad editare tutto in un giorno. Abbiate pasiensa :P)

<PROGETTI>
Myth of First Star - Project Sudoku (*trollface*)

<SCRIPTS>
Zelda Map Scrolling - Switch Post Caricamento - Messaggi Istantanei - Picture Manager - Minimalist Menu

<TUTORIAL>
Uso corretto acqua RTP - Creare un menu ad eventi

Link to comment
Share on other sites

Aggiornato alla 1.5

- Possibilità di mettere gli oggetti mancanti (es: uova 5/7) settando due variabili.

- Se il numero di oggetti richiesti è 0 il messaggio non mostrerà i due numeri.

- Agevolata la chiamata dello script.

Edited by Morshudiego

Succodipera: Il blog di Morshudiego su RPG Maker (Leggetelo, lì ci sono più aggiornamenti che sulla firma!)

<AGGIORNAMENTI> (Ultima modifica: Oct 30 2014)
Myth of First Star - Facendo il punto della situazione
Project Sudoku - Il multitasking non è il mio forte. XD (Spero comunque di risolvere il bug per rilasciare la 0.3 :P)
Tutorial Menu Eventi - Uscita parte 2 (però è malformattata, non so se riuscirò ad editare tutto in un giorno. Abbiate pasiensa :P)

<PROGETTI>
Myth of First Star - Project Sudoku (*trollface*)

<SCRIPTS>
Zelda Map Scrolling - Switch Post Caricamento - Messaggi Istantanei - Picture Manager - Minimalist Menu

<TUTORIAL>
Uso corretto acqua RTP - Creare un menu ad eventi

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...