Jump to content
Rpg²S Forum

*Aperion System


Valentino
 Share

Recommended Posts

Aperion_System

Descrizione

Lo script in pratica impone dei limiti ai danni agli Hp e agli Sp massimi. Avendo determinati equipaggiamenti si possono rompere questi limiti.

Autore

 

Avon Valentino (Io)


Allegati


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

 

Script:

 

 

#-----------------------------Aperion_System----------------------------------#

#Questo script crea un limite ai danni massimi e crea la possibilità di rompere
#questo limite equipaggiando delle armi.
#Il limite non viene imposto ai nemici.
#Lo stesso vale con gli Hp e gli Sp con le armature.
#Script creato da Valentino Avon, se lo utilizzate creditatemi ;)

#---------------------------Configurazione------------------------------------

#danno massimo senza danni aperion
LIMIT_DAMAGE = 9999

#danno massimo possibile (anche con i danni aperion)
MAX_DAMAGE = 99999

#id delle weapon che infliggono danni aperion
W_DANNI_APERION = [1]

#id delle armature che permettono di rompere il limite di vita massima
A_HP_APERION = [1]

#id delle armature che permettono di rompere il limite di Sp massimi
A_SP_APERION = [5]

#Hp massimi senza Hp aperion
LIMIT_HP = 9999

#Hp massimi possibili (anche con Hp aperion)
MAX_HP = 99999

#Sp massimi senza Sp aperion
LIMIT_SP = 999

#Sp massimi possibili (anche con Sp aperion)
MAX_SP = 9999
#-------------------------------Script-------------------------------------

class Game_Battler
	alias vale_attack attack_effect
	def attack_effect(attacker)
		vale_attack(attacker)
		if self.damage.is_a?(Numeric)
			if attacker.is_a?(Game_Actor) and attacker.weapon_id != nil
				unless W_DANNI_APERION.include?(attacker.weapon_id)
					self.damage = LIMIT_DAMAGE if self.damage > LIMIT_DAMAGE
				end
			elsif attacker.is_a?(Game_Actor) and attacker.weapon_id == nil
				if self.damage > LIMIT_DAMAGE
					self.damage = LIMIT_DAMAGE
				end
			end
			self.damage = MAX_DAMAGE if self.damage > MAX_DAMAGE
		end
	end
	
	alias vale_skill skill_effect
	def skill_effect(user, skill)
		vale_skill(user, skill)
		if self.damage.is_a?(Numeric)
			if user.is_a?(Game_Actor) and user.weapon_id != nil
				unless W_DANNI_APERION.include?(user.weapon_id)
					self.damage = LIMIT_DAMAGE if self.damage > LIMIT_DAMAGE
				end
			elsif user.is_a?(Game_Actor) and user.weapon_id == nil
				if self.damage > LIMIT_DAMAGE
					self.damage = LIMIT_DAMAGE
				end
			end
			self.damage = MAX_DAMAGE if self.damage > MAX_DAMAGE
		end
	end
end


class Game_Actor
	def maxhp
		n = [[base_maxhp + @maxhp_plus, 1].max, MAX_HP].min
		for i in @states
			n *= $data_states[i].maxhp_rate / 100.0
		end
		@aperion_hp = false
		armor = [@armor1_id, @armor2_id, @armor3_id, @armor4_id]
		for id in armor
			if A_HP_APERION.include?(id)
				@aperion_hp = true
			end
		end
		n = [[integer(n), 1].max, MAX_HP].min if @aperion_hp
		n = [[integer(n), 1].max, LIMIT_HP].min unless @aperion_hp
		return n
	end
	
	def maxsp
		n = [[base_maxsp + @maxsp_plus, 0].max, MAX_SP].min
		for i in @states
			n *= $data_states[i].maxsp_rate / 100.0
		end
		@aperion_sp = false
		armor = [@armor1_id, @armor2_id, @armor3_id, @armor4_id]
		for id in armor
			if A_SP_APERION.include?(id)
				@aperion_sp = true
			end
		end
		n = [[integer(n), 1].max, MAX_SP].min if @aperion_sp
		n = [[integer(n), 1].max, LIMIT_SP].min unless @aperion_sp
		return n
	end
end

 

 

 

Istruzioni per l'uso

 

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

Bugs e Conflitti Noti

 

N/A

Edited by Dilos
Script monoriga sistemato.
Link to comment
Share on other sites

Utile, ma non capisco 'na cosa: se lo metto anche le abilità verranno fermate a 9999? Perchè ne avevo qualcuna che mi andava oltre il 10000.

Nooooooooooooooooooooooooooooooooooooooooooo!

Il mio meraviglioso progetto con Rpg Maker 2009 Ultimate, "A Frog's Story", è morto per sempre cancellato dal PC insieme a metà della mia chiave USB... Ci avevo lavorato dei mesi... Ma la vita va avanti XD

 

Io non dico che sei scemo, ma se qualcuno lo dicesse, credo che approverei volentieri!
Epic Quote!
Link to comment
Share on other sites

Si tutti gli attacchi hanno un limite di danno impostato dal LIMIT_DAMAGE che verrà rotto equipaggiando un arma con danni aperion e quindi portando il limite massimo al MAX_DAMAGE, ma si sta poco a modificare lo script e creare delle abilità che avvallano questo limite... Dammi conferma e te lo faccio. :D
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...