Jump to content
Rpg²S Forum
  • 0

script riduzione ogg. trasportabili


Davide
 Share

Question

5 answers to this question

Recommended Posts

  • 0

15 per tipo, o 15 in tutto?

 

Nel primo caso, ecco a te lo script:

 

#==============================================================================# ** Custom Item Number#------------------------------------------------------------------------------#  Autore: Amos_MHF#  Versione: 1.0#  Data di rilascio: 8/6/2009#------------------------------------------------------------------------------#  Versioni:#	1.0 (8/6/2009)#------------------------------------------------------------------------------#  Modifiche:#	Modifiche alla classe Game_Party#	 -def gain_item#------------------------------------------------------------------------------#  Istruzioni:#	Per personalizzare lo script modifica $item_limit.#	Puoi cambiare la variabile $item_limit anche in gioco, tramite il comando#	Script, inserendo nel box il testo seguente, senza virgolette:#	"$item_limit = n" dove n sta al numero.##	Importante: questo script agisce solo durante l'aggiunta di oggetti,#	quindi se, ad esempio, si hanno 99 oggetti "pozione", e si diminuisce#	il valore massimo a 50, rimarranno 99, occorrerà quindi diminuirli #	manualmente.#------------------------------------------------------------------------------$item_limit = 99 # Numero di oggetti trasportabili per tipo#============================================================================== class Game_Party  def gain_item(item_id, n)	if item_id > 0	  @items[item_id] = [[item_number(item_id) + n, 0].max, $item_limit].min	end  endend

Edited by Amos_MHF

Partecipante al Rpg2s.net Game Contest 2008/2009
http://www.rpg2s.net/contest/GameContest0809/gc0809-bannerino.jpg
Gioco in Sviluppo: Oromis' Tale

Premi Rpg2s.net Game Contest 2008/2009:
http://www.rpg2s.net/gif/GC_programmazione2.gif Miglior Programmazione XP: 2°
http://www.rpg2s.net/gif/GC_premio3.gif Longevità: 3°

Hiken... Tsubame Gaeshi!

Link to comment
Share on other sites

  • 0

Io ho solo fatto quell'altro xD

Dato che non sono capace di fare quello di cui hai bisogno.

Aspetta qualche scripter.

Edited by Amos_MHF

Partecipante al Rpg2s.net Game Contest 2008/2009
http://www.rpg2s.net/contest/GameContest0809/gc0809-bannerino.jpg
Gioco in Sviluppo: Oromis' Tale

Premi Rpg2s.net Game Contest 2008/2009:
http://www.rpg2s.net/gif/GC_programmazione2.gif Miglior Programmazione XP: 2°
http://www.rpg2s.net/gif/GC_premio3.gif Longevità: 3°

Hiken... Tsubame Gaeshi!

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...