Ogłoszenie 

Uwaga! To forum jest w trybie offline.
Wszelką pomoc uzyskasz pod adresem
forum.ultimateam.pl


Administracja Forum


Poprzedni temat «» Następny temat
Zamknięty przez: Ayene
Sro 25 Maj, 2011 08:44
Prośba o przerobienie skryptu 3:]
Autor Wiadomość
raffallo 



Preferowany:
RPG Maker XP

Pomógł: 4 razy
Dołączył: 16 Sty 2011
Posty: 51
Skąd: Chełm
Wysłany: Czw 05 Maj, 2011 18:47
Prośba o przerobienie skryptu 3:]
Spoiler:

Kod:
#====================================================================
# Edited by Lartarin the Super Pig ^@^
#====================================================================
module BlizzCFG
#====================================================================
  STARTING_POINTS = 10 # ilość punktów startowych
  POINTS_PER_LEVEL = 5 # punkty do rozdania co poziom
  DISPLAY_ICON = true # wyświetl ikonę  true/false
  ICON_DATA = [612, 452, 192]
  EVASION = 'Unik'
  STR_LIMIT = 999 # max. siły
  DEX_LIMIT = 999 # max. zręczności
  AGI_LIMIT = 999 # max.szybkości
  INT_LIMIT = 999 # max.inteligencji
  WINDOW_MODE = true # true/false
  AUTOMATIC_CALL = false # true/false
  AUTOMATIC_MAP_CALL = false # true/false
#====================================================================
  ATTR_LIMITS = [STR_LIMIT, DEX_LIMIT, AGI_LIMIT, INT_LIMIT]
#====================================================================
  end
#====================================================================
class Array
 
  def sum
    result = 0
    self.each {|i| result += i if i.is_a?(Numeric)}
    return result
  end
 
end
#==================================================================== 
class Game_Actor < Game_Battler
#==================================================================== 
  attr_reader :points
 
  alias setup_sds_later setup
  def setup(actor_id)
    @points = BlizzCFG::STARTING_POINTS
    setup_sds_later(actor_id)
  end
 
  alias exp_sds_later exp=
  def exp=(exp)
    old_level = @level
    exp_sds_later(exp)
    add_stat_points((@level - old_level) * BlizzCFG::POINTS_PER_LEVEL)
  end
 
  def add_stat_points(val)
    @points += val if val > 0
  end
 
  def remove_stat_points(val)
    @points = [@points-val, 0].max
  end
 
end

#====================================================================
class Window_Base < Window
#==================================================================== 
  def draw_actor_battler(actor, x, y)
    bitmap = RPG::Cache.battler(actor.battler_name, actor.battler_hue)
    cw, ch = bitmap.width, bitmap.height
    src_rect = Rect.new(0, 0, cw, ch)
    self.contents.blt(x - cw/2, y - ch/2, bitmap, src_rect)
  end
 
  alias draw_actor_parameter_sds_later draw_actor_parameter
  def draw_actor_parameter(actor, x, y, type)
    if type == 7
      self.contents.font.color = system_color
      self.contents.draw_text(x, y, 120, 32, BlizzCFG::EVASION)
      self.contents.font.color = normal_color
      self.contents.draw_text(x + 120, y, 36, 32, actor.eva.to_s, 2)
    else
      draw_actor_parameter_sds_later(actor, x, y, type)
    end
  end
 
end

#====================================================================
class Window_Distribution_Status < Window_Base
#==================================================================== 
  attr_accessor :actor
 
  def initialize(actor)
    super(BlizzCFG::WINDOW_MODE ? 160 : 0, 0, 480, 480)
    @actor = actor
    self.contents = Bitmap.new(width - 32, height - 32)
    if $fontface != nil
      self.contents.font.name = "Comic Sans MS"
      self.contents.font.size = 22
      self.contents.font.bold = true
    elsif $defaultfonttype != nil
      self.contents.font.name = "Comic Sans MS"
      self.contents.font.size = 22
      self.contents.font.bold = true
    end
    refresh
  end
 
  def refresh
    self.contents.clear
    unless @actor == nil
      draw_actor_battler(@actor, 280, 120)
      draw_actor_name(@actor, 4, 0)
      draw_actor_class(@actor, 4, 32)
      draw_actor_level(@actor, 4, 64)
      draw_actor_state(@actor, 4, 96)
      self.contents.font.color = system_color
      self.contents.draw_text(4, 128, 80, 32, 'Doś.')
      self.contents.draw_text(4, 160, 80, 32, 'nast. poz.')
      self.contents.font.color = normal_color
      self.contents.draw_text(4, 128, 156, 32, @actor.exp_s, 2)
      self.contents.draw_text(4, 160, 156, 32, @actor.next_rest_exp_s, 2)
      draw_actor_hp(@actor, 4, 224, 172)
      draw_actor_sp(@actor, 4, 256, 172)
      draw_actor_parameter(@actor, 4, 320, 0)
      draw_actor_parameter(@actor, 4, 352, 1)
      draw_actor_parameter(@actor, 4, 384, 2)
      draw_actor_parameter(@actor, 4, 416, 7)
      self.contents.font.color = system_color
      self.contents.draw_text(240, 240, 96, 32, 'Ekwipunek')
      draw_item_name($data_weapons[@actor.weapon_id], 240, 288)
      draw_item_name($data_armors[@actor.armor1_id], 240, 320)
      draw_item_name($data_armors[@actor.armor2_id], 240, 352)
      draw_item_name($data_armors[@actor.armor3_id], 240, 384)
      draw_item_name($data_armors[@actor.armor4_id], 240, 416)
    end
  end
 
end
 
#====================================================================
class Window_Distribution < Window_Selectable
#==================================================================== 
  attr_accessor :actor
  attr_reader   :points
 
  def initialize(actor)
    super(BlizzCFG::WINDOW_MODE ? 0 : 480, 160, 160, 320)
    self.contents = Bitmap.new(width - 32, height - 32)
    if $fontface != nil
      self.contents.font.name = "Comic Sans MS"
      self.contents.font.size = 22
      self.contents.font.bold = true
      elsif $defaultfonttype != nil
      self.contents.font.name = "Comic Sans MS"
      self.contents.font.size = 22
      self.contents.font.bold = true
    end
    self.active, self.index, = false, 0
    @item_max, @actor, @att, @points = 4, actor, [0, 0, 0, 0], 0
    refresh
  end
 
  def set_new_attributes
    @actor.str += @att[0]
    @actor.dex += @att[1]
    @actor.agi += @att[2]
    @actor.int += @att[3]
    @actor.remove_stat_points(@points)
  end
 
  def actor=(actor)
    @actor = actor
    @att[0] = @att[1] = @att[2] = @att[3] = @points = 0
  end
 
  def refresh
    self.contents.clear
    unless @actor == nil
      self.contents.font.color = system_color
      self.contents.draw_text(52, 0, 72, 32, 'Pkt.', 2)
      self.contents.draw_text(4, 32, 120, 32, $data_system.words.str)
      self.contents.draw_text(4, 96, 120, 32, $data_system.words.dex)
      self.contents.draw_text(4, 160, 120, 32, $data_system.words.agi)
      self.contents.draw_text(4, 224, 120, 32, $data_system.words.int)
      self.contents.font.color = normal_color
      self.contents.draw_text(4, 0, 48, 32, "#{actor.points-@points}", 2)
      self.contents.draw_text(36, 64, 56, 32, "#{@actor.str+@att[0]}", 2)
      self.contents.draw_text(36, 128, 56, 32, "#{@actor.dex+@att[1]}", 2)
      self.contents.draw_text(36, 192, 56, 32, "#{@actor.agi+@att[2]}", 2)
      self.contents.draw_text(36, 256, 56, 32, "#{@actor.int+@att[3]}", 2)
      self.contents.font.size += 8
      self.contents.font.bold = true
      (0...4).each {|i|
          self.contents.draw_text(0, (i + 1) * 64 - 8, 32, 42, '&#171;', 2)
          self.contents.draw_text(96, (i + 1) * 64 - 8, 32, 42, '&#187;')}
      self.contents.font.bold = false
      self.contents.font.size -= 8
    end
  end
 
  def add_points(num)
    attr = [@actor.str, @actor.dex, @actor.agi, @actor.int]
    if @points < @actor.points &&
        attr[index]+@att[index] < BlizzCFG::ATTR_LIMITS[index]
      @points = [@points + num, @actor.points].min
      @att[index] = [@att[index]+num, @points+@att[index]-@att.sum].min
      return true
    end
    return false
  end
 
  def remove_points(num)
    if @points > 0 && @att[index] > 0
      @points = [@points - num, 0].max
      @att[index] = [@att[index] - num, 0].max
      return true
    end
    return false
  end
 
  def update
    super
    return unless self.active
    if Input.press?(Input::R)
      if Input.repeat?(Input::RIGHT)
        if add_points(100)
          $game_system.se_play($data_system.cursor_se)
          refresh
        else
          $game_system.se_play($data_system.buzzer_se)
        end
      elsif Input.repeat?(Input::LEFT)
        if remove_points(100)
          $game_system.se_play($data_system.cursor_se)
          refresh
        else
          $game_system.se_play($data_system.buzzer_se)
        end
      end
    elsif Input.press?(Input::L)
      if Input.repeat?(Input::RIGHT)
        if add_points(10)
          $game_system.se_play($data_system.cursor_se)
          refresh
        else
          $game_system.se_play($data_system.buzzer_se)
        end
      elsif Input.repeat?(Input::LEFT)
        if remove_points(10)
          $game_system.se_play($data_system.cursor_se)
          refresh
        else
          $game_system.se_play($data_system.buzzer_se)
        end
      end
    elsif Input.repeat?(Input::RIGHT)
      if add_points(1)
        $game_system.se_play($data_system.cursor_se)
        refresh
      else
        $game_system.se_play($data_system.buzzer_se)
      end
    elsif Input.repeat?(Input::LEFT)
      if remove_points(1)
        $game_system.se_play($data_system.cursor_se)
        refresh
      else
        $game_system.se_play($data_system.buzzer_se)
      end
    end
  end
 
  def update_cursor_rect
    if @index < 0 || !self.active
      self.cursor_rect.empty
    else
      self.cursor_rect.set(32, (@index+1)*64, 64, 32)
    end
  end
 
end
 
#====================================================================
class Window_Sure < Window_Command
#==================================================================== 
  attr_accessor :actor
 
  def initialize(width, commands)
    commands.push('')
    super
    @item_max, self.index = commands.size - 1, 0
    self.x, self.y, self.z = 320-self.width/2, 240-self.height/2, 10000
    refresh
  end
 
  def refresh
    super
    self.contents.font.color = system_color
    self.contents.draw_text(4, 0, self.contents.width - 8, 32, 'Jesteś pewien?', 1)
  end
 
  def draw_item(index, color)
    self.contents.font.color = color
    rect = Rect.new(4, 32 * (index+1), self.contents.width - 8, 32)
    self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
    self.contents.draw_text(rect, @commands[index], 1)
  end
 
  def update_cursor_rect
    if @index < 0
      self.cursor_rect.empty
    else
      self.cursor_rect.set(32, (@index+1)*32, self.contents.width - 64, 32)
    end
  end
 
end

#==================================================================== 
class Scene_Points
#==================================================================== 
  def initialize
    @actor, @scene = $game_party.actors[0], $scene.class
  end



Potrzebuję przerobić ten skrypt tak aby był tylko na jedną postać czyli nie pytał o wybraną postać tylko odrazu przechodził do rozdawania i w rozdawaniu zamiast dziwnych znaczków pokazywał strzaŁKI W BOKI, oto screen:

http://img848.imageshack.us/i/yfy.png
________________________
Mój projekt:
-Free Spirits (Demo) - 65% ukończenia
-Free Spirits (Full) - około 3% ukończenia
Maping-3%
Skrypty-33%
Questy-2%
Obmyślona gra-40%
Fabuła-1% :]

Poszukuję kogoś do pomocy przy układaniu dialogów jak i robienia grafiki w pixelarcie (chodzi tu głównie o chary roślin, grzybów, i innych naturalnych przedmiotów, które można wyłożyć na mapie)


Poszukuję Administracji i Moderatorów do strony : www.enaruto-x.cba.pl
Wcześniej : www.enaruto-x.yoyo.pl
Ostatnio zmieniony przez Ayene Sob 07 Maj, 2011 22:32, w całości zmieniany 1 raz  
 
 
raffallo 



Preferowany:
RPG Maker XP

Pomógł: 4 razy
Dołączył: 16 Sty 2011
Posty: 51
Skąd: Chełm
Wysłany: Pią 06 Maj, 2011 15:24
@refresh:

Odświeżam temat nowym postem ponieważ nikt nie odpisuje
________________________
Mój projekt:
-Free Spirits (Demo) - 65% ukończenia
-Free Spirits (Full) - około 3% ukończenia
Maping-3%
Skrypty-33%
Questy-2%
Obmyślona gra-40%
Fabuła-1% :]

Poszukuję kogoś do pomocy przy układaniu dialogów jak i robienia grafiki w pixelarcie (chodzi tu głównie o chary roślin, grzybów, i innych naturalnych przedmiotów, które można wyłożyć na mapie)


Poszukuję Administracji i Moderatorów do strony : www.enaruto-x.cba.pl
Wcześniej : www.enaruto-x.yoyo.pl
 
 
Ayene 




Ranga RM:
4 gry

Pomogła: 232 razy
Dołączyła: 18 Wrz 2007
Posty: 2424
Wysłany: Sob 07 Maj, 2011 22:12
Dobrze przetestuj...
Spoiler:

Kod:
#====================================================================
# Edited by Lartarin the Super Pig ^@^
#====================================================================
module BlizzCFG
#====================================================================
  STARTING_POINTS = 10 # ilość punktów startowych
  POINTS_PER_LEVEL = 5 # punkty do rozdania co poziom
  DISPLAY_ICON = true # wyświetl ikonę  true/false
  ICON_DATA = [612, 452, 192]
  EVASION = 'Unik'
  STR_LIMIT = 999 # max. siły
  DEX_LIMIT = 999 # max. zręczności
  AGI_LIMIT = 999 # max.szybkości
  INT_LIMIT = 999 # max.inteligencji
  WINDOW_MODE = true # true/false
  AUTOMATIC_CALL = false # true/false
  AUTOMATIC_MAP_CALL = false # true/false
#====================================================================
  ATTR_LIMITS = [STR_LIMIT, DEX_LIMIT, AGI_LIMIT, INT_LIMIT]
#====================================================================
  end
#====================================================================
class Array
 
  def sum
    result = 0
    self.each {|i| result += i if i.is_a?(Numeric)}
    return result
  end
 
end
#====================================================================
class Game_Actor < Game_Battler
#====================================================================
  attr_reader :points
 
  alias setup_sds_later setup
  def setup(actor_id)
    @points = BlizzCFG::STARTING_POINTS
    setup_sds_later(actor_id)
  end
 
  alias exp_sds_later exp=
  def exp=(exp)
    old_level = @level
    exp_sds_later(exp)
    add_stat_points((@level - old_level) * BlizzCFG::POINTS_PER_LEVEL)
  end
 
  def add_stat_points(val)
    @points += val if val > 0
  end
 
  def remove_stat_points(val)
    @points = [@points-val, 0].max
  end
 
end

#====================================================================
class Window_Base < Window
#====================================================================
  def draw_actor_battler(actor, x, y)
    bitmap = RPG::Cache.battler(actor.battler_name, actor.battler_hue)
    cw, ch = bitmap.width, bitmap.height
    src_rect = Rect.new(0, 0, cw, ch)
    self.contents.blt(x - cw/2, y - ch/2, bitmap, src_rect)
  end
 
  alias draw_actor_parameter_sds_later draw_actor_parameter
  def draw_actor_parameter(actor, x, y, type)
    if type == 7
      self.contents.font.color = system_color
      self.contents.draw_text(x, y, 120, 32, BlizzCFG::EVASION)
      self.contents.font.color = normal_color
      self.contents.draw_text(x + 120, y, 36, 32, actor.eva.to_s, 2)
    else
      draw_actor_parameter_sds_later(actor, x, y, type)
    end
  end
 
end

#====================================================================
class Window_Distribution_Status < Window_Base
#====================================================================
  attr_accessor :actor
 
  def initialize(actor)
    super(BlizzCFG::WINDOW_MODE ? 160 : 0, 0, 480, 480)
    @actor = actor
    self.contents = Bitmap.new(width - 32, height - 32)
    if $fontface != nil
    #  self.contents.font.name = "Comic Sans MS"
      self.contents.font.size = 22
      self.contents.font.bold = true
    elsif $defaultfonttype != nil
    #  self.contents.font.name = "Comic Sans MS"
      self.contents.font.size = 22
      self.contents.font.bold = true
    end
    refresh
  end
 
  def refresh
    self.contents.clear
    unless @actor == nil
      draw_actor_battler(@actor, 280, 120)
      draw_actor_name(@actor, 4, 0)
      draw_actor_class(@actor, 4, 32)
      draw_actor_level(@actor, 4, 64)
      draw_actor_state(@actor, 4, 96)
      self.contents.font.color = system_color
      self.contents.draw_text(4, 128, 80, 32, 'Doś.')
      self.contents.draw_text(4, 160, 80, 32, 'nast. poz.')
      self.contents.font.color = normal_color
      self.contents.draw_text(4, 128, 156, 32, @actor.exp_s, 2)
      self.contents.draw_text(4, 160, 156, 32, @actor.next_rest_exp_s, 2)
      draw_actor_hp(@actor, 4, 224, 172)
      draw_actor_sp(@actor, 4, 256, 172)
      draw_actor_parameter(@actor, 4, 320, 0)
      draw_actor_parameter(@actor, 4, 352, 1)
      draw_actor_parameter(@actor, 4, 384, 2)
      draw_actor_parameter(@actor, 4, 416, 7)
      self.contents.font.color = system_color
      self.contents.draw_text(240, 240, 96, 32, 'Ekwipunek')
      draw_item_name($data_weapons[@actor.weapon_id], 240, 288)
      draw_item_name($data_armors[@actor.armor1_id], 240, 320)
      draw_item_name($data_armors[@actor.armor2_id], 240, 352)
      draw_item_name($data_armors[@actor.armor3_id], 240, 384)
      draw_item_name($data_armors[@actor.armor4_id], 240, 416)
    end
  end
 
end
 
#====================================================================
class Window_Distribution < Window_Selectable
#====================================================================
  attr_accessor :actor
  attr_reader   :points
 
  def initialize(actor)
    super(BlizzCFG::WINDOW_MODE ? 0 : 480, 0, 160, 480)
    self.contents = Bitmap.new(width - 32, height - 32)
    if $fontface != nil
      self.contents.font.name = "Comic Sans MS"
      self.contents.font.size = 22
      self.contents.font.bold = true
      elsif $defaultfonttype != nil
      self.contents.font.name = "Comic Sans MS"
      self.contents.font.size = 22
      self.contents.font.bold = true
    end
    self.active, self.index, = true, 0
    @item_max, @actor, @att, @points = 4, actor, [0, 0, 0, 0], 0
    refresh
  end
 
  def set_new_attributes
    @actor.str += @att[0]
    @actor.dex += @att[1]
    @actor.agi += @att[2]
    @actor.int += @att[3]
    @actor.remove_stat_points(@points)
  end
 
  def actor=(actor)
    @actor = actor
    @att[0] = @att[1] = @att[2] = @att[3] = @points = 0
  end
 
  def refresh
    self.contents.clear
    unless @actor == nil
      self.contents.font.color = system_color
      self.contents.draw_text(52, 10, 72, 32, 'Pkt.', 2)
      self.contents.draw_text(4, 64, 120, 32, $data_system.words.str)
      self.contents.draw_text(4, 128, 120, 32, $data_system.words.dex)
      self.contents.draw_text(4, 192, 120, 32, $data_system.words.agi)
      self.contents.draw_text(4, 256, 120, 32, $data_system.words.int)
      self.contents.font.color = normal_color
      self.contents.draw_text(4, 10, 48, 32, "#{actor.points-@points}", 2)
      self.contents.draw_text(36, 96, 56, 32, "#{@actor.str+@att[0]}", 2)
      self.contents.draw_text(36, 160, 56, 32, "#{@actor.dex+@att[1]}", 2)
      self.contents.draw_text(36, 224, 56, 32, "#{@actor.agi+@att[2]}", 2)
      self.contents.draw_text(36, 288, 56, 32, "#{@actor.int+@att[3]}", 2)
      self.contents.font.size += 8
      self.contents.font.bold = true
      (0...4).each {|i|
          self.contents.draw_text(0, (i + 1) * 64 - 8 + 32, 32, 42, '&#171;', 2)
          self.contents.draw_text(96, (i + 1) * 64 - 8 + 32, 32, 42, '&#187;')}
      self.contents.font.bold = false
      self.contents.font.size -= 8
      self.contents.draw_text(4, 352, 156, 32, "Wyjście:", 0)
      self.contents.draw_text(4, 384, 156, 32, "Enter / Esc", 0)
    end
  end
 
  def add_points(num)
    attr = [@actor.str, @actor.dex, @actor.agi, @actor.int]
    if @points < @actor.points &&
        attr[index]+@att[index] < BlizzCFG::ATTR_LIMITS[index]
      @points = [@points + num, @actor.points].min
      @att[index] = [@att[index]+num, @points+@att[index]-@att.sum].min
      return true
    end
    return false
  end
 
  def remove_points(num)
    if @points > 0 && @att[index] > 0
      @points = [@points - num, 0].max
      @att[index] = [@att[index] - num, 0].max
      return true
    end
    return false
  end
 
  def update
    super
    return unless self.active
    if Input.press?(Input::R)
      if Input.repeat?(Input::RIGHT)
        if add_points(100)
          $game_system.se_play($data_system.cursor_se)
          refresh
        else
          $game_system.se_play($data_system.buzzer_se)
        end
      elsif Input.repeat?(Input::LEFT)
        if remove_points(100)
          $game_system.se_play($data_system.cursor_se)
          refresh
        else
          $game_system.se_play($data_system.buzzer_se)
        end
      end
    elsif Input.press?(Input::L)
      if Input.repeat?(Input::RIGHT)
        if add_points(10)
          $game_system.se_play($data_system.cursor_se)
          refresh
        else
          $game_system.se_play($data_system.buzzer_se)
        end
      elsif Input.repeat?(Input::LEFT)
        if remove_points(10)
          $game_system.se_play($data_system.cursor_se)
          refresh
        else
          $game_system.se_play($data_system.buzzer_se)
        end
      end
    elsif Input.repeat?(Input::RIGHT)
      if add_points(1)
        $game_system.se_play($data_system.cursor_se)
        refresh
      else
        $game_system.se_play($data_system.buzzer_se)
      end
    elsif Input.repeat?(Input::LEFT)
      if remove_points(1)
        $game_system.se_play($data_system.cursor_se)
        refresh
      else
        $game_system.se_play($data_system.buzzer_se)
      end
    end
  end
 
  def update_cursor_rect
    if @index < 0 || !self.active
      self.cursor_rect.empty
    else
      self.cursor_rect.set(32, (@index+1)*64 + 32, 64, 32)
    end
  end
 
end
 
#====================================================================
class Window_Sure < Window_Command
#====================================================================
  attr_accessor :actor
 
  def initialize(width, commands)
    commands.push('')
    super
    @item_max, self.index = commands.size - 1, 0
    self.x, self.y, self.z = 320-self.width/2, 240-self.height/2, 10000
    refresh
  end
 
  def refresh
    super
    self.contents.font.color = system_color
    self.contents.draw_text(4, 0, self.contents.width - 8, 32, 'Jesteś pewien?', 1)
  end
 
  def draw_item(index, color)
    self.contents.font.color = color
    rect = Rect.new(4, 32 * (index+1), self.contents.width - 8, 32)
    self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
    self.contents.draw_text(rect, @commands[index], 1)
  end
 
  def update_cursor_rect
    if @index < 0
      self.cursor_rect.empty
    else
      self.cursor_rect.set(32, (@index+1)*32, self.contents.width - 64, 32)
    end
  end
 
end

#====================================================================
class Scene_Points
#====================================================================
  def initialize
    @actor, @scene = $game_party.actors[0], $scene.class
  end
 
  def main
    @status_window = Window_Distribution_Status.new(@actor)
    @distro_window = Window_Distribution.new(@actor)
    Graphics.transition
    loop do
      Graphics.update
      Input.update
      update
      break if $scene != self
    end
    Graphics.freeze
    [@status_window, @distro_window].each {|win| win.dispose}
  end
 
  def make_sure_window
    commands = ['Nie', 'Akceptuj zmiany', 'Odrzuć zmiany']
    @sure_window = Window_Sure.new(256, commands)
  end
 
  def update
    if @sure_window != nil
      @sure_window.update
      update_sure
    elsif @distro_window.active
      @distro_window.update
      if Input.trigger?(Input::C) or Input.trigger?(Input::B)       
        @distro_window.active = false
        if @distro_window.points != 0
          $game_system.se_play($data_system.decision_se)
          make_sure_window
        else
          $game_system.se_play($data_system.cancel_se)
          $scene = Scene_Map.new
        end
      end
    end   
  end
 
  def update_sure
    if Input.trigger?(Input::B)
      $game_system.se_play($data_system.cancel_se)
      @sure_window.dispose
      @sure_window = nil
      @distro_window.active = true
    elsif Input.trigger?(Input::C)     
      if @sure_window.index > 0
        $game_system.se_play($data_system.decision_se)
        @distro_window.set_new_attributes if @sure_window.index == 1
        @actor = @status_window.actor = @distro_window.actor = $game_party.actors[0]
        [@status_window, @distro_window].each {|win| win.refresh}
      else
        $game_system.se_play($data_system.cancel_se)
        $scene = Scene_Map.new
      end
      @sure_window.dispose
      @sure_window = nil 
      @distro_window.active = true
    end   
  end
end

#====================================================================
class Scene_Battle
#====================================================================
  alias main_sds_later main
  def main
    main_sds_later
    if BlizzCFG::AUTOMATIC_CALL &&
        $game_party.actors.any? {|actor| actor.points > 0}
      $scene = Scene_Points.new
    end
  end
end

#====================================================================
class Scene_Map
#====================================================================
  alias main_sds_later main
  def main
    main_sds_later
    @notify.dispose if @notify != nil
  end
 
  alias upd_sds_later update
  def update
    check_icon if BlizzCFG::DISPLAY_ICON
    upd_sds_later
    if BlizzCFG::AUTOMATIC_MAP_CALL &&
        $game_party.actors.any? {|actor| actor.points > 0}
      $scene = Scene_Points.new
    end
  end
  def check_icon
    if $game_party.actors.any? {|actor| actor.points > 0}
      if @notify == nil
        @notify = RPG::Sprite.new       
      else
        @notify.bitmap = Bitmap.new(24, 24)
        @notify.bitmap.fill_rect(0, 0, 24, 24, Color.new(255, 255, 255))
        @notify.bitmap.fill_rect(22, 1, 2, 23, Color.new(0, 0, 0))
        @notify.bitmap.fill_rect(1, 22, 23, 2, Color.new(0, 0, 0))
        @notify.bitmap.set_pixel(23, 0, Color.new(0, 0, 0))
        @notify.bitmap.set_pixel(0, 23, Color.new(0, 0, 0))
        @notify.bitmap.fill_rect(2, 2, 20, 20, Color.new(0, 0, 224))
        @notify.bitmap.fill_rect(4, 10, 16, 4, Color.new(255, 255, 255))
        @notify.bitmap.fill_rect(10, 4, 4, 16, Color.new(255, 255, 255))
        @notify.opacity = BlizzCFG::ICON_DATA[2]
      end
      @notify.x, @notify.y = BlizzCFG::ICON_DATA[0, 2]
      @notify.z = 5000
      @notify.blink_on
    end
    @notify.update   
  end
end
#====================================================================
# www.ultimateam.pl
#====================================================================



PS Na forum nie stosujemy tzw. 'bumpów'. Są sprzeczne z regulaminem.
________________________


 
 
 
raffallo 



Preferowany:
RPG Maker XP

Pomógł: 4 razy
Dołączył: 16 Sty 2011
Posty: 51
Skąd: Chełm
Wysłany: Sob 07 Maj, 2011 22:21
Ayene, Jest już na jedną postać lecz jeszcze jest coś nie tak w głównym kwadracie zobacz screena :



Wcześniej było dobrze jak było rozpisane umiejętności i co się nosi :]
A i te znaki &#18 i &#17 weź zamień na strzałki normalne z pliku umieszczane w pictures, ok ?? :]
________________________
Mój projekt:
-Free Spirits (Demo) - 65% ukończenia
-Free Spirits (Full) - około 3% ukończenia
Maping-3%
Skrypty-33%
Questy-2%
Obmyślona gra-40%
Fabuła-1% :]

Poszukuję kogoś do pomocy przy układaniu dialogów jak i robienia grafiki w pixelarcie (chodzi tu głównie o chary roślin, grzybów, i innych naturalnych przedmiotów, które można wyłożyć na mapie)


Poszukuję Administracji i Moderatorów do strony : www.enaruto-x.cba.pl
Wcześniej : www.enaruto-x.yoyo.pl
 
 
Ayene 




Ranga RM:
4 gry

Pomogła: 232 razy
Dołączyła: 18 Wrz 2007
Posty: 2424
Wysłany: Sob 07 Maj, 2011 22:31
W 94 i 97 linijce usuń znaczki # na początku. A jeśli chodzi o strzałki, to są, tylko że na forum w tagach code zmieniają się na krzaczki.

Zamień:
Kod:
&#171;
na «
Kod:
&#187;
na »
________________________


 
 
 
raffallo 



Preferowany:
RPG Maker XP

Pomógł: 4 razy
Dołączył: 16 Sty 2011
Posty: 51
Skąd: Chełm
Wysłany: Sob 07 Maj, 2011 22:39
Ayene, Wielkie dzięki działa wszystko :]
Jeszcze tak się zastanawiam czy dało by się zrobić tak że jak np.: nie da się odjąć jakiejś UM to nie pokazuje się strzałka??
Jak się nie da albo ci się nie chce tego robić to możesz zamknąć temat.

No i oczywiście pomógł masz:]

Jutro zakładam kolejny temat : "Prośba o przerobienie skryptu 5"
________________________
Mój projekt:
-Free Spirits (Demo) - 65% ukończenia
-Free Spirits (Full) - około 3% ukończenia
Maping-3%
Skrypty-33%
Questy-2%
Obmyślona gra-40%
Fabuła-1% :]

Poszukuję kogoś do pomocy przy układaniu dialogów jak i robienia grafiki w pixelarcie (chodzi tu głównie o chary roślin, grzybów, i innych naturalnych przedmiotów, które można wyłożyć na mapie)


Poszukuję Administracji i Moderatorów do strony : www.enaruto-x.cba.pl
Wcześniej : www.enaruto-x.yoyo.pl
 
 
Ayene 




Ranga RM:
4 gry

Pomogła: 232 razy
Dołączyła: 18 Wrz 2007
Posty: 2424
Wysłany: Nie 08 Maj, 2011 11:52
Zamień fragment:
Kod:
(0...4).each {|i|
          self.contents.draw_text(0, (i + 1) * 64 - 8 + 32, 32, 42, '&#171;', 2)
          self.contents.draw_text(96, (i + 1) * 64 - 8 + 32, 32, 42, '&#187;')}

na:
Spoiler:

(0...4).each {|i|
if @points > 0
self.contents.draw_text(0, (i + 1) * 64 - 8 + 32, 32, 42, '«', 2)
end
case i
when 0
if @actor.points-@points > 0 and @actor.str < BlizzCFG::STR_LIMIT
self.contents.draw_text(96, (i + 1) * 64 - 8 + 32, 32, 42, '»')
end
when 1
if @actor.points-@points > 0 and @actor.dex < BlizzCFG::DEX_LIMIT
self.contents.draw_text(96, (i + 1) * 64 - 8 + 32, 32, 42, '»')
end
when 2
if @actor.points-@points > 0 and @actor.agi < BlizzCFG::AGI_LIMIT
self.contents.draw_text(96, (i + 1) * 64 - 8 + 32, 32, 42, '»')
end
when 3
if @actor.points-@points > 0 and @actor.int < BlizzCFG::INT_LIMIT
self.contents.draw_text(96, (i + 1) * 64 - 8 + 32, 32, 42, '»')
end
end
}


(celowo nie dałam w kodzie, by nie zamieniło strzałek)
________________________


 
 
 
raffallo 



Preferowany:
RPG Maker XP

Pomógł: 4 razy
Dołączył: 16 Sty 2011
Posty: 51
Skąd: Chełm
Wysłany: Nie 08 Maj, 2011 15:11
Ayene, jest dobrze tylko że jak dodam np.: siłę to wszędzie się pokazują strzałki żeby odjąć a ja bym chciał żeby pojawiały się tam gdzie dodałem tylko
________________________
Mój projekt:
-Free Spirits (Demo) - 65% ukończenia
-Free Spirits (Full) - około 3% ukończenia
Maping-3%
Skrypty-33%
Questy-2%
Obmyślona gra-40%
Fabuła-1% :]

Poszukuję kogoś do pomocy przy układaniu dialogów jak i robienia grafiki w pixelarcie (chodzi tu głównie o chary roślin, grzybów, i innych naturalnych przedmiotów, które można wyłożyć na mapie)


Poszukuję Administracji i Moderatorów do strony : www.enaruto-x.cba.pl
Wcześniej : www.enaruto-x.yoyo.pl
 
 
Ayene 




Ranga RM:
4 gry

Pomogła: 232 razy
Dołączyła: 18 Wrz 2007
Posty: 2424
Wysłany: Pią 20 Maj, 2011 10:12
Znajdź około 191 linijki:
Kod:
if @points > 0

i zamień na:
Kod:
if @points > 0 and @att[i] > 0
________________________


 
 
 
raffallo 



Preferowany:
RPG Maker XP

Pomógł: 4 razy
Dołączył: 16 Sty 2011
Posty: 51
Skąd: Chełm
Wysłany: Sro 25 Maj, 2011 08:04
Dzięki wielkie :] Temat do zamknięcia.
________________________
Mój projekt:
-Free Spirits (Demo) - 65% ukończenia
-Free Spirits (Full) - około 3% ukończenia
Maping-3%
Skrypty-33%
Questy-2%
Obmyślona gra-40%
Fabuła-1% :]

Poszukuję kogoś do pomocy przy układaniu dialogów jak i robienia grafiki w pixelarcie (chodzi tu głównie o chary roślin, grzybów, i innych naturalnych przedmiotów, które można wyłożyć na mapie)


Poszukuję Administracji i Moderatorów do strony : www.enaruto-x.cba.pl
Wcześniej : www.enaruto-x.yoyo.pl
 
 
Wyświetl posty z ostatnich:   
Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi
Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Nie możesz załączać plików na tym forum
Możesz ściągać załączniki na tym forum
Dodaj temat do Ulubionych
Wersja do druku

Skocz do:  

Powered by phpBB modified by Przemo © 2003 phpBB Group | Template Klam by Ayene