Author Topic: Help with events!  (Read 1107 times)

Im making a game, and i need some help with events.

Question 1: How do i make so if a person has a certain amount of points (lets say 50) he can buy an item. However, if there's less points than 50, then it doesn't let the person buy the item. What events are used for this?

Question 2: How do i make so when i press a button, all bricks with a certain name (lets say the name is house) give the person who planted them a certain amount of points? THEY ONLY GIVE POINTS TO THE PERSON WHO PLANTED THEM, NOT ME OR ANYONE ELSE.

Question 3: Is it possible to make it so when a person buy's the thing (from question 1) its not a tool but it like lets you build a certain amount of bricks and ONE of them is named "house"?


Ill give cookies to anyone who tells me :D
 :cookie:

Question 1 and 2 are sort of hard to explain over the forums, but I can help you if I come to your server.
Question 3, I do not think is possible with events.

Don't cookiespam.

1: Yes. You will need Variable Conditional Events. Have these events:
Code: [Select]
OnActivate<Self<VCERetroCheck<IfPlayerScore >= 50
OnVariableTrue<Player<AddItem<[AddTheItemHere]
OnVariableTrue<client<IncScore [ -50 ]
OnVariableTrue<client<centerprint[ You got a (type the item here) ]
OnVariableFalse<client<centerprint[ You do not have enough points for this! ]

2: Not possible to detect brick ownership.

3: Not possible to detect a brick without re-eventing it. Also can't have a brick be automatically named upon placement.

Don't cookiespam.

1: Yes. You will need Variable Conditional Events. Have these events:
Code: [Select]
OnActivate<Self<VCERetroCheck<IfPlayerScore >= 50
OnVariableTrue<Player<AddItem<[AddTheItemHere]
OnVariableTrue<client<IncScore [ -50 ]
OnVariableTrue<client<centerprint[ You got a (type the item here) ]
OnVariableFalse<client<centerprint[ You do not have enough points for this! ]
2: Not possible to detect brick ownership.

3: Not possible to detect a brick without re-eventing it. Also can't have a brick be automatically named upon placement.

Fixed! Ignore my above post, read this quote.

Question 1 and 2 are sort of hard to explain over the forums, but I can help you if I come to your server.
Question 3, I do not think is possible with events.
Ok ill probably start a server right now. It'll be named "rusanton99's test server". Ok?

Fixed! Ignore my above post, read this quote.
Thanks! Ill try to do that.

Oh and also here are some cookies for both of you:
 :cookie: :cookie: :cookie: :cookie: :cookie: :cookie:

hmmm i need more help bump

hmmm i need more help bump
no need to bump a topic if it's on the front page
and what do you need help with? you should at least tell us so we CAN help...

no need to bump a topic if it's on the front page
and what do you need help with? you should at least tell us so we CAN help...
Ummm the first post explains everything its just the 2 people above didn't provide me with enough information.

Ummm the first post explains everything its just the 2 people above didn't provide me with enough information.

You seem to be a bottomless pit when it comes to information.
Before doing something tricky like this, start simpler and learn to event.

Don't cookiespam.
Spamming is making more than one of something unwanted. Yes, maybe Cookies are unwanted, but he didn't make a bunch of them.

Ontopic: The first two can be done with VCE, I think.

Spamming is making more than one of something unwanted. Yes, maybe Cookies are unwanted, but he didn't make a bunch of them.

Ontopic: The first two can be done with VCE, I think.
Please tell me how!!!!


Please tell me how!!!!
why not try to figure it out?

bump
no need to bump a topic if it's on the front page

it has already been told to you how to do it
input>self>vce_ifvalue[<var:cl:score>][>=][50][1 1]
onvaraibletrue>player>additem[item]