EDIT :
Anyway with your method we can't fully write a trigger in plain galaxy, right ?
So i suppose i will keep MotiveMe's way ...
EDIT2 :
Nevermind, i got this trick to work now, this GUI is so confusing, i even can't see which custom script i've added if i don't double click on it, else it just display "custom script : none" ...
EDIT3 :
I can't believe that i've missed the "custom script" action, i used "action definition" instead ...
Oh well it's really easy.
Can you clarify steps 2 and 3?
I don't see anywhere you can actually input your custom script, which means I failed one of those two steps...or it's also possible that this method is already obsolete, in which case, can someone verify?
There is a "custom script" action in "trigger action", but warning the editor is fully localized with your language, so if you don't have an English or American version, it will be called something else, like "script personnalisé" in French.
Because it's a beta, the traduction is kinda lame sometimes, but you can display data as ... argh i don't have the English name.
The shorcut is Ctrl + D (hope it's the same for all local language), then search for "customscriptaction".
When you have created it, select it and click in the next bottom window (under the gui trigger) and type you code inside this window.
I would just edit the MapScript.galaxy file directly.
(I did that in Warcraft 3 with war3map.j and it worked exceptionally well for me.)
There is nothing better than having full control over your program!
I can decide what kind of syntax highlighting I want. (I'd use a modified C-highlighter with all SC2 natives added to it.)
A tiny temporary program could do the syntax checking by submitting the code every x seconds to galaxyvalidator. (Until somebody makes a real syntax checker.)
Using a real Programmer's Notepad is so much better than typing into a small textbox.
Excellent. I didn't realize the input area was the ordinary-looking bottom right box.
@x3ICEx:
Any half-decent text editor or IDE would be better than this GUI tool for scripting. I think the issue, though, is that Blizz made it much more difficult than it should be to edit this file or import another .galaxy file. The only other workaround I know about is MotiveMe's, but they're both rather ugly and I'd be interested if anyone had a cleaner solution.
This isn't working for me, it just gives me syntax errors in my code.
This is what it looks like...
I get the syntax error on the first line after my variables.
Well afaik its impossible to really not use the GUI and script only with Galaxy. So here is my work around for it:
1.Create a new Trigger
2.Add a new Custom Script action
3.Inside this Custom Script write
4.Add another Custom Script Action
5.Write your Code into this Custom Script
6.Add a last Custom Script Action
7.Add bool <func name that isnt used>() { to this Custom script and you are done
this is how it looks like when you View Script
if someone knows a better way of doing this please post
@ACB1: Go
Not sure why you cannot just use Data -> View Script (Ctrl+F12) in the Trigger Editor. :)
@cocosoft: Go
cause the changes dont get saved... atleast for me
also i hate it to have everything in just on file
Sorry but i can't do it, demo map plz ?
EDIT : Anyway with your method we can't fully write a trigger in plain galaxy, right ?
So i suppose i will keep MotiveMe's way ...
EDIT2 : Nevermind, i got this trick to work now, this GUI is so confusing, i even can't see which custom script i've added if i don't double click on it, else it just display "custom script : none" ...
EDIT3 : I can't believe that i've missed the "custom script" action, i used "action definition" instead ... Oh well it's really easy.
@ACB1: Go
Can you clarify steps 2 and 3? I don't see anywhere you can actually input your custom script, which means I failed one of those two steps...or it's also possible that this method is already obsolete, in which case, can someone verify?
This part was also confusing me.
There is a "custom script" action in "trigger action", but warning the editor is fully localized with your language, so if you don't have an English or American version, it will be called something else, like "script personnalisé" in French.
Because it's a beta, the traduction is kinda lame sometimes, but you can display data as ... argh i don't have the English name. The shorcut is Ctrl + D (hope it's the same for all local language), then search for "customscriptaction".
When you have created it, select it and click in the next bottom window (under the gui trigger) and type you code inside this window.
@Kestudy: Go
Excellent. I didn't realize the input area was the ordinary-looking bottom right box.
@x3ICEx: Any half-decent text editor or IDE would be better than this GUI tool for scripting. I think the issue, though, is that Blizz made it much more difficult than it should be to edit this file or import another .galaxy file. The only other workaround I know about is MotiveMe's, but they're both rather ugly and I'd be interested if anyone had a cleaner solution.
This isn't working for me, it just gives me syntax errors in my code. This is what it looks like... I get the syntax error on the first line after my variables.