#Jail logs

1 messages · Page 1 of 1 (latest)

solemn onyx
#

What do you mean logs

valid plinth
#

You can send the string with jail reasons and whatnot to them using an Event Sender, and have them add it into a List <String> Variable set to be a cloud variable. When you want to read it you send another custom event that gets them to send back the contents of their variable. I think this can get a bit costly on either CPU or NET though, so you might want to either only bother checking the last 10 or so (can be done with List Sublist) or make a way for the user to choose the start of the sublist themself to get a specific chunk.

#

In the past i've made the results also display to the user as a multiple choice prompt for reading, and then also made it so that if you select one it does something extra, for example maybe it would give more detail about the infraction that would've been too wordy to fit on the main prompt, or i once made it show that infraction to both players as a subtitle so you can more easily ask the person about it.

#

You can do that by using the "Response Index" output on the prompt and plugging it into stuff

solemn onyx
#

Ohhh I see, so whenever you send them to jail, have them add the “log” to a list<string variable> and make sure it’s set to cloud, then set that as the multiple choice options to get all the items inside of it

#

Bro my message took 30 minutes to send

valid plinth
#

Here is the player-selecting part from another circuit (in yellow)

#

You would attach them to these circuits that should let you send a player's last 10 logs to someone requesting them. You'll have to fiddle around with how many to send, i had one set up in someone's room and it worked completely fine, but then at some point it just started using up waayyy too much CPU and wouldn't work anymore because it would cause NET overheat, i think it was to do with them increasing the room's player capacity to be alot higher.

#

In this second image, the top stuff is for sending a log to someone to save into their cloud list, and the middle/bottom stuff is for requesting their logs from them, displayed in just a Player Prompt Multiple Choice because it's one of the most convenient ways to do it

valid plinth
#

The If and List Get Element right below it, you would have another one of the yellow player-selecting circuits before it (or you can probably just use the same one but add some extra logic with another multiple choicefor choosing whether you want to add logs to the selected player, or read logs of the selected player.

valid plinth
#

If you want to use your one where you hold down on the player to select them, you would have to find which Player Variable that player gets stored in, and plug that into anywhere in this example circuit a List Get Element was going into.

#

There's only one List Count between both images i sent, do you mean a different chip?

#

You would use the player port on the "Completed Interaction" event receiver near the top of that image, i think

#

Sorry i don't join people in game for help really, that's more something you're meant to ask in #1020059680153808977 than here

fading meteor
#

@valid plinth just incase u didnt get pinged or see

valid plinth