Blockland Forums > Help

Transfer Variables From A Brick To A Player

Pages: << < (3/4) > >>

Orthone:


--- Quote from: GenaralSkar on April 14, 2010, 06:25:06 PM ---I was thinking

--- Code: ---Onactivate->Client->Prompt->Do you want to transfer 5 variables?
Onpromptaccept->Self->ifvariable->[variable][>=][5]
Onvariabletrue->Self->Modvariable->[variable][subtract][5]
Onvariabletrue->client->modvariable->[variable][add][5]
Onvariablefalse->client->This brick does not have 5 variables

--- End code ---

--- End quote ---


--- Code: ---Onactivate->Client->Prompt->Would you like to take the money?
Onpromptaccept->Self->vce_ifvariable->brick->[money][>=][1]
Onvariabletrue->Self->Modvariable->[variable][set][0]
Onvariabletrue->client->modvariable->[variable][set][<var:br:money>]
Onvariablefalse->client->This brick doesn't have any money!
onvariabletrue->client->chatMessage->You collect the money and now have <var:cl:money>!

--- End code ---

Along those terms, using your format.

GenaralSkar:

Thanks. I didn't know you could use the <var> stuff to mod variables.

Orthone:

What server are you on and get on steam.

GenaralSkar:

Um, why?

Orthone:

So I can come help you if you need any more help.

Pages: << < (3/4) > >>

Go to full version