Author Topic: how do i do this?  (Read 656 times)

how do i make a voting thing like you press the ? button it says "should i make the jail bigger?" and its a promt so when someone votes yes a print brick will say 1 then if another one votes it will say 2 ect all the way to 100 :O ok and i want it to do the same for no i have vce and decrementprintcount and setprintcount are there any other ones i need? thanks

~deathrider

Quote
On activate>Client>Prompt>Yes/no>Should I make the jail larger?
Yes>VCE_ModVariable>[Yes] [Add] [1]
No>VCE_ModVariable>[No] [Add] [1]

On a brick below the voting brick
Quote
OnActivate>Client>Centerprint> [<vce:client:Yes> People have voted yes, and <vce:client:no> have voted no!]

Oops, I forgot, you need the latest version of VCE to do this.

it says when i click the ! brick the one that tells me how many people have voted

vce:client:Yes> People have voted yes, and <vce:client:no> have voted no!

bump and btw the thing is next to the ?




Title is ambigous.
that it is
On a brick below the voting brick
you did not even test that, as it could not exist

Code: [Select]
onactivate>client>vce_ifvaraible[voted](!=)[1]
onvariablefalse>client>bottomprint[<var:br:yes> voted yes. <var:br:no> voted no.]
onvaraibletrue>client>prompt(yes/no)[Should I make the jail bigger?]
onpromptaccept>self>vce_modvariable[yes](add)[1]
onpromptdecline>self>vce_modvariable[yes](subtract)[1]
onpromptaccept>client>vce_modvariable[voted](set)[1]
onpromptdecline>client>vce_modvariable[voted](set)[1]

i believe that this should work, although you might want to add a saving/loading part to it so they can't leave and come back to vote more times, and with this they can't see the results until they vote