Usage: |
StateName(x) |
Example: |
StateName(3) |
This function converts the numeric status (ie - peace, truce, holiday) to a named one.
Some examples:
// returns "truce" echo StateName(2) Results: 18:29:26 truce 18:29:27 Script stopped
// this finds the status of the city/valley at coordinates 123,456 and converts it into a word ("peace") echo GetDetailInfo("123.456").state echo StateName(GetDetailInfo("123,456").state) Results: 15:58:26 (City) - 1 15:58:27 (City) - peace 15:58:28 (City) - Script stopped