Constants
If you do not like to repeat certain numbers inside configuration files, you can define a constant inside the server_data/constants folder. Just create a text file inside the constants folder and write:
MyCoolNumber 10
MyCoolPosX 5.0
MyCoolPosY 5.0
Then inside any configuration file, you can access the constants with curly brackets like {MyCoolNumber}.
Example of a monster config using the constants:
Race 101
Level 1
HP 100
Attack {MyCoolNumber}
Defense 0
CriticalRate 1.5
Updated 12 days ago
Did this page help you?