Translate a word from System

I want to set a word for e.g. "MP, Object, Ability, Axe" from a script.

It should overwrite whatever is in the database.

Thank you for your help! 😍
I'm confused. VX Ace let's you change the vocab of almost everything in the database.
I would like to change it with a script below materials.

Then I can use my variables to determine the player's language.

Then I can change it depending on that fact during the game.

---

The player has no access to the VX Ace database.

This is about the "during runtime" part, Tridium. I hope this makes more sense to you.
Search for a script called SES external texts with its multilanguage add-on.

replacing the database terms directly is not as easy as they are referenced multiple times in the scripts, it's better to use a script that alreadfy does something similar.
and there were several translation scripts, although I don't know which ones are still available
What you can do "out of the box":

- You can go to Modules>Vocab and change/overwrite the system script for things like
"Buy", "Sell", "$s appears!"

If I did what Tridium said, I would have GameEnglish, GameFrench and so on... and I would need to care for every build seperately which would lead to inconsistency and version issues and more.

---
So I will look for SES, thank you Andar.

But I would prefer something that does only what I need. Which is changing the database terminology page only. (Starts with Elements:"01 Physical" and ends with Commands:"Cancel")

Edit: After reading about it. SES might not work with my busts.
Also I see no link, only how to use.
Well, back to step one.
Something like this probably. It's just replacing the registered text (whole text, not partial) with something else.
Ruby:
class Window_Base
  TEXT_SWITCH_ID = 99 # if switch on, replace text
  TEXT_REPLACER = {
    # original => Replacer
    "Item" => "Item2"
  }
  alias textreplacer_draw_text draw_text
  def draw_text(*args)
    if $game_switches[TEXT_SWITCH_ID]
      if args[0].is_a?(Rect)
        args[1] = TEXT_REPLACER[args[1]] if TEXT_REPLACER[args[1]]
      else
        args[4] = TEXT_REPLACER[args[4]] if TEXT_REPLACER[args[4]]
      end
    end
    textreplacer_draw_text(*args)
  end
end
I remember there was a Localization script for XP by ForeverZer0 that KK20 ported to be compatible with VXA. I don't think it would be compatible with your variable method, but it could be an alternative. Unfortunately I don't have it directly on hand and I'm not sure where I originally found it, I could have sworn it was somewhere in Archeia's script repo on github but it doesn't seem to be there on first glance now.

EDIT: My bad, misunderstood what you were looking for. Sorry, I'm not sure about any scripts that function that way during runtime.
Np, thanks for helping LucaBicono.

Thank you TheoAllen. Whole text is absolutely fine.
If I understand it correctly, we can do it like this:

class Window_Base TEXT_SWITCH_ID_A = 99 # if switch on, replace text TEXT_REPLACER_LANG_A = { # original => Replacer "Item" => "ItemTwo" } TEXT_SWITCH_ID_B = 100 # if switch on, replace text TEXT_REPLACER_LANG_B = { # original => Replacer "Item" => "ItemZwei" } TEXT_SWITCH_ID_C = 101 # if switch on, replace text TEXT_REPLACER_LANG_C = { # original => Replacer "Item" => "ItemDeux" } alias textreplacer_draw_text draw_text def draw_text(*args) if $game_switches[TEXT_SWITCH_ID_A] if args[0].is_a?(Rect) args[1] = TEXT_REPLACER_LANG_A[args[1]] if TEXT_REPLACER_LANG_A[args[1]] else args[4] = TEXT_REPLACER_LANG_A[args[4]] if TEXT_REPLACER_LANG_A[args[4]] end end if $game_switches[TEXT_SWITCH_ID_B] if args[0].is_a?(Rect) args[1] = TEXT_REPLACER_LANG_B[args[1]] if TEXT_REPLACER_LANG_B[args[1]] else args[4] = TEXT_REPLACER_LANG_B[args[4]] if TEXT_REPLACER_LANG_B[args[4]] end end if $game_switches[TEXT_SWITCH_ID_C] if args[0].is_a?(Rect) args[1] = TEXT_REPLACER_LANG_C[args[1]] if TEXT_REPLACER_LANG_C[args[1]] else args[4] = TEXT_REPLACER_LANG_C[args[4]] if TEXT_REPLACER_LANG_C[args[4]] end end textreplacer_draw_text(*args) end end

Scarlet looks great. If you ever feel like translating to German/French. Maybe we could talk.

Need to do testing with it but it feels like I can use it for my needs. 🙏
I want to translate "attacks" "defends himself".

The other words worked, but I am having a problem here. Character Trivia might be like this, too.

---

Better Example:

"Hasty Knife" (ABILITY)

"Knife attack decreases enemy's defense for two turns" (DESCRIPTION)

"uses Hasty Knife!" <- like attack, defend (PHRASE IN BATTLE)

It seems to be in args[] somewhere.

---
Console Output:

Spoiler: Console
[24,0,172,24,"Hasty Knife"]
[(0,0,240,24),10,2]
[4,0,20,24,"K"]
[14,0,20,24,"n"]
[24,0,20,24,"i"]
[34,0,20,24,"f"]
[44,0,20,24,"e"]
[54,0,20,24,""]
[64,0,20,24,"a"]
[74,0,20,24,"t"]
[84,0,20,24,"t"]
[94,0,20,24,"a"]
[104,0,20,24,"c"]
[114,0,20,24,"k"]
[124,0,20,24,""]
[134,0,20,24,"d"]
[144,0,20,24,"e"]
[154,0,20,24,"c"]
[164,0,20,24,"r"]
[174,0,20,24,"e"]
[184,0,20,24,"a"]
[194,0,20,24,"s"]
[204,0,20,24,"e"]
[214,0,20,24,"s"]
[224,0,20,24,""]
[234,0,20,24,"e"]
[244,0,20,24,"n"]
[254,0,20,24,"e"]
[264,0,20,24,"m"]
[274,0,20,24,"y"]
[284,0,20,24,"'"]
[294,0,20,24,"s"]
[304,0,20,24,""]
[314,0,20,24,"d"]
[324,0,20,24,"e"]
[334,0,20,24,"f"]
[344,0,20,24,"e"]
[354,0,20,24,"n"]
[364,0,20,24,"s"]
[374,0,20,24,"e"]
[384,0,20,24,"\r"]
[4,24,20,24,"f"]
[14,24,20,24,"o"]
[24,24,20,24,"r"]
[34,24,20,24,""]
[44,24,20,24,"t"]
[54,24,20,24,"w"]
[64,24,20,24,"o"]
[74,24,20,24,""]
[84,24,20,24,"t"]
[94,24,20,24,"u"]
[104,24,20,24,"r"]
[114,24,20,24,"n"]
[124,24,20,24,"s"]
[134,24,20,24,"."]

Thank you so much for helping! 👋

---

Maybe I should rewrite Window_BattleLog


Code:
#-------
# * Display Skill/Item Use
#-------
def display_use_items(subject, item)
 if item.is_a?(RPG::Skill)
   add_text(subject.name + item.message1)
   unless item.message2.empty?
    wait
    add_text(item.message2)
   end
  else
    add_text(sprintf(Vocab::UseItem, subject.name, item.name))
  end
end

Your special ability is actually just another item. But it's still cool. 😤

Original thread: https://forums.rpgmakerweb.com/threads/translate-a-word-from-system.164694/