Author Topic: Eventing Help  (Read 654 times)

Okay, so here is what I want to do.
I want to put a time limit on spawned items, say you spawn a certain item, you can only
get in once, then you have to wait x minutes.
Can someone help me with this?

Hey Pouch, what you need to do is when you hit something with a wrench, the first screen that pops up has the item you want to spawn. Under that is bar that named "item respawn time" with the number 4 in it (4 seconds being the defalt), you need to change that number to 120 if you want 2 minets.

EG: i want to have a Gun spawn 3 min after someone picks it up.
Set the item to Gun
Set the item respawn time to 180
click send

Thats all there is to it

BTW, first post =)

Oh god I am stupid. Thanks. Lockdown initiated.

One more question, how do I do that with events, like so.
Say I click a brick and it gives me x item.
How do I make it so when I click again, it doesn't give it to me, and I have to wait x times?

I am assuming that you are new to Blockland, do you know how to use events?
Don't worry, I have faith in you so i will tell you anyways. this is what that would look like

Delay:0>On Activate>player>add item>Gun           This event gives the player you item
Delay:0>On Activate>set ray casting [OFF]             This event makes it so the player cant click on the brick again (Ray casting)
Delay:5000>On Activate>set ray casting [ON]        This event makes it so after 5000 milliseconds, the player can click it again

That should do it =) let me know if you need more help.

Sorry for the double post

BTW the event "Add item" is an addon you must get from the forms. It is not a default addon.

Sorry, I am not new to Blockland at all.
But thanks anyways, that was really helpful.
I never knew that ray casting made the invisible brick unclickable.
Thankyou.

Okay, so here is what I want to do.
I want to put a time limit on spawned items, say you spawn a certain item, you can only
get in once, then you have to wait x minutes.
Can someone help me with this?
New question!
I want it so that when you click brick a, brick b lights up for a certain amount of time, then goes back to it's original color.
Example:
When you click the gas container, the fluid turns grey to show that you can't take anymore gas.
But after 5000 miliseconds, it turns back to its original color, and you can take more gas.
Help.

New question!
I want it so that when you click brick a, brick b lights up for a certain amount of time, then goes back to it's original color.
Example:
When you click the gas container, the fluid turns grey to show that you can't take anymore gas.
But after 5000 miliseconds, it turns back to its original color, and you can take more gas.
Help.

Ok, name brick B, then put in the event:
onActivate - Named Brick (Brick B) - SetColorFx - Glow

and with a delay of 5000 the above line except setcolorfx none... Wait that might not be what you want but ill get back to you, i gtg now.

The earlier thing with the weapon, using toggleeventenabled I find better to use.

Ok, the gas.

According to you description, I understood that you want to know how to change the color of bricks from black (gas) to clear (no gas).  Idk by what means you will be emptying the container, but my example will use two bricks; a large brick call Gascontainer, an a small one name Gasemptier.

Here is the chain of events on the Gasemptier

[/] 0 onactivate->named brick=Gascanister->setcolor->clear
[/] 5000 onactivate->named brick=Gascanister->set color->black

More can be done if you want it to be a liquid in a glass container.

And through all my years of BL, I have never changed the item spawn time from 4, I have never found a reason to.