Author Topic: Random Loot event?  (Read 928 times)

I want to create an event so that the player clicks the block, It has a 1/100 chance to drop an item in their inventories. Is it possible?


Yes.
Wow, how helpful. It's pretty obvious he's asking how to do it, even though he worded it wrong.

This can be done with VCE and a randomItem event that you can download.

Wow, how helpful. It's pretty obvious he's asking how to do it.
Is it possible?

I was answering the question.

I was answering the question.

Yeah, Shame on me.

Wow, how helpful. It's pretty obvious he's asking how to do it, even though he worded it wrong.

This can be done with VCE and a randomItem event that you can download.

Does that randomItem event has a chance of dropping or it does drop by every click?

If done properly either or.


Then I'll try the events off the top of my head. Idk if they'll work or not though.
Code: [Select]
[0][0]OnActivate>self>VCE_ModVariable>Brick>[A] set [1]
[1][0]OnActivate>self>VCE_ModVariable>Brick>[A] random [100]
[2][0]OnActivate>self>VCE_IfVariable>[A] == [100] [3 3]
[3][0]OnVariableTrue>Player>AddItem>blah

Then I'll try the events off the top of my head. Idk if they'll work or not though.
Code: [Select]
[0][0]OnActivate>self>VCE_ModVariable>Brick>[A] set [1]
[1][0]OnActivate>self>VCE_ModVariable>Brick>[A] random [100]
[2][0]OnActivate>self>VCE_IfVariable>[A] == [100] [3 3]
[3][0]OnVariableTrue>Player>AddItem>blah

Possible with random items? Like.. Not always the same item?

If you grab the random item add-on, then yes. If you wish to do it purely with VCE it'll take some time for me to write out, and for you to event it.

Then I'll try the events off the top of my head. Idk if they'll work or not though.
Code: [Select]
[0][0]OnActivate>self>VCE_ModVariable>Brick>[A] set [1]
[1][0]OnActivate>self>VCE_ModVariable>Brick>[A] random [100]
[2][0]OnActivate>self>VCE_IfVariable>[A] == [100] [3 3]
[3][0]OnVariableTrue>Player>AddItem>blah

I tried it out, But gives me weapon every time..

Then you did something wrong, probaby the VCE_IfVariable part.

Then you did something wrong, probaby the VCE_IfVariable part.

Right exactly that part.. Works like a charm now. Thanks really much.