Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: dreammaster on Fri 10/09/2004 01:07:33

Title: Suggestion: Option to edit "Run Script" with whole room script open
Post by: dreammaster on Fri 10/09/2004 01:07:33
Frequently when I've been developing the script for a room, I need access to all the other methods I've written already so I can remind myself of the names of variables I've used, and what logical steps I'm using to perform whatever animation task. The current ability to open the entire script file is excellent, allowing me to see all the scripts, and tab back to the editor and, for example, look up entries in the messages list. This isn't the case, though, when I edit a "Run Script" interaction. I usually end up having to create the run script, then leaving the Interactions dialog and selecting to Edit the room file.

I'd be great if there was an option when you select a Run Script interaction (say via the right-click menu) to automatically close the interactions dialog and open up the room script file file at the place where the interaction's script is. Not only would this make it easier to make new scripts, it would also help finding particular scripts in a large room script file.

On a more minor note, it would be useful if there was a shortcut in the script editor to redisplay the parameter completion tooltip for a method if you've lost it.. sort of like Delphi's Ctrl-Shift-Space sequence - frequently when using some of the longer methods like AnimateCharacterEx, the editor thinks that at least one of the parameters may be the start of a method name, so I lose the tooltip.

EDIT:
Finally, it would be useful if there was a "Find in Files" feature. For example, I've placed comments throughout the room files to mark where there's things I still need to implement. But to find them again I need to go through each room one by one to make sure I don't miss anything I've forgotten about.
Title: Re: Suggestion: Option to edit "Run Script" with whole room script open
Post by: Kweepa on Fri 10/09/2004 02:39:23
Good suggestion. I would like that too.
Title: Re: Suggestion: Option to edit "Run Script" with whole room script open
Post by: Phemar on Sat 11/09/2004 08:28:25

Actually when you click 'Run Script' in the interaction editor, an option called 'edit script' is there. When you click 'ok' and then double click on the interaction called 'Run Script', the script editor will pop up.
What would be nice is if instead of only being able to edit that function, the whole room script was available.

So basically what I'm saying is yeah, I'd like that one too.
Title: Re: Suggestion: Option to edit "Run Script" with whole room script open
Post by: dreammaster on Sat 11/09/2004 09:46:00
Precisely. And the editor, when editting a Run Script directly, doesn't let you tab back to the main editor window. So if you, for example, need to look up the correct index for a particular message, you're forced to exit the script editor, interactions dialog, look it up, and then return to the script again.
Title: Re: Suggestion: Option to edit "Run Script" with whole room script open
Post by: Ginny on Sat 11/09/2004 13:13:18
Err, maybe I misunderstood something, but isn't it already possible to click the edit room script button (in 'Room Settings') and see all the run scripts for the same room? It also includes all run scripts for objects and areas.
If you're talking about being able to see the global script at the same time as the room script, however, then I agree that would be useful. :)
Title: Re: Suggestion: Option to edit "Run Script" with whole room script open
Post by: Pumaman on Sat 11/09/2004 20:39:00
The easiest way to implement this would be to have an option so that rather than Edit Script just popping up the function, it popped up the whole room script with the cursor located in the correct function.

This could be an option in Preferences or something -- allowing you to change it within the script editor isn't really feasible.
Title: Re: Suggestion: Option to edit "Run Script" with whole room script open
Post by: Kweepa on Sat 11/09/2004 20:41:55
Having that option in preferences sounds good. I agree that having two buttons would be confusing.
Title: Re: Suggestion: Option to edit "Run Script" with whole room script open
Post by: dreammaster on Sun 12/09/2004 11:22:29
I agree as well. Having a Preference setting to do so be just as good.