#Display individual int variables on Log Screen

1 messages · Page 1 of 1 (latest)

hidden hedge
#

So for my sponsored class I want to make a attendance system that when a teacher clicks it they get teacher role and when a student clicks it, it’ll give them student role and a place on Prompt player multiple choice

With this you can choose to remove or add credits to the player, now I have this part done.

But I’m only using one int variable for Credits.
How do I scroll through every persons individual credits and display it on the Log Screen?

#

T5 not answering me 😔

weak heron
hidden hedge
#

Nono like scroll through the player variables

#

Like I’m using Player is local to add X credit via int variable

#

How do I get the int variable of another player

weak heron
hidden hedge
#

Like it scrolls through the players to put each one on the log screen

weak heron
#

so a "From" (You) property, & "To" (Player to get variable from) property sent to all

if To is local, send to all "To" (the previous event's "From") property, "Value" (variable output)

at least thats what comes to mind first

#

u can also just do it in 1 event if u want better organization

#

So basically a Fetch & Retrieve system

#

sounds bad for net tho

wicked shoal
#

Idk what would be more expensive net wise, but you could potentially also try to set a synced variable and detect that change using “variable changed” event

#

Will save an rpc at least, but if that worked better than an event sender i’d dissapointed in rr

weak heron
#

The only other way i can imagine is touching PDB, but idk, its stinky, so

wicked shoal
#

I like pdb

#

However

#

Approach here depends on if you just want to print to screen or also get the value from all other players to the requesting player

hidden hedge
#

IM SO CONFUSED

#

I’ve been sitting here for 3 whole hours

weak heron
hidden hedge
#

Like this?

#

I’m desperate 😭

wicked shoal
#

You’re just trying to print everyones credit value to a log screen right?

hidden hedge
#

Yeah

#

Let me show you an example rq

#

Keep talking

weak heron
# hidden hedge

if whats plugged into "Credits" is everyones local credit int variable, ye

hidden hedge
#

I want it like this

#

But when I click a button it shows everyone their credits

wicked shoal
#

Make an event called something like “print credit to logscreen” then send that event from a local player to all. Then on the event receiver print the int to the log screen and configure the log screen to be synced, that should work i think

#

Not on pc atm though so can’t fact check what i’m saying

wicked shoal
#

Nvm

#

Forget what i said I misunderstood RRwah

#

Kinda comes down to the same thing but slightly adjusted

#

But

#

I’m tired do i’ll let

#

T55 help u

weak heron
hidden hedge
#

Okay

#

How about I explain this easier

#

How do I get a players variable

#

Just 1

#

Not all of them

#

How do I get the int variable of ONE player

#

@wicked shoal

#

@weak heron

wicked shoal
#

You don’t need to do that for what ur trying to do

#

But

#

I can’t show atm

hidden hedge
#

BRUHH

wicked shoal
#

And i don’t feel like typing it out RRwah

weak heron
hidden hedge
#

Dumb it down for me

weak heron
# hidden hedge Dumb it down for me

Fetch:
Player From
Player To

Receive:
Player From
Player To
Int Value

Fetch Send(Teacher, Target)

Fetch Received:
If Player Is Local(To)
Is Local > Receive Send(Fetch.To, Fetch.From, Credits)

Receive Received:
If Player Is Local(To)
Text = String concat("+", Value.to string, " points to ", From.to string)
Is Local = Print Text

hidden hedge
#

What’s player from and player to ;-;

wicked shoal
weak heron
hidden hedge
#

I just wanna get a variable from a player

#

It will be synced

weak heron
#

if synced then when target receives just have them print their variable n such

wicked shoal
#

I wish i was on my pc catEat

hidden hedge
#

JUST TELL ME HOW TO DO ITTT 😭

weak heron
#

i think u just wanna be shown it xD

wicked shoal
hidden hedge
#

I’m better learning when people show me in game

weak heron
wicked shoal
#

I can show u tomorrow after i wake up RRtroll

#

It’s 1:40am atm

weak heron
#

but nope, rec religious about it being social

hidden hedge
weak heron
#

specifically for printing the target players current credit

#

or well to string can be local player if u have one around already

daring rover
weak heron
daring rover
#

In my mind I thought using a string format was cheaper but i assume your right 🤷‍♂️

wicked shoal
#

If you want to print everyones value in 1 call except for the teacher (if the call would be made from the teacher) you could pass in the teacher as player and instead exec “is not local”

#

Jesus i can’t type atm bro RRwah

hidden hedge
weak heron
wicked shoal
weak heron
wicked shoal
#

Yeah

#

It will add a “player” port specifically on that event sender and will send the event only to the input player :)

#

It’s nice to have and lets you skip the local player check

wicked shoal
weak heron
wicked shoal
#

Huh, maybe it’s in beta? Though iirc it’s out of beta already

#

Might be wrong on that though

weak heron
#

it did the thing

#

@hidden hedge if u want to print all Students credit at once

#

dont need the "+" tho, unless its during the part where u add credits

hidden hedge
weak heron
hidden hedge
#

I’m assuming global