Creating console commands with witcherscript

+
Is it possible to use witchersript (.ws) to create my own console commands that can be executed in the game? I am familiar with programming but have never created a console command for a video game. Could someone please tell me what I need to do and walk me through the process.
 
It is.

Start by making a directory structure such as:
\The Witcher 3 Wild Hunt GOTY\mods\modDebug\content\scripts\game\local\

Make a .ws file

Write in it like:
CoffeeScript:
exec function addep1gift()
    {
        thePlayer.inv.AddAnItem( 'Devil Saddle', 1 );
        thePlayer.inv.AddAnItem( 'Soltis Vodka', 1 );
        thePlayer.inv.AddAnItem( 'Cornucopia', 1 );
    }

When you type addep1gift, you'll receive all those items.

Read how vanilla scripts are done, and have fun learning.
 
Top Bottom