1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

MSC Scripting Sub Forum

Discussion in 'Scripts' started by Thothie, Apr 25, 2016.

  1. Thothie

    Thothie Administrator Staff Member Administrator Moderator Developer

    15,079
    54
    Apr 8, 2005
    psycho-oligist
    lost
    This forum section is for questions that potential MSC Scripters may wish to ask, as well as sharing scripts.

    If you want the source on a specific script, name it (or describe it best you can, if you don't know the specific file), and I'll post it up here.

    Similarly, if you have any questions, post them in this section. If you have a script that isn't working, please paste that too, preferably in [code] brackets.

    Most all the documentation on scripting that is available can be found in your MSC install under %steam_path%\steamapps\common\Half-Life\msc\test_scripts

    More specifically, as stated in "!test_scripts_go_here.txt":

    In that folder are several subfolders with about a thousand example scripts. These can be opened with any text reader (eg. Notepad), though EditPlus, configured with the ms.stx, will also provide syntax highlighting. These examples are automatically updated with each new patch, and we usually add a few more with each update.

    Using test scripts requires no compiling. Merely place your new script file in the test_scripts folder, and follow the instructions at the top of test_scripts/!test_scripts_go_here.txt on how to configure your server or listenserver to use them with the test_scripts map . Keep in mind, one limitation of the "compile-less" script system is that you can't add custom items (more of an internal limitation than an anti-cheat feature - unlike the fact that test_scripts will not function on [FN]).

    If a mapper uses your script, and it's published, you'll get one reward from Sembelbin in that patch. Should you prove proficient, we'll get you the compiler and start you on learning how to do items and spells.

    Good luck, and happy creature creation.


    (Also note, come next patch, you will be able to make items and spells under the test_scripts system, and a plethora of examples will be provided.)

    MORE STICKIES PENDING!
     
  2. CrazyMonkeyDude

    CrazyMonkeyDude New Adventurer Developer RiP

    2,656
    0
    Jun 29, 2007
    If I remember correctly, either you or MiB had some custom settings for Edit+ that colorized the text specifically for msc scripting (setvar/d, $get, etc...). It helped me a lot with scripting in the past.
     
  3. Thothie

    Thothie Administrator Staff Member Administrator Moderator Developer

    15,079
    54
    Apr 8, 2005
    psycho-oligist
    lost
    Good call...

    To use the ms.stx with EditPlus, go to Tools->Configure User Tools...->File,Settings & Syntax. Then create a profile for .script files, if you haven't already. Enter the path and name of the ms.stx in the "Syntax File:" blank. (Or browse to it with the [...] button to the right of the blank.)

    I'm hoping to get a syntax highlighter for Notepad++ by rigging up a proggie to convert the ms.stx into the XML it likes (though the XML would be useless as a reference).
     

Share This Page