I have an idea for a tModLoader mod that would provide a simple framework for adventure map creators to enforce rules through simple .json files that they distribute with their world files.
The mod would automatically load the corresponding .json file (maybe even from an online database) and enforce the rules, allowing the player to play with the convenience of not struggling with remembering the particular rules of the map.
For example, a common theme in adventure maps is to trash any items dropped from enemies, so the simplest of these rules could prevent NPC from dropping loot.
A more complex example would be with regions defined to allow separate rules within regions. An even more complex example would be Triggers that spawn a boss and actuate blocks to force a boss fight in an area. Below is an example of how such a system might work:
My question is, would anyone find use for such a system? It wouldn't be too hard of a mod to make, but I just want to gauge if there is interest before doing it. Also, the specific properties that can be set can grow or shrink based on the interest in the project.
The mod would automatically load the corresponding .json file (maybe even from an online database) and enforce the rules, allowing the player to play with the convenience of not struggling with remembering the particular rules of the map.
For example, a common theme in adventure maps is to trash any items dropped from enemies, so the simplest of these rules could prevent NPC from dropping loot.
Code:
{
"noCoin": true,
"noLoot": true,
}
A more complex example would be with regions defined to allow separate rules within regions. An even more complex example would be Triggers that spawn a boss and actuate blocks to force a boss fight in an area. Below is an example of how such a system might work:
Code:
{
"noCoin": true,
"noLoot": true,
"noMine": true,
"startInventory": {
"removeAll": true,
"addItem": [
247,
248,
249
]
},
"subRegions": [
{
"name": "A Peaceful Town",
"x": 1000,
"y": 300,
"width": 200,
"height": 200,
"nospawn": true
},
{
"name": "Chaos Zone",
"x": 1200,
"y": 800,
"width": 600,
"height": 200,
"spawnRateMultiplier": 5
},
{
"name": "Queen Bee Arena",
"x": 200,
"y": 600,
"width": 100,
"height": 100,
"onEnterTrigger": "Start Queen Bee Fight"
}
],
"triggers": [
{
"name": "Start Queen Bee Fight",
"spawnNPC": {
"id": 222,
"guaranteedLoot": 2888
},
"hitWire": [
233,
634
]
}
]
}
My question is, would anyone find use for such a system? It wouldn't be too hard of a mod to make, but I just want to gauge if there is interest before doing it. Also, the specific properties that can be set can grow or shrink based on the interest in the project.