Jump to content
Rpg²S Forum
  • 0

Problema con i comandi


Squall_Leonheart
 Share

Question

Salve a tutti,oggi mi sono ritrovato davanti il seguente problema:

 

Ho creato una scena da zero,dove un comando dovrebbe sbloccarsi in base ad una variabile(non di gioco),però quando risulta "false" la scena non entra in atto...Ora la uppo per facilitare la comprensione e capire dov'è l'errore :)

 

 

class Scene_Lotta   def main 	@calcio = false	comandi = (["Pugno", "Suplex", "Dropkick", "Irish whip"])	comandi.unshift ("Calcio") if @calcio = true	@select_window = Window_Command.new(192, comandi)	@select_window.x = 0	@select_window.y = 100	@select_window.opacity = 255	@spriteset = Spriteset_Map.new	@window_hud = Window_HUD.new	@window_hud.opacity = 255  	Graphics.transition	loop do	Graphics.update	Input.update	update	if $scene != self  	  break   	end  end  Graphics.freeze  @window_hud.dispose  @select_window.dispose  end  def update   @select_window.update   @window_hud.update   if Input.trigger?(Input::C)		case @select_window.index	  		when 0		  if @calcio = false		  $game_system.se_play($data_system.decision_se)		  $game_variables[1] += 3		  $game_map.need_refresh = true			  $scene = Scene_Map.new		else		  $game_system.se_play($data_system.decision_se)		  $game_variables[1] += 3		  $game_map.need_refresh = true			  $scene = Scene_Map.new 		end		return		  when 1		  if @calcio = false		  $game_system.se_play($data_system.decision_se)		  $game_variables[1] += 20		  $game_map.need_refresh = true			$scene = Scene_Map.new	 		  else		  $game_system.se_play($data_system.decision_se)		  $game_variables[1] += 2		  $game_map.need_refresh = true			  $scene = Scene_Map.new 		end		return			when 2  			  if @calcio = false			$game_system.se_play($data_system.decision_se)			$game_variables[1] += 15			$game_map.need_refresh = true			  $scene = Scene_Map.new  			else		  $game_system.se_play($data_system.decision_se)		  $game_variables[1] += 20		  $game_map.need_refresh = true			$scene = Scene_Map.new 		  end		  return			  when 3				if @calcio = false				$game_system.se_play($data_system.decision_se)			  $game_variables[1] += 5				$game_map.need_refresh = true				$scene = Scene_Map.new			  else			$game_system.se_play($data_system.decision_se)			$game_variables[1] += 15			$game_map.need_refresh = true			$scene = Scene_Map.new  		  end		  return		  when 4				 $game_system.se_play($data_system.decision_se)			  $game_variables[1] += 5				$game_map.need_refresh = true				$scene = Scene_Map.new				return		   end		end	 end   end

Iscriviti sul mio canale youtube -

https://www.youtube.com/channel/UCYOxXExvlXiOFfYD1fTFpww?view_as=subscriber

Seguimi su Instagram -

https://www.instagram.com/ancestralguitarist/

---------------------------------------------------------------------------------------------------------------------------------------
Contest vinti
---------------------------------------------------------------------------------------------------------------------------------------

FACE CONTEST # 3
BANNER CONTEST #69

Link to comment
Share on other sites

Recommended Posts

  • 0
Salve a tutti,oggi mi sono ritrovato davanti il seguente problema:

 

Ho creato una scena da zero,dove un comando dovrebbe sbloccarsi in base ad una variabile(non di gioco),però quando risulta "false" la scena non entra in atto...Ora la uppo per facilitare la comprensione e capire dov'è l'errore :)

 

 

class Scene_Lotta   def main 	@calcio = false	comandi = (["Pugno", "Suplex", "Dropkick", "Irish whip"])	comandi.unshift ("Calcio") if @calcio = true	@select_window = Window_Command.new(192, comandi)	@select_window.x = 0	@select_window.y = 100	@select_window.opacity = 255	@spriteset = Spriteset_Map.new	@window_hud = Window_HUD.new	@window_hud.opacity = 255  	Graphics.transition	loop do	Graphics.update	Input.update	update	if $scene != self  	  break   	end  end  Graphics.freeze  @window_hud.dispose  @select_window.dispose  end  def update   @select_window.update   @window_hud.update   if Input.trigger?(Input::C)		case @select_window.index	  		when 0		  if @calcio = false		  $game_system.se_play($data_system.decision_se)		  $game_variables[1] += 3		  $game_map.need_refresh = true			  $scene = Scene_Map.new		else		  $game_system.se_play($data_system.decision_se)		  $game_variables[1] += 3		  $game_map.need_refresh = true			  $scene = Scene_Map.new 		end		return		  when 1		  if @calcio = false		  $game_system.se_play($data_system.decision_se)		  $game_variables[1] += 20		  $game_map.need_refresh = true			$scene = Scene_Map.new	 		  else		  $game_system.se_play($data_system.decision_se)		  $game_variables[1] += 2		  $game_map.need_refresh = true			  $scene = Scene_Map.new 		end		return			when 2  			  if @calcio = false			$game_system.se_play($data_system.decision_se)			$game_variables[1] += 15			$game_map.need_refresh = true			  $scene = Scene_Map.new  			else		  $game_system.se_play($data_system.decision_se)		  $game_variables[1] += 20		  $game_map.need_refresh = true			$scene = Scene_Map.new 		  end		  return			  when 3				if @calcio = false				$game_system.se_play($data_system.decision_se)			  $game_variables[1] += 5				$game_map.need_refresh = true				$scene = Scene_Map.new			  else			$game_system.se_play($data_system.decision_se)			$game_variables[1] += 15			$game_map.need_refresh = true			$scene = Scene_Map.new  		  end		  return		  when 4				 $game_system.se_play($data_system.decision_se)			  $game_variables[1] += 5				$game_map.need_refresh = true				$scene = Scene_Map.new				return		   end		end	 end   end

 

 

Per mettere la condizione che calcio è falso devi mettere

if @calcio == false

con due uguali ^^

 

e lo stesso vale per il true XD

if @calcio == true

 

ma si può anche scrivere solamente

if @calcio

Edited by Valentino
Link to comment
Share on other sites

  • 0
Ma nello script c'è solo quello di errato?

Iscriviti sul mio canale youtube -

https://www.youtube.com/channel/UCYOxXExvlXiOFfYD1fTFpww?view_as=subscriber

Seguimi su Instagram -

https://www.instagram.com/ancestralguitarist/

---------------------------------------------------------------------------------------------------------------------------------------
Contest vinti
---------------------------------------------------------------------------------------------------------------------------------------

FACE CONTEST # 3
BANNER CONTEST #69

Link to comment
Share on other sites

  • 0
Ma nello script c'è solo quello di errato?

 

 

Credo di si...

L'unica cosa è il metodo unshift che non ho mai usato XD Ma ho visto sulla guida di rpg maker e non dovrebbe dare problemi su quello che dici tu. (credo)

Link to comment
Share on other sites

  • 0

Beh ancora non fila tutto liscio...

 

Per attivare la variabile tramite evento utilizzo

@calcio == true

 

Ma se faccio così poi si blocca tutto e non parte la scena ç_ç

E se rimango il valore "false" utilizza i comandi del "true" ç_ç

 

 

class Scene_Lotta   def main 	@calcio == false	comandi = (["Pugno", "Suplex", "Dropkick", "Irish whip"])	comandi.unshift ("Calcio") if @calcio == true	@select_window = Window_Command.new(192, comandi)	@select_window.x = 0	@select_window.y = 100	@select_window.opacity = 255	@spriteset = Spriteset_Map.new	@window_hud = Window_HUD.new	@window_hud.opacity = 255  	Graphics.transition	loop do	Graphics.update	Input.update	update	if $scene != self  	  break   	end  end  Graphics.freeze  @window_hud.dispose  @select_window.dispose  end  def update   @select_window.update   @window_hud.update   if Input.trigger?(Input::C)		case @select_window.index	  		when 0		  if @calcio == false		  $game_system.se_play($data_system.decision_se)		  $game_variables[1] += 3		  $game_map.need_refresh = true			  $scene = Scene_Map.new		else @calcio == true		  $game_system.se_play($data_system.decision_se)		  $game_variables[4] += 5		  $game_map.need_refresh = true			  $scene = Scene_Map.new 		end		return		  when 1		  if @calcio == false		  $game_system.se_play($data_system.decision_se)		  $game_variables[1] += 20		  $game_map.need_refresh = true			$scene = Scene_Map.new	 		  else @calcio == true		  $game_system.se_play($data_system.decision_se)		  $game_variables[1] += 3		  $game_map.need_refresh = true			  $scene = Scene_Map.new 		end		return			when 2  			  if @calcio == false			$game_system.se_play($data_system.decision_se)			$game_variables[1] += 15			$game_map.need_refresh = true			  $scene = Scene_Map.new  			else @calcio == true		  $game_system.se_play($data_system.decision_se)		  $game_variables[1] += 20		  $game_map.need_refresh = true			$scene = Scene_Map.new 		  end		  return			  when 3				if @calcio == false				$game_system.se_play($data_system.decision_se)			  $game_variables[1] += 5				$game_map.need_refresh = true				$scene = Scene_Map.new			  else @calcio == true			$game_system.se_play($data_system.decision_se)			$game_variables[1] += 15			$game_map.need_refresh = true			$scene = Scene_Map.new  		  end		  return		  when 4				 $game_system.se_play($data_system.decision_se)			  $game_variables[1] += 5				$game_map.need_refresh = true				$scene = Scene_Map.new				return		   end		end	 end   end

 

Iscriviti sul mio canale youtube -

https://www.youtube.com/channel/UCYOxXExvlXiOFfYD1fTFpww?view_as=subscriber

Seguimi su Instagram -

https://www.instagram.com/ancestralguitarist/

---------------------------------------------------------------------------------------------------------------------------------------
Contest vinti
---------------------------------------------------------------------------------------------------------------------------------------

FACE CONTEST # 3
BANNER CONTEST #69

Link to comment
Share on other sites

  • 0

No no aspetta XD Solo per le condizioni ce il doppio uguale

Per assegnare un valore è solo uno! Quindi all inizio della scena è calcio = false

E comunque quella che consideri è una variabile che appartiene alla classe in quella maniera non la puoi richiamare tramite eventi, devi renderla globale.

Comunque anche se la rendi globale, se la inizializzi come false ogni volta che aprirai la scena sarà sempre settata su false XD

Link to comment
Share on other sites

  • 0
Quindi come risolvo >.<

Iscriviti sul mio canale youtube -

https://www.youtube.com/channel/UCYOxXExvlXiOFfYD1fTFpww?view_as=subscriber

Seguimi su Instagram -

https://www.instagram.com/ancestralguitarist/

---------------------------------------------------------------------------------------------------------------------------------------
Contest vinti
---------------------------------------------------------------------------------------------------------------------------------------

FACE CONTEST # 3
BANNER CONTEST #69

Link to comment
Share on other sites

  • 0
Quindi come risolvo >.<

 

class Scene_Lotta   def main	comandi = (["Pugno", "Suplex", "Dropkick", "Irish whip"])	comandi.unshift ("Calcio") if $calcio == true	@select_window = Window_Command.new(192, comandi)	@select_window.x = 0	@select_window.y = 100	@select_window.opacity = 255	@spriteset = Spriteset_Map.new	@window_hud = Window_HUD.new	@window_hud.opacity = 255  	Graphics.transition	loop do	Graphics.update	Input.update	update	if $scene != self  	  break  	end  end  Graphics.freeze  @window_hud.dispose  @select_window.dispose  end def update   @select_window.update   @window_hud.update   if Input.trigger?(Input::C)		case @select_window.index	  		when 0		  if $calcio == false		  $game_system.se_play($data_system.decision_se)		  $game_variables[1] += 3		  $game_map.need_refresh = true			  $scene = Scene_Map.new		else 		  $game_system.se_play($data_system.decision_se)		  $game_variables[4] += 5		  $game_map.need_refresh = true			  $scene = Scene_Map.new		end		return		  when 1		  if $calcio == false		  $game_system.se_play($data_system.decision_se)		  $game_variables[1] += 20		  $game_map.need_refresh = true			$scene = Scene_Map.new			  else 		  $game_system.se_play($data_system.decision_se)		  $game_variables[1] += 3		  $game_map.need_refresh = true			  $scene = Scene_Map.new		end		return			when 2  			  if $calcio == false			$game_system.se_play($data_system.decision_se)			$game_variables[1] += 15			$game_map.need_refresh = true			  $scene = Scene_Map.new  			else 		  $game_system.se_play($data_system.decision_se)		  $game_variables[1] += 20		  $game_map.need_refresh = true			$scene = Scene_Map.new		  end		  return			  when 3				if $calcio == false				$game_system.se_play($data_system.decision_se)			  $game_variables[1] += 5				$game_map.need_refresh = true				$scene = Scene_Map.new			  else 			$game_system.se_play($data_system.decision_se)			$game_variables[1] += 15			$game_map.need_refresh = true			$scene = Scene_Map.new  		  end		  return		  when 4				 $game_system.se_play($data_system.decision_se)			  $game_variables[1] += 5				$game_map.need_refresh = true				$scene = Scene_Map.new				return		   end		end	 end   end

 

Modifica fatta velocemente...

Da evento adesso prova a scrivere $calcio = true e vedere va..

Link to comment
Share on other sites

  • 0
Si ora si attiva,però quando non è attiva continua ad eseguire gli stessi valori del false con l'esclusione del quinto comando O.o

Iscriviti sul mio canale youtube -

https://www.youtube.com/channel/UCYOxXExvlXiOFfYD1fTFpww?view_as=subscriber

Seguimi su Instagram -

https://www.instagram.com/ancestralguitarist/

---------------------------------------------------------------------------------------------------------------------------------------
Contest vinti
---------------------------------------------------------------------------------------------------------------------------------------

FACE CONTEST # 3
BANNER CONTEST #69

Link to comment
Share on other sites

  • 0
  • 0
Pardon volevo dire del true >.<

Iscriviti sul mio canale youtube -

https://www.youtube.com/channel/UCYOxXExvlXiOFfYD1fTFpww?view_as=subscriber

Seguimi su Instagram -

https://www.instagram.com/ancestralguitarist/

---------------------------------------------------------------------------------------------------------------------------------------
Contest vinti
---------------------------------------------------------------------------------------------------------------------------------------

FACE CONTEST # 3
BANNER CONTEST #69

Link to comment
Share on other sites

  • 0
Link to comment
Share on other sites

  • 0
Niente,così non parte proprio la scena :/

Iscriviti sul mio canale youtube -

https://www.youtube.com/channel/UCYOxXExvlXiOFfYD1fTFpww?view_as=subscriber

Seguimi su Instagram -

https://www.instagram.com/ancestralguitarist/

---------------------------------------------------------------------------------------------------------------------------------------
Contest vinti
---------------------------------------------------------------------------------------------------------------------------------------

FACE CONTEST # 3
BANNER CONTEST #69

Link to comment
Share on other sites

  • 0
  • 0
D'accordo.

Iscriviti sul mio canale youtube -

https://www.youtube.com/channel/UCYOxXExvlXiOFfYD1fTFpww?view_as=subscriber

Seguimi su Instagram -

https://www.instagram.com/ancestralguitarist/

---------------------------------------------------------------------------------------------------------------------------------------
Contest vinti
---------------------------------------------------------------------------------------------------------------------------------------

FACE CONTEST # 3
BANNER CONTEST #69

Link to comment
Share on other sites

  • 0

Ecco, ho creato una versione un po meno intricata, e con la possibilita di tenere salvata l'opzione di calcio true o false (cioe se si salva la partita e calcio è su true, se si carica sarà ancora su true)

 

class Window_Command < Window_Selectable  def command	return @commands[index]  endend class Game_Systemattr_accessor :calcio  alias calcio_initialize initialize  def initialize	calcio_initialize	@calcio = false  endend  class Scene_Lotta  def main	comandi = ["Pugno","Suplex","Dropkick","Irish whip"]	comandi.unshift("Calcio") if $game_system.calcio	@select_window = Window_Command.new(192, comandi)	@select_window.x = 0	@select_window.y = 100	@select_window.opacity = 255	@window_hud = Window_HUD.new	@window_hud.opacity = 255  	@spriteset = Spriteset_Map.new	Graphics.transition	loop do	Graphics.update	Input.update	update	if $scene != self  	  break  	end  end  Graphics.freeze  @select_window.dispose  @window_hud.dispose  end def update   @select_window.update   @window_hud.update   if Input.trigger?(Input::C)		case @select_window.command		when "Calcio"		  $game_variables[4] +=  5		  when "Pugno"		  $game_variables[1] += 3		when "Suplex" 		  $game_variables[1] += 20		when "Dropkick"			$game_variables[1] += 15		  when "Irish whip"		  $game_variables[1] += 5		  end	 $game_system.se_play($data_system.decision_se)		$game_map.need_refresh = true		   $scene = Scene_Map.new	 end   end end

 

 

il comando per attivare o disattivare il calcio è:

$game_system.calcio = true/false

 

Spero vada bene ^^

 

Comunque per il calcio aumenti una variabile diversa, la n°4 hai fatto apposta o nhai messo per sbaglio? XD

Edited by Valentino
Link to comment
Share on other sites

  • 0

Voluto,ora provo e ti dico ^^

 

Edit : Apposto ^^

 

Un ultima quisquilia,se volessi allegare il valore della variabile a quello degli mp dell'eroe?

Edited by Squall_Leonheart

Iscriviti sul mio canale youtube -

https://www.youtube.com/channel/UCYOxXExvlXiOFfYD1fTFpww?view_as=subscriber

Seguimi su Instagram -

https://www.instagram.com/ancestralguitarist/

---------------------------------------------------------------------------------------------------------------------------------------
Contest vinti
---------------------------------------------------------------------------------------------------------------------------------------

FACE CONTEST # 3
BANNER CONTEST #69

Link to comment
Share on other sites

  • 0

Credo che basti fare cosi:

 

 

class Window_Command < Window_Selectable  def command	return @commands[index]  endend class Game_Systemattr_accessor :calcio  alias calcio_initialize initialize  def initialize	calcio_initialize	@calcio = 0  endend  class Scene_Lotta  def main		 $game_system.calcio = $game_actors[ID_EROE].sp	comandi = ["Pugno","Suplex","Dropkick","Irish whip"]	comandi.unshift("Calcio") if $game_system.calcio > TOT_MP	@select_window = Window_Command.new(192, comandi)	@select_window.x = 0	@select_window.y = 100	@select_window.opacity = 255	@window_hud = Window_HUD.new	@window_hud.opacity = 255  	@spriteset = Spriteset_Map.new	Graphics.transition	loop do	Graphics.update	Input.update	update	if $scene != self  	  break  	end  end  Graphics.freeze  @select_window.dispose  @window_hud.dispose  end def update   @select_window.update   @window_hud.update   if Input.trigger?(Input::C)		case @select_window.command		when "Calcio"		  $game_variables[4] +=  5		  when "Pugno"		  $game_variables[1] += 3		when "Suplex" 		  $game_variables[1] += 20		when "Dropkick"			$game_variables[1] += 15		  when "Irish whip"		  $game_variables[1] += 5		  end	 $game_system.se_play($data_system.decision_se)		$game_map.need_refresh = true		   $scene = Scene_Map.new	 end   end end

 

 

Dove ID_EROE è l'id dell eroe (Beh si capiva XD) e TOT_MP è la quantità di mp "richiesti"

Link to comment
Share on other sites

  • 0

Solo un'idea, ma non sarebbe meglio mettere la variabile in Game_Actor invece che in Game_System, contornata da metodi appositi (has_kick?, can_kick?, ecc) ?

E si potrebbe aggiungere un sistema di configurazione dei requisiti per quella mossa (e altre), costante o variabile, per ogni actor . . .

 


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
Bon non sapendo l'uso che voleva farne non potevo far nulla di preciso XD Comunque, se deve distinguere la proprietà per ogni eroe, sì l'idea è appropriata :Ok:
Link to comment
Share on other sites

  • 0
MMM Però così fisserei una variabile fissa per gli sp...Invece vorrei che si aggiornasse con gli sp massimi dell'eroe dettati dal database (che quindi si aggiornerebbero con i lv)..

Iscriviti sul mio canale youtube -

https://www.youtube.com/channel/UCYOxXExvlXiOFfYD1fTFpww?view_as=subscriber

Seguimi su Instagram -

https://www.instagram.com/ancestralguitarist/

---------------------------------------------------------------------------------------------------------------------------------------
Contest vinti
---------------------------------------------------------------------------------------------------------------------------------------

FACE CONTEST # 3
BANNER CONTEST #69

Link to comment
Share on other sites

  • 0

Beh se devi mettere gli sp massimi metti al posto di:

$game_actors[iD_EROE].sp

 

questo:

 

$game_actors[iD_EROE].maxsp

 

Cosi:

 

 

 

class Window_Command < Window_Selectable  def command	return @commands[index]  endend class Game_Systemattr_accessor :calcio  alias calcio_initialize initialize  def initialize	calcio_initialize	@calcio = 0  endend  class Scene_Lotta  def main		 $game_system.calcio = $game_actors[ID_EROE].maxsp	comandi = ["Pugno","Suplex","Dropkick","Irish whip"]	comandi.unshift("Calcio") if $game_system.calcio > TOT_MP	@select_window = Window_Command.new(192, comandi)	@select_window.x = 0	@select_window.y = 100	@select_window.opacity = 255	@window_hud = Window_HUD.new	@window_hud.opacity = 255  	@spriteset = Spriteset_Map.new	Graphics.transition	loop do	Graphics.update	Input.update	update	if $scene != self  	  break  	end  end  Graphics.freeze  @select_window.dispose  @window_hud.dispose  end def update   @select_window.update   @window_hud.update   if Input.trigger?(Input::C)		case @select_window.command		when "Calcio"		  $game_variables[4] +=  5		  when "Pugno"		  $game_variables[1] += 3		when "Suplex" 		  $game_variables[1] += 20		when "Dropkick"			$game_variables[1] += 15		  when "Irish whip"		  $game_variables[1] += 5		  end	 $game_system.se_play($data_system.decision_se)		$game_map.need_refresh = true		   $scene = Scene_Map.new	 end   end end

 

Link to comment
Share on other sites

  • 0

Ma al posto di tot_mp dovrei immettere una cifra?

Perchè mi dà un errore.

 

 

Edit : Ho fatto una modifica veloce per risolvere delle situazioni.

 

Cosi dovrebbe andare in base agli sp massimi del momento:

 

 

 

class Window_Command < Window_Selectable  attr_accessor :commands  def command	return @commands[index]  endend class Game_System  attr_accessor :calcio  alias calcio_initialize initialize  def initialize	calcio_initialize	@calcio = false  endend  class Scene_Lotta  def main	$game_system.calcio = $game_actors[1].maxsp	@sp = $game_actors[1].sp	comandi = ["Pugno","Suplex","Dropkick","Irish whip"]	comandi.unshift("Calcio") if $game_system.calcio > @sp  # comandi.unshift("Calcio") if $game_system.calcio	actor = $game_party.actors	@window_hud_Inoki = Window_HUD_Inoki.new	if actor == 2	@window_hud_Inoki.visible = true  else	@window_hud_Inoki.visible = false	end	@select_window = Window_Command.new(192, comandi)	@select_window.x = 0	@select_window.y = 100	@select_window.opacity = 255	@window_hud_tigre = Window_HUD_Tigre.new	@window_hud_tigre.opacity = 255  	@spriteset = Spriteset_Map.new	Graphics.transition	loop do	Graphics.update	Input.update	update	if $scene != self  	  break  	end  end  Graphics.freeze  @sp.dispose  @spriteset.dispose  @select_window.dispose  @window_hud_tigre.dispose  @window_hud_Inoki.dispose  end def update   @sp.update   @select_window.update   @window_hud_tigre.update   @window_hud_Inoki.update   if Input.trigger?(Input::C)		case @select_window.command		when "Calcio"		  		  $game_variables[1] +=  4		  $sp == 0		  when "Pugno"		  $game_variables[1] += 3 % 5		when "Suplex" 		  $game_variables[1] += 10 % 20		when "Dropkick"			$game_variables[1] += 5 % 15		  when "Irish whip"		  $game_variables[1] += 1 % 5		end	 $game_system.se_play($data_system.decision_se)		$game_map.need_refresh = true		   $scene = Scene_Map.new	 end   end end

 

 

Edited by Squall_Leonheart

Iscriviti sul mio canale youtube -

https://www.youtube.com/channel/UCYOxXExvlXiOFfYD1fTFpww?view_as=subscriber

Seguimi su Instagram -

https://www.instagram.com/ancestralguitarist/

---------------------------------------------------------------------------------------------------------------------------------------
Contest vinti
---------------------------------------------------------------------------------------------------------------------------------------

FACE CONTEST # 3
BANNER CONTEST #69

Link to comment
Share on other sites

  • 0

si al posto di TOT_MP devi mettere un valore XD

 

Comunque cosi facendo hai messo che se gli sp massimi dell'eroe sono maggiori dei suoi sp, allora si visualizza la tecnica calcio... QUindi SEMPRE XDXD

 

Forse volevi mettere il contario :Ok:

 

Comunque se fai cosi allora è inutile introdurre una 3a variabile, basta usare direttamente quelle degli sp ^^

Link to comment
Share on other sites

  • 0
Vorrei che quando gli sp siano carichi ci sia il comando in pratica >.<

Iscriviti sul mio canale youtube -

https://www.youtube.com/channel/UCYOxXExvlXiOFfYD1fTFpww?view_as=subscriber

Seguimi su Instagram -

https://www.instagram.com/ancestralguitarist/

---------------------------------------------------------------------------------------------------------------------------------------
Contest vinti
---------------------------------------------------------------------------------------------------------------------------------------

FACE CONTEST # 3
BANNER CONTEST #69

Link to comment
Share on other sites

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