New Game player spawn

Questions specific to OpenMW-CS can be asked, and content development related topics can be discussed here
Post Reply
DarkViperAU
Posts: 1
Joined: 07 Feb 2021, 10:11

New Game player spawn

Post by DarkViperAU » 07 Feb 2021, 10:23

Hello, i'm practicing with editor by trying to create single cell and place player in it. The problem is i couldn't find anywhere in game files sript or anything that do that. I found CharGen script with

Code: Select all

Player->PositionCell 61,-135, 24, 340, "Imperial Prison Ship"
Which i think that what i want. But this also require some preps, with which i need help
1. Player are marked as Unexpected Name even if i will create player NPC and fill all cells in it
2. How do i run this script, at the game start?

User avatar
sjek
Posts: 441
Joined: 22 Nov 2014, 10:51

Re: New Game player spawn

Post by sjek » 14 Feb 2021, 16:48

hi. anyway as of long time.

1. how exactly ?
is the ID, player, and not just the name field ?
Just creating player npc works, preferencing it in a script.
placing it in the game as npc seems to be just normal npc tho
in my experiment so script needs to be used.

2. you can add it to the start scripts in mechanics drop down, causing it to run.
remember stopscript command tho.

script named main is hardcoded to run at start of a new game without any preparation.
this is also used in Morrowind, starting chargen and other scripts.

Chargenstate variable is hardcoded too,
to be 1 at new game start and -1 otherwise on load.
"life is crazy"
"craziness has beauty which only crazies understand" some movie clip in the head.
https://wiki.openmw.org/index.php?title=Testing

Post Reply