- Joined
- Apr 15, 2020
- Messages
- 91
- Reaction score
- 36
- First Language
- English
- Primarily Uses
- RMMV
General question: Is there any advantage to using common events over javascript functions?
I don't mean that to be snarky at all, my coding background is in VBA with Microsoft products (which I think is somewhat analagous to RPGMaker and Javascript). By default I try to use built in functionality of software rather than replicating built in functions with code. It ususally breaks less often...
In my RPGMaker project though I have a ton of common events in my project and in retrospect I wish that I had built them as javascript functions. I find the variables super clunky and my mouse finger literally aches from all of the clicking and mouse wheeling, plus I hate scrolling through hundreds of common events, variables and switches to find the one that I am looking for. I guess being better organized in the beginning of my project would have helped with that.
However, with javascript I can do 99% with my keyboard, use intellisense, copy and paste with keyboard, use "find" with keyboard, build functions for commonly repeated tasks, etc and this is big: its easy to reorder and reorganize code. Also huge is I can use a debugger to sort out problems and see what variables are doing.
With events the only things that seem really necessary are parallel events in common events, picture common events and movement routes.
I also get it if people don't like to/know how to code but it seems like if you have familiarity with Javascript you're better off writing functions then events where possible.
I don't mean that to be snarky at all, my coding background is in VBA with Microsoft products (which I think is somewhat analagous to RPGMaker and Javascript). By default I try to use built in functionality of software rather than replicating built in functions with code. It ususally breaks less often...
In my RPGMaker project though I have a ton of common events in my project and in retrospect I wish that I had built them as javascript functions. I find the variables super clunky and my mouse finger literally aches from all of the clicking and mouse wheeling, plus I hate scrolling through hundreds of common events, variables and switches to find the one that I am looking for. I guess being better organized in the beginning of my project would have helped with that.
However, with javascript I can do 99% with my keyboard, use intellisense, copy and paste with keyboard, use "find" with keyboard, build functions for commonly repeated tasks, etc and this is big: its easy to reorder and reorganize code. Also huge is I can use a debugger to sort out problems and see what variables are doing.
With events the only things that seem really necessary are parallel events in common events, picture common events and movement routes.
I also get it if people don't like to/know how to code but it seems like if you have familiarity with Javascript you're better off writing functions then events where possible.