Mythruna

Modder's Workbench => Scripting => Topic started by: Michael Musgrove on September 13, 2019, 06:48:43 PM



Title: Spawn Mod [SP]
Post by: Michael Musgrove on September 13, 2019, 06:48:43 PM
Hello everyone, after deciding I wanted to be able to set my spawn to a separate location in Single Player, I made a small mod to accommodate for this. Please see below for the file to download.

Commands:
/setspawn
     Sets the spawn location. This is good for having a spawn location for each time you log on, or to set before logging off to return to your last location with the following command;

/spawn
     Teleports the character to the last spawn location set.

How To Install
In your Mythruna game folder, create a new directory called mods. Within the mods folder, create a new directory called scripts. Place this file within the ...mods/scripts/ folder.

E.g. the path of the mod file will be something along the lines of ...Mythruna/mods/scripts/spawn_mod.init.groovy


Title: Re: Spawn Mod [SP]
Post by: cHyper on September 18, 2019, 05:55:02 AM
Hello everyone, after deciding I wanted to be able to set my spawn to a separate location in Single Player, I made a small mod to accommodate for this. Please see below for the file to download.

Commands:
/setspawn
     Sets the spawn location. This is good for having a spawn location for each time you log on, or to set before logging off to return to your last location with the following command;

/spawn
     Teleports the character to the last spawn location set.

I am a noob!
How can I use this features?
cu cHyper


Title: Re: Spawn Mod [SP]
Post by: Michael Musgrove on September 19, 2019, 03:30:33 PM
In your Mythruna directory, add another directory called "mods"; within the mods directory, create another and name it "scripts"; within the scripts folder, put the file (I'll update the original post with this information).


Title: Re: Spawn Mod [SP]
Post by: Michael Musgrove on September 29, 2019, 07:21:06 AM
Updated the script. It will now save your location on exit, but when logging back in, the player will need to use the /spawn command. Redownload from the original post.