I looked through the Script Call file, but couldn't find a script that would help me.
What I'm trying to do is during a battle turn, I want to get the skill IDs for all selected skills, so If I have three actors I want to store info on what skill is selected by which actor.
An important thing to note is that I need the ID before the skills execute.
I am hoping this can be achieved via script call without the need for a plugin!
I think it is the actor's variable _actionInputIndex.
So for an actor it'd be $gameactors.actor(id)._actionInputIndex, but I can't be sure...
I'll keep looking
sorry, that won't be possible without a plugin, because there is not even a way to place that script call without a plugin - the skill's damage formula is only executed after the skill hits, and the troop events are also activated either as the result of a skill or after the turns.
Please give a better description of what you want to do with that info and when in the battlesequence you want to process it - then we might be able to help
Thank you. I will test this plugin and post back here with the outcome.
It seems I overlooked some battle event functionnality, and it was right under my eyes as well. I wasn't sure of when the event would occur if you didn't check turn end, as it turns out, it's before any action occurs... That's what I get for not using them much I guess.
I've actually managed to make your system without any plugin thanks to that info, but anyway: glad you have a working solution!
(I'll edit the first post with the solution for posterity.)
Well there isn't any document that will get you introduced sadly. You'll have to piece everything together by yourself I'm afraid.
Firsr, you should probably grab the split js files from zalerinian's thread here:
Using that you'll learn as much as you want from the game engine in a more orderly and focused fashion than just browsing the complete js files.
Then, one thing that helped me a lot is just going into the console (press F8 if you didn't know) and just type "window" (without the quotes).
You'll then have the complete view of everything in your game and how it is organized, it won't tell you how the data structures are made or what method are available in what context (use the split files for that) but searching will allow you to see how to access anything.
That's exactly what I did in your case. I typed window, searched inside game actors and found something suspiciously named "_actions".
Another example is: I wanted to dynamically control sound (moving closer or away from a campfire changes the sound volume), it only took a bit of searching and inside audio manager I quickly found my answer on how to make it possible. Now with a simple parallel process I can do just that, no need for a plugin!
My advice is simply to try and do things by yourself as much as possible and to not be afraid to go looking into the console and the js files. You'll probably spend a lot more time doing things that way and break a few things at first, but you'll learn a lot more ^^.
My second and most important piece of advice is: when you are a bit more familiar with the engine, roam the mv support forum, read every question and try to think of how you would do it, before reading the answer preferably. You'd be surprised how much I learned by doing that ^^. And I ended up helping people too, which is a nice bonus 😛 .
I didn't know about the window command... I tried to find out how to see it by reading the core files and trying to reverse-engineer the command-making process.