Author Topic: getting vce to remember what number was set to each player  (Read 1073 times)

i will tell you what happens and wheat i need it to do.

you click a brick it then adds 1 to a var on the brick it then assigns that same number to a client var. that works.
it then tells you your number. that works.
now for the bit that i cant find out how do do.

now remembers that number that the player has been assigned so somewhere it will remember my id 13830 and it will tell me what number i am. E.G. lets say i click the brick and i get assigned the number 5 as 4 people have already clicked it. it tells me that number and remembers my id and my number. with vce i can then chose a random number and it will find the bl_id and tell me the bl_id. i dont know if you will be able to understand its hard to exsplain.

also if possible i need to find a way to only allow people to press the button once so they can only ever assign 1 number.

thanks

saveVariable and VCEifVariable/VariableTrue and VariableFalse.

never used savevar and loadvar quick tut? also on a relay all this needs to resetted so number back to 1.(done)
but how to delete var also if someone leaves and comes back will they have the same number or will it be gone if so thats fine

Just use VCEmodVarible and then saveVar

ok ill und out how to it the sarvo also why does the vce manual only have var links in it nothing else?

ok ill und out how to it the sarvo also why does the vce manual only have var links in it nothing else?
it's broke

figured out a way to do this with all VCE

make a variable counter for brick clicks, set <var:br:counter> to the ID
when somebody clicks the brick, loop through and check for their ID, once you get to the counter max, let them set the variable and stuff
when you want to access it, set a variable to 0 (output), random it up to <var:br:counter>, then display <var:br:output>

figured out a way to do this with all VCE

make a variable counter for brick clicks, set <var:br:counter> to the ID
when somebody clicks the brick, loop through and check for their ID, once you get to the counter max, let them set the variable and stuff
when you want to access it, set a variable to 0 (output), random it up to <var:br:counter>, then display <var:br:output>
i dont see how that works or im not getting something when you click the brick it sets the number they are given to their blid, yes? but i dont see how it remembers the number?

heres what i have so far. just stuck at remembering the numbers with the blid linked to that number

Go to school and learn grammar and spelling, then people can read your stuff

i dont see how that works or im not getting something when you click the brick it sets the number they are given to their blid, yes? but i dont see how it remembers the number?

heres what i have so far. just stuck at remembering the numbers with the blid linked to that number

What resolution did you use for the picture, all my event pictures look stuffty and pixelated.

on topic.

i dont see how that works or im not getting something when you click the brick it sets the number they are given to their blid, yes? but i dont see how it remembers the number?

heres what i have so far. just stuck at remembering the numbers with the blid linked to that number

With saying this, do you mean that it should rememeber the numbers even if that one person leaves the server?

Because that doesn't matter in phflack's event strain.  All of his variables are <var:BR:counter>.  Br means brick.  The variable and any 'rememberance' of the player is saved as a br variable, thus the data is stored into your computer.  When you reload your builld, the data will still be there and if clicked by someone who's information was stored, it will still work.

What resolution did you use for the picture, all my event pictures look stuffty and pixelated.

on topic.

With saying this, do you mean that it should rememeber the numbers even if that one person leaves the server?

Because that doesn't matter in phflack's event strain.  All of his variables are <var:BR:counter>.  Br means brick.  The variable and any 'rememberance' of the player is saved as a br variable, thus the data is stored into your computer.  When you reload your builld, the data will still be there and if clicked by someone who's information was stored, it will still work.
omg this is turning out harder then i thought.

btw my bl res is 1280x600