-
Notifications
You must be signed in to change notification settings - Fork 0
Levels Example
netprogs edited this page Jun 28, 2012
·
1 revision
{
// LEVELS
// This defines the level sequences.
// A level can affect many things when a character gains one.
// You can add combat modifiers as a base, racial and for classes.
// You can also adjust the abilities of the character for base, racial and classes.
"levels": [
{
// The level number. Keep them sequential !
"levelNumber": 1,
// The display name for the level
"displayName": "Level One",
// The total character experience required to gain this level.
"xpRequired": 1000,
// This allows us to apply combat modifiers
"combatModifiers": {
// The base combat modifiers applied regardless of race or class
"baseModifier": {
"attack": 1.0,
"damage": 1.0,
"health": 1.0,
"defense": 1.0,
"initiative": 0.0,
"diceRoll": ""
},
// Racial combat modifiers
// We can also define race specific modifiers for this level
// The name MUST match the id of the race as defined in races.json
"racialModifiers": {
"orc": {
"attack": 1.0,
"damage": 1.0,
"health": 5.0,
"defense": 1.0,
"initiative": 0.0,
"diceRoll": ""
},
"human": {
"attack": 1.0,
"damage": 1.0,
"health": 2.0,
"defense": 1.0,
"initiative": 0.0,
"diceRoll": ""
}
},
// Class combat modifiers
// We can also define class specific modifiers for this level
// The "id" MUST match the id of the class as defined above.
"classModifiers": {
"warrior": {
"attack": 1.0,
"damage": 1.0,
"health": 5.0,
"defense": 1.0,
"initiative": 0.0,
"diceRoll": ""
},
"archer": {
"attack": 1.0,
"damage": 1.0,
"health": 2.0,
"defense": 1.0,
"initiative": 0.0,
"diceRoll": ""
}
}
},
// This allows us to apply ability modifiers
"abilityModifiers": {
// The base ability modifiers applied regardless of race or class
"baseModifiers": [
{
"id": "strength",
"value": 4
},
{
"id": "constitution",
"value": 2
},
{
"id": "dexterity",
"value": 4
}
],
// Racial ability modifiers
"racialModifiers": {
"orc": [
{
"id": "strength",
"value": 2
},
{
"id": "constitution",
"value": 0
},
{
"id": "dexterity",
"value": 1
}
],
"human": [
{
"id": "strength",
"value": 2
},
{
"id": "constitution",
"value": 0
},
{
"id": "dexterity",
"value": 1
}
]
},
// Class ability modifiers
"classModifiers": {
"archer": [
{
"id": "strength",
"value": 5
},
{
"id": "constitution",
"value": 3
},
{
"id": "dexterity",
"value": 1
}
],
"warrior": [
{
"id": "strength",
"value": 5
},
{
"id": "constitution",
"value": 3
},
{
"id": "dexterity",
"value": 1
}
]
}
},
// Save modifiers allow us to adjust saves on a per level basis
// As all the other save modifiers, these are directly added to the save.
"saveModifiers": {
// The base modifiers are added to every character regardless of race or class.
"baseModifiers": [
{
"id": "fortitude",
"value": 4.0
},
{
"id": "will",
"value": 2.0
},
{
"id": "reflex",
"value": 4.0
}
],
// You can define additional save bonuses per race
"racialModifiers": {
"orc": [
{
"id": "fortitude",
"value": 2.0
},
{
"id": "will",
"value": 0.0
},
{
"id": "reflex",
"value": 1.0
}
],
"human": [
{
"id": "fortitude",
"value": 2.0
},
{
"id": "will",
"value": 0.0
},
{
"id": "reflex",
"value": 1.0
}
]
},
// You can define additional save bonuses per class
"classModifiers": {
"archer": [
{
"id": "fortitude",
"value": 5.0
},
{
"id": "will",
"value": 3.0
},
{
"id": "reflex",
"value": 1.0
}
],
"warrior": [
{
"id": "fortitude",
"value": 5.0
},
{
"id": "will",
"value": 3.0
},
{
"id": "reflex",
"value": 1.0
}
]
}
}
},
// Just more, smaller, examples of additional levels
{
"levelNumber": 2,
"displayName": "Level Two",
"xpRequired": 1000,
"combatModifiers": {
"baseModifier": {
"attack": 2.0,
"damage": 2.0,
"health": 2.0,
"defense": 2.0,
"initiative": 0.0,
"diceRoll": ""
},
"racialModifiers": {
"orc": {
"attack": 1.0,
"damage": 1.0,
"health": 5.0,
"defense": 1.0,
"initiative": 0.0,
"diceRoll": ""
},
"human": {
"attack": 1.0,
"damage": 1.0,
"health": 2.0,
"defense": 1.0,
"initiative": 0.0,
"diceRoll": ""
}
},
"classModifiers": {
"warrior": {
"attack": 1.0,
"damage": 1.0,
"health": 5.0,
"defense": 1.0,
"initiative": 0.0,
"diceRoll": ""
},
"archer": {
"attack": 1.0,
"damage": 1.0,
"health": 2.0,
"defense": 1.0,
"initiative": 0.0,
"diceRoll": ""
}
}
},
"abilityModifiers": {
"baseModifiers": [
{
"id": "strength",
"value": 4.0
},
{
"id": "constitution",
"value": 2.0
},
{
"id": "dexterity",
"value": 4.0
}
],
"racialModifiers": {
"orc": [
{
"id": "strength",
"value": 2.0
},
{
"id": "constitution",
"value": 0.0
},
{
"id": "dexterity",
"value": 1.0
}
],
"human": [
{
"id": "strength",
"value": 2.0
},
{
"id": "constitution",
"value": 0.0
},
{
"id": "dexterity",
"value": 1.0
}
]
},
"classModifiers": {
"archer": [
{
"id": "strength",
"value": 5.0
},
{
"id": "constitution",
"value": 3.0
},
{
"id": "dexterity",
"value": 1.0
}
],
"warrior": [
{
"id": "strength",
"value": 5.0
},
{
"id": "constitution",
"value": 3.0
},
{
"id": "dexterity",
"value": 1.0
}
]
}
},
"saveModifiers": {
"baseModifiers": [
{
"id": "fortitude",
"value": 4.0
},
{
"id": "will",
"value": 2.0
},
{
"id": "reflex",
"value": 4.0
}
],
"racialModifiers": {
"orc": [
{
"id": "fortitude",
"value": 2.0
},
{
"id": "will",
"value": 0.0
},
{
"id": "reflex",
"value": 1.0
}
],
"human": [
{
"id": "fortitude",
"value": 2.0
},
{
"id": "will",
"value": 0.0
},
{
"id": "reflex",
"value": 1.0
}
]
},
"classModifiers": {
"archer": [
{
"id": "fortitude",
"value": 5.0
},
{
"id": "will",
"value": 3.0
},
{
"id": "reflex",
"value": 1.0
}
],
"warrior": [
{
"id": "fortitude",
"value": 5.0
},
{
"id": "will",
"value": 3.0
},
{
"id": "reflex",
"value": 1.0
}
]
}
}
},
{
"levelNumber": 3,
"displayName": "Level Three",
"xpRequired": 3000
},
{
"levelNumber": 4,
"displayName": "Level Four",
"xpRequired": 4000
}
]
}