Author Topic: Companion commands and params  (Read 2445 times)

Offline Gimper

  • You gotta be kidding me... shoo shoo mighty hacker
Companion commands and params
« on: February 06, 2025, 06:57:07 am »
So I just recently got into the development side of things, and I'm wondering how to use commands to change the parameters of Companion followers. Not sure if it matters, but I'm using a modified version of reloaded s3 source.

Offline Gimper

  • You gotta be kidding me... shoo shoo mighty hacker
Re: Companion commands and params
« Reply #1 on: June 08, 2025, 02:42:51 am »
Bump. I could really use a hand. For players AND npcs.

Offline Slowhand

  • Go for the eyes, Boo! Go for the eyes!
Re: Companion commands and params
« Reply #2 on: June 10, 2025, 12:54:01 am »
You can change your own parameters if you are logged in as ADMIN with `param command:
`param 0 200 150
this will change small guns skill (index = 200) to value 150
to only check your param of small guns (200) you shall not type a 3rd value, so only:
`param 0 200

I do not know a way to change the params of NPC's or companions via admin tools, guess you would need to write one.
You can try to expand on the function "void ExecParamCommand(array<string@>@ command, Critter@ player, Critter@ target)" in cheats.fos for that to work somehow.

Here is an example how (better just copy the whole ExecParamCommand in cheats.fos over to your version) and then stand next (facing toward, 1 hex) a target critter, type:
`param 1 0
it will show the ST of that critter or type:
`param 1 0 10
to set the ST of that critter to 10.

https://github.com/Sasabmeg/FOnline-BraveNewWorld/issues/177

(Again, better just open cheats.fos from BNW repo and copy the whole function named ExecParamCommand, than check the diffs, easier probably)

Also for question use Rotators Discord or BNW discords, if you want faster replies.
https://discord.gg/MuhRYZF
https://discord.gg/fwwjvKbNEu

« Last Edit: June 10, 2025, 06:54:41 am by Slowhand »