NPC Script Editor

wow very nice tool almost complete...
default_wink.png


I wish it has a capability of a compiler(where it checks the validity of the script) and a simulator where you can test the script like in-game interaction

default_ani_meow.gif
+1 
hello Friend Jedzkie

1 question are you using this one?

can you teach me how to used this?
default_happy.png
its really nice work from latheesan
default_biggrin.png
Nope. and FYI, we are not friends.

 
Heya,

Would it possible to add these features?

  • Adding "To lowercase" and "To UPPERCASE" in the context menu when right-clicking some text would be more practical than using the menus!
  • Adding "Add text color" in the context menu when right-clicking on some text, this would simply add "^000000" at the beginning and end of the selected text.
  • Turn on whole word highlighting (when the caret is on a whole word, it is very useful to highlight all other whole word matches).
  • Volatil searches. When a word is highlighted (from the whole word highlighting), being able to jump to the next or the previous element is very useful. The shortcut in Notepad++ is Ctrl-F3 for the next element and Ctrl-Shift-F3 for the previous element. In VS, the shortcut is Ctrl-Shift-Up and Ctrl-Shift-Down.
  • Be able to leave autocomplete always turned on and activates as you type.
  • Other useful shortcuts to have :

Alt-Up / Alt-Down, moves the selected lines up or down. If no text is seleted, it moves the current line.

Shift-Delete, deletes the current line and copy it to the clipboard (or Ctrl-L in Notepad++).

Ctrl-C with no text selected, copies the current line to the clipboard.

Ctrl-X with no text selected, copies the current line to the clipbard and removes it.

Ctrl-K, comment the selected lines.

Ctrl-Shift-K, uncomment the selected lines.

F3, while a search is active, goes to next element. (This is conflicting with Scintilla's default find and replace dialog though, not really important I guess).

Shift-F3, while a search is active, goes to previous element.

Ctrl-U, change the selected text to lower case. Shortcut already exists, never mind.

Ctrl-Shift-U, change the selected text to upper case.

  • Add/replace code snippets : 

f =>

for ($.@i$ = $0$; $.@i$ < $max$; $.@i$++) { $selected$$end$}
w =>

while ($1$) { $selected$$end$}
sc / script =>

$map$,$x$,$y$,$direction$ script $name$ $SPRITE$,{ $selected$$end$}
func =>

function script $name$ { $selected$$end$}
hid (could probably use another name I guess) =>

- script $NAME$ -1,{ $selected$$end$}
menu =>

switch(select("$menu$")) { case 1: $selected$$end$ break;}
dup =>

$map$,$x$,$y$,$direction$ duplicate($name$) $name$#$tag$ $SPRITE$$selected$$end$

Could probably add more snippets, but these are the only ones that come to mind at the moment xD! It would be even better if we could make our own, they're really a time saver. If you're not familiar with snippets, they are used by typing the first letters (func for example) and then pressing tab. It will autocomplete the rest. There is already one for "f" but it's obviously meant for C++ autocompletion code.

And also, when you press Enter, it would be nice if it could use the previous indent (or use indent + 1 if the line ends with { ) to start the new line instead of starting back at the beginning. This is probably the most important feature in all of this, it is somewhat annoying to add the tabs everytime you add a new line.

Thank you for this amazing tool btw ;]!

 
Last edited by a moderator:
Back
Top