Changing the New Game Starting Location

From RPG Creation Kit
Revision as of 18:59, 25 August 2023 by Silvematt (talk | contribs) (Created page with "In this article we are going to see how to change the Starting Location the player spawns in when you create a New Character in the RPG Creation Kit. Instead of spawning outside the City gates, we'll make our player spawn in the Tavern. == Locating the Settings == What we need to do is pretty simple and requires a small edit to a file. Open the file '''RCKSettings.cs''' located in your project folder and locate the line: ''// NEW GAME START'' File:Newstart 1.png...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

In this article we are going to see how to change the Starting Location the player spawns in when you create a New Character in the RPG Creation Kit.

Instead of spawning outside the City gates, we'll make our player spawn in the Tavern.

Locating the Settings

What we need to do is pretty simple and requires a small edit to a file.

Open the file RCKSettings.cs located in your project folder and locate the line:

// NEW GAME START

Newstart 1.png


The field are pretty much self explanatory:

  • RCK_NEW_STARTING_LOCATION: Is the name of the location the player will spawn in. This is not as important as the next fields, and will be used only to display the location of the player in the Load/Save interface.
  • RCK_NEW_STARTING_WORLDSPACEID: This field is fundamental, it will be the ID of the Worldspace you want your players to spawn in. For the demo, the player spawns in the exterior worldspace, hence the ID is "VirrihaelWorldspace".
  • RCK_NEW_STARTING_CELLID: This field is also fundamental, it will be the ID of the Cell that belongs to the worldspace we've referenced before. For the demo the Cell the player spawns in have as ID "Virrihael(0,1)".
  • RCK_NEW_STARTING_LEVEL: Is the Level the player starts at. It's not useful for our purpose here.
  • RCK_NEW_STARTING_POS: Is the position the player will be at the start of the game.
  • RCK_NEW_STARTING_ROT: Is the rotation the player will have at the start of the game.

Locating the New IDs

To know the IDs we need to insert, you just need to look at the tavern cell in your project. The file is named " - [CELL] VirrihaelsTavern" and it looks like that:

Newgame 2.png


We can quickly see that the ID of this cell is VirrihaelsTavern, and it's Worldspace is "Interiors Worldspace" which its ID is "Interiors" (you can double-click on the "[WORLDSPACE] Interiors Worldspace" reference to focus on that and see the Interiors ID).


All that is left to know is the position and rotation you want your character to start in. To know that you can simply load the Tavern cell from the Cell View and place an empty GameObject on the location you want your player to start in, just take note of its Position and Rotation, mine will be: Newgame 4.png

Editing the RckSettings.cs

Now we can edit the file! Just replace the values with the new information we've obtained:

Newgame 5.png


And that's it! The player will now spawn in the Tavern instead of the exterior world.