Nature In The Valley Documentation
  • Nature In The Valley As A Framework
  • Adding a creature
    • Picking Your Format
    • Using Content Patcher
    • Using a Content Pack
    • The Creature Model
  • Making Creature Sprite
    • Making Creature Sprites 101
  • New Game-State-Queries and Trigger Actions
    • New Game State Queries
  • Making Rewards
    • Adding Custom Rewards
Powered by GitBook
On this page
  1. Making Rewards

Adding Custom Rewards

This page is about the adding of custom rewards

While there are several ways of giving the player a reward using content patcher, this page specifically relates to making custom rewards given by Ivy in the insectarium. This can be done using one of two methods depending on whether you are using a content pack or content patcher. If you are using a content pack, include a reward.json in your folder. Then place the reward data inside that. If you are using content patcher, edit the "Nature.NITV/Rewards" file and place your reward data inside that.

//Example of adding rewards in the rewards.json file of a content pack
{
    "ExampleReward1": {
        "ItemId": "(O)72",
        "ItemCount": 5,
        "TotalDonated": 0,
        "creatureRequirements": [
            "Fly"
        ]
    },
    "ExampleReward2": {
        "ItemId": "(O)68",
        "ItemCount": 1,
        "TotalDonated": 10,
        "creatureRequirements": null
    }
}

//Example of adding rewards in the content.json file of a content patcher mod
{
    "Action": "EditData",
    "Target": "Nature.NITV/Rewards",
    "Entries": {
    "ExampleReward1": {
    	"ItemId": "(O)72",
    	"ItemCount": 5,
    	"TotalDonated": 0,
    	"creatureRequirements": [
     	  "Fly"
    	]
    },
    "ExampleReward2": {
        "ItemId": "(O)68",
    	"ItemCount": 1,
    	"TotalDonated": 10,
    	"creatureRequirements": null
    }
    }
}

Each reward is symbolized using a unique key, an item reward - that item’s qualified item id - (can be gold coins for a money reward) and an item count to show how many of those items are rewarded. For rewards which give multiple items, use multiple rewards. Then there are the two conditions (which you can pick one or both to use). Total donated represents the total number of bugs donated to get a reward. Creature requirements represents a list of creature names (code names, not display names) required to have been donated to get a reward.

When (use content packs) config is enabled, all base mod rewards are also disabled.

PreviousNew Game State Queries

Last updated 3 months ago