Saving and Compiling Scripts

Did you mean, Halo 2 hs_scenario_source tags?

Overview
To use scripts, the most important part is to save the file with the correct extension (.HSC), in the correct location.

Script File Type
In your text editor (Such as Notepad which comes with Windows), enter a name followed by .hsc, and select "Save as type" as All Files. The file encoding must be ANSI, if you select Unicode, sapien will return symbols as an error.

File Location
Where you save the file, will be relevant to where the Scenario file is located at.

If your scenario tag where located as follows: \tags\levels\test\bloodgulch\bloodgulch.scenario You would name your script (with whatever name you choose) in: \data\levels\test\bloodgulch\scripts\ .hsc When compiling hsc files, it does it in alphabetical order. If you have more than 1 HSC, and one references something in another one, you must alphabetically sort them so the one that gets referenced compiles first, or else it won't know it exists.

Compiling Scripts
When the file is in the correct location, open the scenario tag in Sapien, navigate to the file menu in the top left corner, and select 'Compile Scripts'