This repository has been archived by the owner on Oct 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 124
Adapting Existing Scripts
Malware edited this page Aug 9, 2017
·
3 revisions
So you've found that perfect script on the workshop, and you really wanna have a look at it in an MDK project to see what makes it tick. You tried just pasting the thing into a .cs file in the project and get nothing but a whole bunch of compiling errors and squiglies.
The trick is understanding the anatomy of a script. An SE script needs the outside wrapper in order to work. So:
// using...
namespace IngameScript
{
partial class Program : MyGridProgram
{
// simply remove all the content in here, and paste the script here instead.
}
}
That's all it takes!
Do you have questions, comments, suggestions for improvements? Is there something I can do better? Did I make a mistake? Please add an issue here, and prefix your issue title with Wiki. Thank you, your help will be very appreciated!