Is it possible to have the total number of each subcrime in the API call?
eg:
{
"criminalrecord": {
...
"theft": {
"searchforcash": 1000,
"pickpocketing": 600,
"total": 1600
}
...
"total": 10600,
},
....
}
Crimes 2.0 Subcrime Data
-
Thread created on 14:24:35 - 05/02/24 (7 months ago)|Last replied 22:29:36 - 07/02/24 (7 months ago)Is it possible to have the total number of each subcrime in the API call?
eg:
{
"criminalrecord": {
...
"theft": {
"searchforcash": 1000,
"pickpocketing": 600,
"total": 1600
}
...
"total": 10600,
},
....
} -
-
-
-
Posted on 13:37:31 - 06/02/24 (7 months ago)Post link copied to clipboard Copy post linkyea, that's what is currently available.
I'm wanting to make use of a function in tornstats, that lets you create and monitor faction competitions.
With sub crimes in 2.0 being lumped into categories, it cant differentiate between "SearchForCash" and "PickPocketing". So a THEFT competition would not be easy to manage because it will just add up the total amount of criminal offences for THEFT; where SearchForCash has less nerve requirements than PickPocketing, leaving a door open for less than desirable outcomes for the faction. -
-
Posted on 14:05:38 - 06/02/24 (7 months ago)Post link copied to clipboard Copy post linkAh, I didn't realise you meant it as more of a feature request.
This area doesn't really get watched by Ched so I doubt you'll get much of a response here. You could open a bug report requesting the selection but tbh I'd expect it to be closed.
Realistically the only way I see this working currently would be getting full-access keys from all factionmates so you can iterate through their logs. Alternatively you can get them to export their logs from T.R but these could always be modified before you receive them. -
-
Posted on 22:09:48 - 07/02/24 (7 months ago)Post link copied to clipboard Copy post linkI've just realized that this information is readily available (just not via api).
If you're in a crime, you can see the various attempts at targets as well as the totals for success (green), fail (white) and critical failure (red).
Just need these numbers to be made available via api now and it's an easy win.Last edited by so_like_juan on 22:10:03 - 07/02/24 -
-
Posted on 22:29:36 - 07/02/24 (7 months ago)Post link copied to clipboard Copy post linkYou can always parse the logs like torn.repot does. Though it only works with a full access key.
-