Jump to content

Can console commands be done by script?

Recommended Posts

I'd like to make an item that can turn TB mode on and off to save typing it into the console whenever I want to switch, and I'm wondering if the "SetTacticalMode" console command can be set to an "inspect on use" button (like the one the Ordinary Sword has, that when you inspect it replaces it with the Watcher's Blade). So if you're in turn-based mode you'd use the inspect button and the "settacticalmode disabled" command would take effect and switch you to realtime. I've tried various permutations of trying to script this, but it doesn't seem to be possible to make it happen. I was wondering if anyone here with more technical knowhow had any ideas? Or if by any chance BMac is passing and would know?

Link to comment
Share on other sites

There isn't anything in the documentation about scripts that call console commands unfortunately. 

Edit: Examining the game assemblies with DnSpy shows this:


So if there were a script for changing tactical mode it would look something maybe:

"Data": {
    "FullName": "Void SetTacticalMode(TacticalMode)",
    "Parameters": [

However this didn't seem to work from what I have tested...

My assumption is that it has to actually be added to a list of available scripts to be accessible outside of the console commands. 

Edited by Kvellen
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...