Jump to content
Rpg²S Forum

*Item Plus System


Valentino
 Share

Recommended Posts

Item Plus System

Descrizione

 

Questo script permette di ottenere più di un oggetto da ogni nemico ucciso.

Autore

 

Avon Valentino (Io)

Allegati


Screenshots:


http://img94.imageshack.us/img94/3810/itemplus1.png



Demo Link:
http://www.mediafire.com/download.php?j34pgiw6gol132r


Script:

 

 

 

#---------------------------ITEM PLUS SYSTEM-----------------------------------
#Script creato da Valentino Avon, se usate questo script creditatemi ;)
#Lo script permette di ottenere più oggetti dai nemici sconfiggendoli in battaglia.

#------------------------------CONFIGURAZIONE-----------------------------------
module Enemy
	#a = armatura i = oggetto w = arma
	#ITEM = {ENEMYID =>[[(a/i/w),ITEMID,PROBABILITA]]}
	ITEM = {1 => [["a",1,30], ["i",4,40],["i",5,80]],
	2 => [["i",1,40], ["w",2,40]]
	}
end
#-------------------------------------------------------------------------------


class Window_BattleResult < Window_Base
	attr_accessor :treasures
end

class Scene_Battle
	alias item_start_phase5 start_phase5
	def start_phase5
		item_start_phase5
		for enemy in $game_troop.enemies
			for item in Enemy::ITEM[enemy.id]
				@result_window.treasures.push($data_items[item[1]]) if item[0] == "i" and rand(100) < item[2]
				@result_window.treasures.push($data_armors[item[1]]) if item[0] == "a" and rand(100) < item[2]
				@result_window.treasures.push($data_weapons[item[1]]) if item[0] == "w" and rand(100) < item[2]
			end
		end
		@result_window.height = (@result_window.treasures.size * 32) + 64
		@result_window.y = (380-@result_window.height)/2
		@result_window.contents = Bitmap.new(@result_window.width - 32, @result_window.height - 32)
		@result_window.refresh
		@result_window.z = 9999
	end
end

 

 

 

Istruzioni per l'uso

 

Trovate tutto all'interno dello script, se lo usate creditatemi :wink:

Bugs e Conflitti Noti

 

N/A

Edited by Dilos
Script monoriga sistemato.
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...