Jump to content
Rpg²S Forum
  • 0

Piccolo fix : Script Status Zombie


Goofy !
 Share

Question

Qui c'è lo script:

 

#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=# Tons of Add-ons by Blizzard# Version: 7.31b# Type: Add-on Collection Control Script# Date v7.31b:  20.07.2009#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=# #									PART 3# #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=#   #  This work is protected by the following license:# #----------------------------------------------------------------------------# #  # #  Creative Commons - Attribution-NonCommercial-ShareAlike 3.0 Unported# #  ( [url="http://creativecommons.org/licenses/by-nc-sa/3.0/"]http://creativecommons.org/licenses/by-nc-sa/3.0/[/url] )# #  # #  You are free:# #  # #  to Share - to copy, distribute and transmit the work# #  to Remix - to adapt the work# #  # #  Under the following conditions:# #  # #  Attribution. You must attribute the work in the manner specified by the# #  author or licensor (but not in any way that suggests that they endorse you# #  or your use of the work).# #  # #  Noncommercial. You may not use this work for commercial purposes.# #  # #  Share alike. If you alter, transform, or build upon this work, you may# #  distribute the resulting work only under the same or similar license to# #  this one.# #  # #  - For any reuse or distribution, you must make clear to others the license# #	terms of this work. The best way to do this is with a link to this web# #	page.# #  # #  - Any of the above conditions can be waived if you get permission from the# #	copyright holder.# #  # #  - Nothing in this license impairs or restricts the author's moral rights.# #  # #----------------------------------------------------------------------------# #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=# # VERY IMPORTANT NOTE:# #   Tons of Add-ons now has to be used as 3-parts script because of a weird#   behaviour of RMXP during bug detection. Insert the 3 parts in the correct#   order and the system should work without problems. Do NOT remove any of the#   parts, the script NEEDS all 3 parts to work with other systems.# # # If you find any bugs, please report them here:# [url="http://forum.chaos-project.com"]http://forum.chaos-project.com[/url]#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:= #:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::##																			 ##   ###   ###  #   # #####  #   #### #   # ####   ###  #####  #   ###  #   #  ##  #   # #   # ##  # #	  #  #	 #   # #   # #   #   #	#  #   # ##  #  ##  #	 #   # # # # ####   #  #  ## #   # ####  #   #   #	#  #   # # # #  ##  #   # #   # #  ## #	  #  #   # #   # #   # #####   #	#  #   # #  ##  ##   ###   ###  #   # #	  #   ####  ###  #   # #   #   #	#   ###  #   #  ##																			 ##:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::# #==============================================================================# Game_System#============================================================================== class Game_System   alias init_tons_of_addons3_later initialize  def initialize	init_tons_of_addons3_later#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::# START Configuration 3-2, STATUS EFFECT and SKILL add-ons# #   You can enable/disable any add-on here if you wish. Set the value to false#   to disable it initially. To turn it on/off ingame, just use the Call script#   command with one of these syntaxes:# #	 $game_system.NAME_OF_THE_ADDON = true#	 $game_system.NAME_OF_THE_ADDON = false# #   where NAME_OF_THE_ADDON is the same variable as the one used below.#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::	# the STATUS EFFECT add-ons	@ZOMBIE_STATUS	   = true	@REGEN_STATUS		= false	@AUTO_REVIVE		 = false	@FURY_STATUS		 = false	@INVINCIBLE_STATUS   = false	@SP_COST_MOD		 = false	@FROZEN			  = false	@BLUE_MAGIC_STATUS   = false	@DOOM_STATUS		 = false	# the SKILL add-ons	@ABSORB_HP_SP		= false	@STATE_BREAKER	   = false	@BLUE_MAGIC_SKILL	= false	@DEMI_SKILL		  = false	@REVENGE_SKILL	   = false	@DESTRUCTOR_SKILL	= false	@SP_DAMAGE_SKILL	 = false	@CHARGE_SKILL		= false	@ENERGY_SKILL		= false	@MASTER_THIEF		= false	@HP_SKILL			= false	# the ITEM add-ons	@SKILL_TEACHING_ITEM = false	@LEVEL_UPDOWN_ITEM   = false#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::# END Configuration 3-2#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::  end #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::# I suggest you don't edit anything below this line except for the# configurations for the add-ons.#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::   attr_accessor :ZOMBIE_STATUS  attr_accessor :REGEN_STATUS  attr_accessor :AUTO_REVIVE  attr_accessor :FURY_STATUS  attr_accessor :INVINCIBLE_STATUS  attr_accessor :SP_COST_MOD  attr_accessor :FROZEN  attr_accessor :BLUE_MAGIC_STATUS  attr_accessor :DOOM_STATUS   attr_accessor :ABSORB_HP_SP  attr_accessor :STATE_BREAKER  attr_accessor :BLUE_MAGIC_SKILL  attr_accessor :DEMI_SKILL  attr_accessor :REVENGE_SKILL  attr_accessor :DESTRUCTOR_SKILL  attr_accessor :SP_DAMAGE_SKILL  attr_accessor :CHARGE_SKILL  attr_accessor :ENERGY_SKILL  attr_accessor :MASTER_THIEF  attr_accessor :HP_SKILL   attr_accessor :SKILL_TEACHING_ITEM  attr_accessor :LEVEL_UPDOWN_ITEM end #:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::##																			 ##  ##### #####  ###  ##### #   # #####	##### ##### ##### #####  ###  ##### ##  #	   #   #   #   #   #   # #		#	 #	 #	 #	 #   #   #   ##  #####   #   #   #   #   #   # #####	####  ####  ####  ####  #	   #   ##	  #   #   #####   #   #   #	 #	#	 #	 #	 #	 #   #   #   ##  #####   #   #   #   #	###  #####	##### #	 #	 #####  ###	#   ##																			 ##:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::# #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=# Zombie Status Effect by Blizzard# Version: 1.3b# Type: Game Experience Improvement# Date: 26.9.2006# Date v1.1b: 18.3.2007# Date v1.2b: 13.11.2007# Date v1.3b: 19.10.2008#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=# # new in v1.1b:#   - working itself without you needing to do anything except the#	 configuration#   - actual code#   - works with attacks and items now as well# # new in v1.2b:#   - improved coding#   - now possible to have more than one zombie status# # new in v1.3b:#   - improved coding#   - fixed possible problems# # # Configuration:# #   ZOMBIE_IDS	   - the IDs of the Zombie status effects#   LIGHT_ELEMENT_ID - the ID of the light element#   ZOMBIE_POWER	 - how much stronger should light attacks be#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:= #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::# START Configuration#:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ZOMBIE_IDS = [27]LIGHT_ELEMENT_ID = 7ZOMBIE_POWER = 1.5 #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::# END Configuration#:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: #==============================================================================# Game_Battler#============================================================================== class Game_Battler   alias attack_effect_zombie_later attack_effect  def attack_effect(attacker)	last_hp = self.hp	last_sr = (($crls && self.is_a?(Game_Actor)) ? self.sr : nil)	result = attack_effect_zombie_later(attacker)	zombie_effect(last_hp, last_sr, attacker) if self.damage.is_a?(Numeric)	return result  end   alias skill_effect_zombie_later skill_effect  def skill_effect(user, skill)	last_hp = self.hp	last_sr = (($crls && self.is_a?(Game_Actor)) ? self.sr : nil)	result = skill_effect_zombie_later(user, skill)	zombie_effect(last_hp, last_sr, skill) if self.damage.is_a?(Numeric)	return result  end   alias item_effect_zombie_later item_effect  def item_effect(item, battler = nil)	if $game_system.ACTOR_ITEMS && self.is_a?(Game_Actor)	  return false if !FTSConfigs.item_can_consume?(self.id, item.id)	end	last_hp = self.hp	last_sr = (($crls && self.is_a?(Game_Actor)) ? self.sr : nil)	if battler == nil	  result = item_effect_zombie_later(item)	else	  result = item_effect_zombie_later(item, battler)	end	zombie_effect(last_hp, last_sr, item) if self.damage.is_a?(Numeric)	return result  end   def zombie_effect(last_hp, last_sr, object)	if $game_system.ZOMBIE_STATUS && ZOMBIE_IDS.any? {|i| @states.include?(i)}	  self.hp = last_hp	  self.hp = self.hp	  self.sr = last_sr if last_sr != nil	  if self.damage.is_a?(Numeric) && self.damage < 0		self.damage = -self.damage 	  end	  if object.element_set.include?(LIGHT_ELEMENT_ID)		self.damage = (self.damage * ZOMBIE_POWER).to_i	  end	  self.hp -= self.damage	end  end end

 

 

 

 

Ecco il problema... lo script funziona divinamente.... lo cercavo da molto tempo, ma il problema sorge quando un personaggio affetto da zombie riceve un oggetto : (

mi dice

http://img187.imageshack.us/img187/8003/46479096.png

 

e se apro lo scirpt editor mi appare lo slash (? si chiama così?) alla riga 233

 

 

alias item_effect_zombie_later item_effect

def item_effect(item, battler = nil)

if $game_system.ACTOR_ITEMS && self.is_a?(Game_Actor)

return false if !FTSConfigs.item_can_consume?(self.id, item.id)

end

last_hp = self.hp

last_sr = (($crls && self.is_a?(Game_Actor)) ? self.sr : nil)

if battler == nil

result = item_effect_zombie_later(item)

else

result = item_effect_zombie_later(item, battler)

end

zombie_effect(last_hp, last_sr, item) if self.damage.is_a?(Numeric)

return result

end

 

 

 

Premesse: Lo script l'ho modificato io perché fa parte di una roba abnorme che contiene un saco di script.... ho solo copia-incollato la prima parte che era giusto quella che mi interessava.

Qui l'originale.

La parte che ho preso io è nel terzo link, dalla riga 1 alla 262 praticamente.

 

 

 

 

Bhe... che dire..... HELP!!! Lo voglio questo script : /

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

EDIT - Scusa, mi sono sbagliato . . . (ACTOR_ITEMS non è una costante)

 

Bisogna inserire, alla riga 91

@ACTOR_ITEMS = false

e, alla riga 125 (che diventa la 126, dopo la prima aggiunta)

attr_accessor :ACTOR_ITEMS

Edited by giver

 


SCRIPT RGSS (RPG Maker XP) VINTAGE LIBRARY [2018+]


Breaking (in ogni senso) News: "Treno deraglia per via del seno di Sakurai Aoi . . ." - Info nello spoiler !!

 


http://afantasymachine.altervista.org/_altervista_ht/NOOOOOOOOOilMIOtreninooooo_500.gif


Non riesco a smettere di essere affascinato da immagini come questa . . .

http://anime.vl-vostok.ru/art/photos2011/17/78049800/wall_VladAnime_WWA_1885-1680x1050.jpg


Alcuni wallpapers che faccio ruotare sul mio vecchio PC . . .


http://afantasymachine.altervista.org/_altervista_ht/gits_window.jpg

http://afantasymachine.altervista.org/_altervista_ht/madoka_group01.jpg
http://afantasymachine.altervista.org/_altervista_ht/arisu_picipici_01.jpg
http://afantasymachine.altervista.org/_altervista_ht/phantom_wp01_einzwei.jpg


La parte più spassosa della mia vita è quando gli altri cercano di spiegarmi i miei pensieri . . .


BBCode Testing


Typeface & Size



Link to comment
Share on other sites

  • 0

Stesso errore di prima purtroppo.

 

COmunque l'aggiunta che mi hai dato avrebbe disattivato gli oggetti (facendoli tornare normali intendo) credo, invece a me servirebbe che anche gli oggetti abbiano l'effetto inverso.

Link to comment
Share on other sites

  • 0
EDIT - Scusa, mi sono sbagliato . . . (ACTOR_ITEMS non è una costante)

 

Bisogna inserire, alla riga 91

@ACTOR_ITEMS = false

e, alla riga 125 (che diventa la 126, dopo la prima aggiunta)

attr_accessor :ACTOR_ITEMS

Avevo editato mentre postavi.

Comunque, no, si tratta di un altro Add-on, che probabilmente non c'entra (riguarda una cosa per gli ITEMS simile alle restrizioni su armi e armature utilizzabili, presente in versioni precedenti del tool e rimossa dall'XP . . .) e se non lo usi ti darà comunque errore.

 

Prova la nuova soluzione, ed eventualmente approfondisco meglio.

 


SCRIPT RGSS (RPG Maker XP) VINTAGE LIBRARY [2018+]


Breaking (in ogni senso) News: "Treno deraglia per via del seno di Sakurai Aoi . . ." - Info nello spoiler !!

 


http://afantasymachine.altervista.org/_altervista_ht/NOOOOOOOOOilMIOtreninooooo_500.gif


Non riesco a smettere di essere affascinato da immagini come questa . . .

http://anime.vl-vostok.ru/art/photos2011/17/78049800/wall_VladAnime_WWA_1885-1680x1050.jpg


Alcuni wallpapers che faccio ruotare sul mio vecchio PC . . .


http://afantasymachine.altervista.org/_altervista_ht/gits_window.jpg

http://afantasymachine.altervista.org/_altervista_ht/madoka_group01.jpg
http://afantasymachine.altervista.org/_altervista_ht/arisu_picipici_01.jpg
http://afantasymachine.altervista.org/_altervista_ht/phantom_wp01_einzwei.jpg


La parte più spassosa della mia vita è quando gli altri cercano di spiegarmi i miei pensieri . . .


BBCode Testing


Typeface & Size



Link to comment
Share on other sites

  • 0

Lieto di dirti che funziona :sisi:

grazie mille; sono sicuro che troverò qualche altra cosetta da sistemare poiché lo script l'ho estratto io... casomai scrivo qua : )

Edited by Goofy !
Link to comment
Share on other sites

  • 0

Ehm... giver ci sei ancora vero?

Come prevedevo ho scoperto una cosa scomoda, lo script funziona nei test del database ma non nel gioco T____T

analogamente a quanto ho detto in quest'altro topic nel mio ultimo messaggio....

 

 

ma qui c'è un particolare, ho provato a fare una battaglia nella mia mappa di prova con tutto il party regolare e cose varie e lì funziona tutto ç___ç. Nella mappa di prova però

Link to comment
Share on other sites

  • 0
Una domanda forse stupida: Per caso quando testi il tuo gioco parti da un salvataggio ?

 


SCRIPT RGSS (RPG Maker XP) VINTAGE LIBRARY [2018+]


Breaking (in ogni senso) News: "Treno deraglia per via del seno di Sakurai Aoi . . ." - Info nello spoiler !!

 


http://afantasymachine.altervista.org/_altervista_ht/NOOOOOOOOOilMIOtreninooooo_500.gif


Non riesco a smettere di essere affascinato da immagini come questa . . .

http://anime.vl-vostok.ru/art/photos2011/17/78049800/wall_VladAnime_WWA_1885-1680x1050.jpg


Alcuni wallpapers che faccio ruotare sul mio vecchio PC . . .


http://afantasymachine.altervista.org/_altervista_ht/gits_window.jpg

http://afantasymachine.altervista.org/_altervista_ht/madoka_group01.jpg
http://afantasymachine.altervista.org/_altervista_ht/arisu_picipici_01.jpg
http://afantasymachine.altervista.org/_altervista_ht/phantom_wp01_einzwei.jpg


La parte più spassosa della mia vita è quando gli altri cercano di spiegarmi i miei pensieri . . .


BBCode Testing


Typeface & Size



Link to comment
Share on other sites

  • 0

Argh....

 

Assolutamente non sapevo questo, credevo che lo script funzionasse indipendentemente dal fatto di partire da un salvataggio o meno ç.ç

 

 

Edit: Sei il mio idolo *____________*

 

Anche lo script degli eoni funziona *_______________*

 

 

Il fatto è che queste cose non appaiono all'inizo del gioco per cui partivo dal mio salvataggio di Beta Test per provarlo *___*

 

 

Ok, termino la modalità delirio.... adesso che ho rovinato in modo permanente la mia grande (???) immagine mi sento di poter fare tutte le domande più idiote che mi vengano in mente... per esempio:

 

 

Perché partendo dal salvataggio gli script non funzionano bene? Voglio dire, il programma cosa sbaglia nel leggere lo script? Non mi sembra ci siano cose collegato a salvataggi o qualunque altra cosa.

Chiedo sia per quanto riguarda lo script per lo status Zombie sia per lo script delle evocazioni.

 

 

 

*______*

Edited by Goofy !
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...