RPG Maker Forums

I just got a something funny in module Vocab.

My goal was to be able to switching Vocab to other language.

But, since the variables in Vocab are constant (which is unable to change), I though that was impossible.

Later ......

Since I knew the word 'require' in ruby, I planned to make a switching vocab by a script call.

def translated require 'indo_vocab'enddef english require 'english_vocab'endThe indo_vocab.rb contains translated module vocab in my language.I tried to make two events that call these two methods.

But I realized that you could only call the 'require' keyword with same parameter in one time.

Okay, my experiment was failed ...

Then, I've been wondering what if I could re-define Vocab by using script call. So, I tried to make these code

def indonesian_vocab eval(" module Vocab ShopBuy = \"Beli\" # Buy in my language end ")enddef english_vocab eval(" module Vocab ShopBuy = \"Buy\" end ")endAnd did you know? it works perfectly :D Well, I just want to share this trick. And I'm sorry if I can't explain a thing in english properly

Latest Threads

Latest Profile Posts

Frostorm wrote on Featherbrain's profile.
Hey, so what species are your raptors? Any of these?
... so here's my main characters running around inside "Headspace", a place people use as a safe place away from anxious/panic related thinking.
Stream will be live shortly! I will be doing some music tonight! Feel free to drop by!
Made transition effects for going inside or outside using zoom, pixi filter, and a shutter effect
I have gathered enough feedback from a few selected people. But it is still available if you want to sign up https://forums.rpgmakerweb.com/index.php?threads/looking-for-testers-a-closed-tech-demo.130774/

Forum statistics

Threads
105,992
Messages
1,018,189
Members
137,771
Latest member
evoque
Top