Jump to content

tell me about config

Closed 1.0.8

hid333
hid333

Posted

I have two questions.

1.I want to run a command when the arena starts.

(Example: Give night vision to participating players)

I tried setting as below but it doesn't work. Please tell me how to set it correctly.
 

config/SurvivalArena.json
"Commands to run for each player when the game starts and the gates open. Use {id} in replacement of the players steam id": [inventory.giveto {id} "nightvisiongoggles" "1"],

2.I want to create additional profiles.

I tried adding it to the bottom of "Loot settings" in the default profile, but it is not reflected. Are there any additional commands?

imthenewguy

Posted

Hey mate, why not use the NightVision plugin? The plugin supports it by default.

 

If you do want to use the nightvision item specifically, adjust your config value to this:

    "Commands to run for each player when the game starts and the gates open. Use {id} in replacement of the players steam id": [
      "inventory.giveto {id} nightvisiongoggles"
    ],

 

Regarding adding extra loot profiles, you basically want to ensure you format it correctly or you will run into json format issues.

    "TestLoot": {
      "Chance for this profile to be selected for the game (weighted system)": 100,
      "min_items": 2,
      "max_items": 4,
      "items": [
        {
          "shortname": "weapon.mod.8x.scope",
          "min_amount": 1,
          "max_amount": 1,
          "skin": 0,
          "displayName": null
        },
        {
          "shortname": "weapon.mod.small.scope",
          "min_amount": 1,
          "max_amount": 1,
          "skin": 0,
          "displayName": null
        }
      ]
    }

 

hid333

Posted

I know about the night vision plug-in, and I actually tried using it, but I thought that the night vision item would be better, so I chose this configuration.

Also, the reason why the above was not reflected was that the plug-in was not loaded properly, or it was reflected normally after restarting the server, so there was no particular problem with the format, etc.

However, I don't know why only some (the reward was an egg, but it was reflected) was reflected and the others were not reflected and no error occurred.

Problem solved Thank you.

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.3k

Files Sold

Total number of files sold.

2m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.