Jump to content
Rpg²S Forum
  • 0

[OK]"Respinto"


Goofy !
 Share

Question

Vorrei modificare una cosetta negli script di base...

quando si usa una skill che ha l'effetto di infliggere uno status su un nemico, se quel nemico ha attributo F verso quello status allora è impossibile applicarglielo.

Dunque, vorrei che apparisse "Respinto" in questi casi anziché "Mancato" perché così il giocatore sa che può povarci anche miliardi di volte.... non riuscirà mai ad avvelenare quel nemico!

Edited by Goofy !
Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0
se devi solo modificare la stringa vai nello script editor,classe Game_battler 3,riga 91 e modifichi la scritta rosa :D

Bisogno di creare un sito internet?Vai a visitare il White Rabbit ;D

Screen contest #23
http://rpg2s.net/gif/SCContest3Oct.gif


Partecipante al Rpg2s.net Game Contest 2008/2009
http://www.rpg2s.net/contest/GameContest0809/gc0809-bannerino.jpg
Gioco in Sviluppo: Restricted : Project 15

Link to comment
Share on other sites

  • 0

no-no

devo fare in modo che se c'è l'attributo F viene fuori "Respinto"

se c'è l'attributo A,B,C,D,E viene fuori "Mancato"

E' chiaro come intendo fare io?

Serve a evitare il player perde la vita a cercare di mettere uno status alterato al nemico se questo ha la resisteza F (100%) contro quello status... facendo apparire la scritta "RESPINTO".

Se invece il nemico non ha resistenza totale contro quello status, allora viene fuori "MANCATO che indica che il player può comunque fare dei tentativi finché il nemico entra nello status desiderato (veleno, cecità,...)

 

SI dovrà aggiungere qualche stringa, semmai.

Link to comment
Share on other sites

  • 0
  • 0

potresti aggiungere questo metodo a Game_Battler:

 

  def immune_to_state_change?(plus_state_set)	immune=true	# Loop (added state)	for i in plus_state_set	  immune=false if [0,100,80,60,40,20,0][self.state_ranks[i]] > 0	end	return immune  end

 

poi al metodo skill_effect in Game_Battler 3 sostituire a questo pezzo:

	  # State change	  @state_changed = false	  effective |= states_plus(skill.plus_state_set)	  effective |= states_minus(skill.minus_state_set)	  # If power is 0	  if skill.power == 0		# Set damage to an empty string		self.damage = ""		# If state is unchanged		unless @state_changed		  # Set damage to "Miss"		  self.damage = "Miss"		end	  end

 

il seguente:

	  # State change	  @state_changed = false	  effective |= states_plus(skill.plus_state_set)	  effective |= states_minus(skill.minus_state_set)	  # If power is 0	  if skill.power == 0		# Set damage to an empty string		self.damage = ""		# If state is unchanged		unless @state_changed		  if immune_to_state_change?(skill.plus_state_set)			# Set damage to "Miss"			self.damage = "Respinto"		  else			# Set damage to "Miss"			self.damage = "Mancato"		  end		end	  end

 

Vedi se va, non l'ho provato. :)

 

EDIT: Provato, mi sa che l'aggiungo al BS.

Edited by charlie
Link to comment
Share on other sites

  • 0

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