Adding bandages
Last updated
Last updated
Advanced Roleplay Environment supports modular bandages. This means you can easily add bandages or edit them accordingly.
In order to add a bandage we just need to add the bandage inside the bandages file and configure the properties accordingly.
Since all bandages are saved inside script/entities/bandages.lua
, we will open this file. This should look like this:
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:
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.
Option | Description | Example |
---|---|---|
effectiveness | This property is a number and contains the value of how effective this bandage is by default. |
|
cooldown | This property is a number and contains the value of how long the action takes to apply this bandage via the ui. |
|
reopeningChance | This property is a number and contains the reopening chance (sewing needed) of a wound. From 0 to 1 in decimals. |
|
reopeningMinDelay | This property is a number and contains the min delay before a sewing needed wound reopens. |
|
reopeningMaxDelay | This property is a number and contains the max delay before a sewing needed wound reopens. |
|
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: