Save-Point
Show all status names - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Archives (https://www.save-point.org/forum-105.html)
+--- Forum: Creation Asylum Archives (https://www.save-point.org/forum-90.html)
+---- Forum: Scripts & Code Snippets (https://www.save-point.org/forum-92.html)
+----- Forum: RPG Maker XP Code (https://www.save-point.org/forum-93.html)
+----- Thread: Show all status names (/thread-6831.html)



Show all status names - Guedez - 12-26-2005

This is a locked, single-post thread from Creation Asylum. Archived here to prevent its loss.
No support is given. If you are the owner of the thread, please contact administration.


its simple, just change in Window_Base this:
Code:
def make_battler_state_text(battler, width, need_normal)
    # Selecionar comrpimento dos Colchetes
    brackets_width = self.contents.text_size("[]").width
    # Criar um string de Status para texto
    text = ""
    for i in battler.states
      if $data_states[i].rating >= 1
        if text == ""
          text = $data_states[i].name
        else
          new_text = text + "/" + $data_states[i].name
          text_width = self.contents.text_size(new_text).width
          if text_width > width - brackets_width
            break
          end
          text = new_text
        end
      end
    end
    # Caso esteja vazio o string de texto, tornar isto Normal
    if text == ""
      if need_normal
        text = "[Normal]"
      end
    else
      # Anexar Colchetes
      text = "[" + text + "]"
    end
    # Retornar string de texto
    return text
  end

to this:
Code:
    def make_battler_state_text(battler, width, need_normal)
    # Selecionar comrpimento dos Colchetes
    brackets_width = self.contents.text_size("[]").width
    # Criar um string de Status para texto
    text = ""
    textsize = 0
    for i in battler.states
      if $data_states[i].rating >= 1
        if  textsize < 1
          text += $data_states[i].name
          textsize += 1
        else
          text += "," + $data_states[i].name
          textsize += 1
        end
      end
    end
    # Caso esteja vazio o string de texto, tornar isto Normal
    if text == ""
      if need_normal
        text = "[Normal]"
      end
    else
      # Anexar Colchetes
      text = "[" + text + "]"
    end
    # Retornar string de texto
    return text
  end
and remember, use small names, one or two letters, or it will not show all (dont add 20 or more status too)