Hi... I tried to figure myself (reading core ruby scripts and searching in this forum) how I could I iterate all events in all maps, but I am unable to understand how to perform this task.
Now I will explain why I'd like to iterate all events, so it is clearer what I am trying to do.
My final target is to develop, from scratch, a system that allows you to have a multi-language game in RpgMaker VX Ace...
I know that there are already existing tools or scripts that does the same work, but I want try to develop mine for several reasons (first of all, to allow me to learn something about ruby).
Well... one of the functions I want to provide is an 'extract all messages' script function (to call from an event) that checks all events in all maps, searching for 'text...' instructions and collect all textes (that matches a regexp rule) in a file.
The global idea is to create a system that allows you to create a scratch .po file (wich can be used with translation tools like PoEdit) and a system that allows you to import the translated .po files into the game,
Well... now I am NOT asking to provide the complete code for this task, but only:
1) what kind of variables I should look at
2) how can I 'inspect' their properties to understand myself how to code this routine.
Thank a lot 🙂
Now I will explain why I'd like to iterate all events, so it is clearer what I am trying to do.
My final target is to develop, from scratch, a system that allows you to have a multi-language game in RpgMaker VX Ace...
I know that there are already existing tools or scripts that does the same work, but I want try to develop mine for several reasons (first of all, to allow me to learn something about ruby).
Well... one of the functions I want to provide is an 'extract all messages' script function (to call from an event) that checks all events in all maps, searching for 'text...' instructions and collect all textes (that matches a regexp rule) in a file.
The global idea is to create a system that allows you to create a scratch .po file (wich can be used with translation tools like PoEdit) and a system that allows you to import the translated .po files into the game,
Well... now I am NOT asking to provide the complete code for this task, but only:
1) what kind of variables I should look at
2) how can I 'inspect' their properties to understand myself how to code this routine.
Thank a lot 🙂