[Ace] scripting question from a n00b.

How do I code a script to only work in either the menu or in battle?

I have a script that allows the manual sorting of items/skills at any time from their respective menus - Selecting an item/skill will select it then selecting a diff. one will swap them. Double selecting one twice will use it.

Due to an oversight on my part by micro-testing pieces of my game, i have found that this is in effect during battle as well. I need to resolve this issue.

Advance thanks to anyone who can help!
Best option?


Ask the original script writer to do this for you.


Modifying an existing script is often more difficult than writing a new one, because you need to understand what the original scripter intended to do with parts of his/her script. If there is a good documentation on the original script, this can be done - a complex script without documentation is impossible to modify.


Scripting in RM refers to a full programming language - you need to learn programming to read and understand existing scripts, so if you don't know how to program (and your question indicates that you don't know) then you have no chance of doing this yourself.


If you can link us to the original script (do not simply copy the script here, we need the original site where you got it with the documentation listed there), then we might be able to point you into the correct direction or find you someone who might be able to modify the script.


Without even knowing the script, there is nothing anyone here can do for you.
Thanks Andar.  I originally got it from a guy posting on my topic: http://forums.rpgmakerweb.com/index.php?/topic/19146-sort-menu-option/#entry186201

However, I did manage to find a link to the original writer's official release of the script.   http://forums.rpgmakerweb.com/index.php?/topic/19263-manual-item-sorting/?p=206359

I replied to that topic about a different issue with the script and have PMed the writer about my request.

However, in case the original writer has no interest in doing so, I'd be very grateful if anyone is willing to make an attempt to modify the script per my request.

Or should I withhold that request for a new topic until I know the original writer won't modify the script for me?

I apologize in advance, I've been away from the forums for a few months and am unsure of the rules right now.
Nah, it can stay here.


Is the original writer's official release of the script exactly the same as the one you're using?
There are approximately 3 lines of code that are different. I fixed a minor oversight is all.

The change is explained in the other topic but I can post it here if you need me to.
Why don't I just merge this request with your other request, then?
Well I merely posted the change I made to the script on the writer's official release topic so others could fix the oversight as well.  I sent the request through a PM.

Original thread: https://forums.rpgmakerweb.com/threads/ace-scripting-question-from-a-n00b.21600/