Adding template project
This commit is contained in:
39
schema.txt
Normal file
39
schema.txt
Normal file
@@ -0,0 +1,39 @@
|
||||
Example of a player object
|
||||
|
||||
```text
|
||||
player {
|
||||
name: "Player 1"
|
||||
race: "Human"
|
||||
class: "Fighter"
|
||||
level: 1
|
||||
|
||||
stats {
|
||||
maxHp: 100
|
||||
currentHp: 100
|
||||
ac: (10 + self.modifiers.dex)
|
||||
int: 20
|
||||
wis: 15
|
||||
dex: 20
|
||||
str: 20
|
||||
|
||||
modifiers {
|
||||
int: ((self.stats.int - 10) / 2)
|
||||
dex: ((self.stats.dex - 10) / 2)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
```
|
||||
|
||||
```text
|
||||
item {
|
||||
name: "Stick"
|
||||
|
||||
stats {
|
||||
damageMod: 1
|
||||
attack: d4
|
||||
skill: str
|
||||
}
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user