So RPS is basically just a shortcut for the mod's folder (LonaRPG\ModScripts\_Mods\RolePlayS). So for example in 170_menu_base, it sets @txtFolder = "../../#{RPS}Text/#{$lang}/". Because the game tries to map text to Text/#{lang} by default, this basically resolves to LonaRPG/ModScripts/_Mods/RolePlayS/Text/#{$lang} - where #{$lang} is ENG or RUS or MTL, etc.
Probably the best way to do this would be to intercept the @txtFolder to be your new path. Something like this:
Code:
class Menu_Gauge < Menu_ContentBase
alias_method :orig_initialize, :initialize
def initialize(actor)
orig_initialize(actor)
@txtFolder = "../../MyCustomPath/Text/#{$lang}/"
end
end
Though you'd want to be sure the new mapping has the correct text for all instances those files are referenced. If you only want to change a few things, it might actually be easier to just target the code that references @txtFolder for those few things vs. the entire text structure.