# Adding bandages

*Advanced Roleplay Environment supports modular bandages. This means you can easily add bandages or edit them accordingly.*

## Adding bandages

In order to add a bandage we just need to add the bandage inside the bandages file and configure the properties accordingly.

### Adding the bandage

Since all bandages are saved inside <mark style="color:yellow;">`script/entities/bandages.lua`</mark>, we will open this file. This should look like this:

<figure><img src="https://3719360761-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fck7Fdkl3tw9GlGnkwHuu%2Fuploads%2FS0n44aD3CEZOXs8oKjsY%2FNGtiMMG.png?alt=media&#x26;token=e2eae101-f592-4039-ba48-d576c52a1451" alt=""><figcaption><p>script/entities/bandages.lua</p></figcaption></figure>

Now we will scroll to the bottom and just copy a bandage from above and edit it to our needs so it should look like this:

<figure><img src="https://3719360761-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fck7Fdkl3tw9GlGnkwHuu%2Fuploads%2Fr8ZvBtbq7rd8h5l7yG1q%2FLWRPBiJ.png?alt=media&#x26;token=97503dbf-2625-472c-a49c-8986abf3fcb2" alt=""><figcaption><p>script/entities/bandages.lua</p></figcaption></figure>

### Configuring the bandage

There are many options available for us to configure the bandage perfectly to our needs.

Basically all properties are default values but we can assign exact values for every injury (like in the example above we have configured some default properties and specific properties for the abrasion only) so that we can configure it perfectly.

<table><thead><tr><th width="248.33333333333331">Option</th><th>Description</th><th>Example</th></tr></thead><tbody><tr><td>effectiveness</td><td>This property is a number and contains the value of how effective this bandage is by default.</td><td><code>effectiveness = 1</code><br>This bandage has a effectiveness by 1. If there is a injury configured with a effectiveness by 2 on it, this injury will be selected to heal first.</td></tr><tr><td>cooldown</td><td>This property is a number and contains the value of how long the action takes to apply this bandage via the ui. </td><td><code>cooldown = 10</code><br>The action has a duration of 10 seconds.</td></tr><tr><td>reopeningChance</td><td>This property is a number and contains the reopening chance (sewing needed) of a wound. From 0 to 1 in decimals.</td><td><code>reopeningChance = 0.3</code><br>The bandage has by default a reopening chance of 30 percent.</td></tr><tr><td>reopeningMinDelay</td><td>This property is a number and contains the min delay before a sewing needed wound reopens.</td><td><code>reopeningMinDelay = 30</code><br>If the wound is a sewing needed wound then in minimum it takes the wound 30 seconds to reopen.</td></tr><tr><td>reopeningMaxDelay</td><td>This property is a number and contains the max delay before a sewing needed wound reopens.</td><td><code>reopeningMaxDelay = 50</code><br>If the wound is a sewing needed wound then in maximum it takes the wound 50 seconds to reopen.</td></tr></tbody></table>

### Adding the translation

Since the translation is missing it will look weird inside the ui. So we need to add it in our locale files. So we open our locale file (example: languages/en.json) and copy 'n' paste just an other entry and edit the values accordingly. So it should look like this if added like [above](#adding-the-bandage):

<figure><img src="https://3719360761-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fck7Fdkl3tw9GlGnkwHuu%2Fuploads%2FSGXgeN1q5yFSU1ovHyPW%2Fe9zJ0S5.png?alt=media&#x26;token=8ee6e2a0-f988-4172-95f1-f9145c661eb3" alt=""><figcaption></figcaption></figure>
