Post by Kamuna on Feb 6, 2014 16:11:21 GMT
Welcome to the exciting world of Mystery Script! Oh, you want me to hurry up already? Patience, young grasshopper. In the programming world, that is pretty important.
So you want to make a mode, eh? Well, let's start with the basics.
Step 1: Setup
First thing's first: We have to create one to three files, all with the same name, but different extensions. Let's say you want to name your mode "Student" mode. You'll have to create or get one to three files, the last two optional: Student.ms (The script); Student.ogg or similar supported types (The music); Student.dmi (The picture, must be 512x512 pixels to fit). Inside the dmi file, there must be a icon state named Student as well.
Step 2: Scripting
Once you have created Student.ms, go ahead and open it in Notepad, Notepad++, or similar text editing programs. There is one thing REQUIRED to be in the script, and this is it:
setcustommode("Student",1,"http://misuteriihigh.boards.net/thread/70/tutorial-creating-uploading-basic-mode","Student.ogg","Student.dmi","self_create(\"/obj/Weapons/axe\",killer)\;","");
This would replace Custom with a new mode named Student Mode that requires one player, with a link to a guide here: misuteriihigh.boards.net/thread/70/tutorial-creating-uploading-basic-mode , with title music named Student.ogg, an icon named Student.dmi with the icon state Student in it for the title screen, and code that would produce a weapon near the killer at the start of the game, and do nothing at the end of the game. For more information, see here:
ms-reference.wikia.com/wiki/Setcustomrole_function
The code for the game start is "escaped" in some places with a backslash before it, allowing certain symbols to go through in a string (text) without throwing an error. It is safe practice to do this for all of your symbols within a string.
Step 3: Uploading
Now that your files are ready, you want to host (or minihost) the game and press Upload Custom Mode With Music And Picture, upload the files in that order (Script, Music, Picture), and type out your custom mode name. Double check that the names of at least the script and mode are exactly the same (capitalization too), without the extension for the script.
Tada! You've made your first custom mode! Congratulations!
"But Kamuna, I want to make a more advanced custom mode!"
Do not worry, that will come soon...
So you want to make a mode, eh? Well, let's start with the basics.
Step 1: Setup
First thing's first: We have to create one to three files, all with the same name, but different extensions. Let's say you want to name your mode "Student" mode. You'll have to create or get one to three files, the last two optional: Student.ms (The script); Student.ogg or similar supported types (The music); Student.dmi (The picture, must be 512x512 pixels to fit). Inside the dmi file, there must be a icon state named Student as well.
Step 2: Scripting
Once you have created Student.ms, go ahead and open it in Notepad, Notepad++, or similar text editing programs. There is one thing REQUIRED to be in the script, and this is it:
setcustommode("Student",1,"http://misuteriihigh.boards.net/thread/70/tutorial-creating-uploading-basic-mode","Student.ogg","Student.dmi","self_create(\"/obj/Weapons/axe\",killer)\;","");
This would replace Custom with a new mode named Student Mode that requires one player, with a link to a guide here: misuteriihigh.boards.net/thread/70/tutorial-creating-uploading-basic-mode , with title music named Student.ogg, an icon named Student.dmi with the icon state Student in it for the title screen, and code that would produce a weapon near the killer at the start of the game, and do nothing at the end of the game. For more information, see here:
ms-reference.wikia.com/wiki/Setcustomrole_function
The code for the game start is "escaped" in some places with a backslash before it, allowing certain symbols to go through in a string (text) without throwing an error. It is safe practice to do this for all of your symbols within a string.
Step 3: Uploading
Now that your files are ready, you want to host (or minihost) the game and press Upload Custom Mode With Music And Picture, upload the files in that order (Script, Music, Picture), and type out your custom mode name. Double check that the names of at least the script and mode are exactly the same (capitalization too), without the extension for the script.
Tada! You've made your first custom mode! Congratulations!
"But Kamuna, I want to make a more advanced custom mode!"
Do not worry, that will come soon...