Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tboby committed Feb 21, 2019
0 parents commit a2ef3f7
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# cwtools-eu4-config
.cwt config files for Europa Universalis IV

To use these copy the contents of this repository and place it in a folder called `.cwtools` in the folder you open in vscode. E.g. if your mod is located at `Europa Universalis IV\mod\my_mod`, you would extract this folder into `Europa Universalis IV\mod\my_mod\.cwtools`.

See https://github.com/tboby/cwtools/wiki/.cwt-config-file-guidance for guidance on the file format

### Contributing
If you'd like to contribute, press the pen icon on any file, then press "Create a new branch for this commit and start a pull request". You can then make further changes as a "pull request". When done, mention it in the pull request and your changes will be included.
69 changes: 69 additions & 0 deletions common/artifacts.cwt
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
enums = {
complex_enum[artifact_slot] = {
path = "game/common/artifacts"
start_from_root = yes
name = {
slots = {
enum_name = scalar
}
}
}
}

types = {
type[artifact] = {
path = "game/common/artifact"
localisation = {
name = "$"
description = "$_desc"
}
}
}

artifact = {
## cardinality = 0..inf
### Modifiers the artifact applies to its owner.
alias_name[modifier] = alias_match_left[modifier]

## cardinality = 0..1
### The artifact's quality. Vanilla uses 1-5.
quality = int

## cardinality = 0..1
## replace_scope = { this = character root = character }
### Conditions for the artifact to be active. Unowned artifacts are active only if they don't have this block.
active = {
## cardinality = 0..inf
alias_name[trigger] = alias_match_left[trigger]
}

## cardinality = 0..1
### Flags automatically assigned to each created artifact of this type.
flags = {
## cardinality = 0..inf
set_value[artifact_flag]
}

## cardinality = 0..1
### If no, can only have a single artifact of this type in a character's inventory. Defaults to "yes".
stacking = bool

## cardinality = 0..1
### If yes, destroy_artifact has no effect on this artifact. Defaults to "no".
indestructible = bool

### 118x118px picture; also uses this value plus "_small" (59x59px)
picture = value[gfx_resource]

## cardinality = 0..1
### Associated slot to equip the artifact.
slot = value[artifact_slot]

## cardinality = 0..1
## replace_scope = { this = character root = character }
### Conditions for the artifact_can_be_gifted_to trigger.
allowed_gift = {
## cardinality = 0..inf
alias_name[trigger] = alias_match_left[trigger]
}
}

0 comments on commit a2ef3f7

Please sign in to comment.