2024-10-25 20:47:19 +02:00
|
|
|
# Flaggable objects
|
|
|
|
|
|
|
|
Flaggable object are those that can be captured by a visiting hero. H3 examples are mines, dwellings, or lighthouse.
|
|
|
|
|
2024-10-25 21:01:00 +02:00
|
|
|
Currently, it is possible to make flaggable objects that provide player with:
|
2024-11-30 22:20:15 +02:00
|
|
|
|
2024-10-25 21:01:00 +02:00
|
|
|
- Any [Bonus](Bonus_Format.md) supported by bonus system
|
|
|
|
- Daily resources income (wood, ore, gold, etc)
|
|
|
|
|
|
|
|
## Format description
|
|
|
|
|
2024-10-25 20:47:19 +02:00
|
|
|
```jsonc
|
|
|
|
{
|
|
|
|
"baseObjectName" : {
|
|
|
|
"name" : "Object name",
|
|
|
|
"handler" : "flaggable",
|
|
|
|
"types" : {
|
|
|
|
"objectName" : {
|
|
|
|
|
|
|
|
// Text for message that player will get on capturing this object with a hero
|
|
|
|
// Alternatively, it is possible to reuse existing string from H3 using form '@core.advevent.69'
|
|
|
|
"onVisit" : "{Object Name}\r\n\r\nText of messages that player will see on visit.",
|
|
|
|
|
|
|
|
// List of bonuses that will be granted to player that owns this object
|
|
|
|
"bonuses" : {
|
|
|
|
"firstBonus" : { BONUS FORMAT },
|
|
|
|
"secondBonus" : { BONUS FORMAT },
|
2024-10-25 21:01:00 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
// Resources that will be given to owner on every day
|
|
|
|
"dailyIncome" : {
|
|
|
|
"wood" : 2,
|
|
|
|
"ore" : 2,
|
|
|
|
"gold" : 1000
|
2024-10-25 20:47:19 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|