Author Topic: Evidence Logger  (Read 529 times)

Inspired by Phoenix Wright, this would allow you to collect evidence and present it.

Part 1. Collecting
Via events, you can give players evidence.
Example:
onActivate - Client - evidenceAdd - [NAME] [DESCRIPTION] [ID]

Each evidence has an ID number. If you trigger this event and already have evidence with this id number, it will be updated/overwritten.

onActivate - Client - evidenceRemove - [ID]
This will remove it. Only the ID is needed.

Part 2. The items
The first item is an evidence bag. Using this item will tell you what evidence you have via the chat. This will display the name and the ID of the evidence. Typing /check [evidence id] will show the description of that evidence.

The second item is what you use to present evidence. I'll get onto that.

Part 3. Presenting
To make this work, you'd need to use events again.
onEvidencePresented - Self - evidenceCheckID - [ID]
onEvidencePresentedToBot - Self - evidenceCheckID - [ID]
This would check if the ID matches the evidence presented.

These are condition events that are triggered when they match or don't match.
onEvidenceMatching - Client - chatMessage
onEvidenceNotMatching - Player - Kill

Now how the item works is that if you click on anything, the chat will ask you which evidence you want to present. By typing /present [evidence id] in chat, you will have presented that item! The chat will tell you that you presented this evidence, though if you did it to something without the event then nothing happens. If you do present it to a presentable thing, then it will start the above events.

Imagine crime investigations or heated legal battles in court rooms, this would be amazing!