Author Topic: I need help help with this one event using VCE!  (Read 2373 times)

I want a box's lid to spawn more than 5 random items. How do I event that with VCE? I am creating a DayZ map and I need the crates to spawn with a random item. If you will give me an event to do that, here is some cookies to show my appreciation!  :cookie:   :cookie:

Can anyone please tell me how instead of viewing!!?

I use this for my random crate in my server.

Code: [Select]
[1] Onactivate -> self -> VCE_Ifvariable -> randomitem == 1 [1 3]
[2] onvariable true -> self -> setitem -> gun
[3] onvariable false -> self -> VCE_ifvariable -> Randomitem == 2 [2 4]
[4] onvariable true -> self -> setitem -> gun akimbo
[5] onvariable false -> self -> VCE_ifvariable -> randomitem == 4 [[number [number]]
If it doesn't work ima check again on my crate.

I use this for my random crate in my server.

Code: [Select]
[1] Onactivate -> self -> VCE_Ifvariable -> randomitem == 1 [1 3]
[2] onvariable true -> self -> setitem -> gun
[3] onvariable false -> self -> VCE_ifvariable -> Randomitem == 2 [2 4]
[4] onvariable true -> self -> setitem -> gun akimbo
[5] onvariable false -> self -> VCE_ifvariable -> randomitem == 4 [[number [number]]
If it doesn't work ima check again on my crate.

Thanks, I'll try that

I use this for my random crate in my server.

Code: [Select]
[1] Onactivate -> self -> VCE_Ifvariable -> randomitem == 1 [1 3]
[2] onvariable true -> self -> setitem -> gun
[3] onvariable false -> self -> VCE_ifvariable -> Randomitem == 2 [2 4]
[4] onvariable true -> self -> setitem -> gun akimbo
[5] onvariable false -> self -> VCE_ifvariable -> randomitem == 4 [[number [number]]
If it doesn't work ima check again on my crate.

I tried but it didn't work

I tried but it didn't work
I'll take a print screen of it tomorrow!, right now I have to go :/

I'll take a print screen of it tomorrow!, right now I have to go :/

Alright thank you

input > self > vce_modvariable [choice] [set] [0]
input > self > vce_modvariable [choice] [random] [# of choices]
input > self > vce_ifvariable [choice] [==] [0] [3 4]
onvariabletrue > self > setitem [first item]
onvariablefalse > self > vce_ifvariable [choice] [==] [1] [5 6]
onvariabletrue > self > setitem [second item]
onvariablefalse > self > vce_ifvariable [choice] [==] [2] [7 8]
...
onvariablefalse > self >setitem [last item]

that should do it

input > self > vce_modvariable [choice] [set] [0]
input > self > vce_modvariable [choice] [random] [# of choices]
input > self > vce_ifvariable [choice] [==] [0] [3 4]
onvariabletrue > self > setitem [first item]
onvariablefalse > self > vce_ifvariable [choice] [==] [1] [5 6]
onvariabletrue > self > setitem [second item]
onvariablefalse > self > vce_ifvariable [choice] [==] [2] [7 8]
...
onvariablefalse > self >setitem [last item]

that should do it

Thanks man! I'll go try this out now!

Here it is.

Note: This is only when a player clicks the block and has 300 points. It adds an item to the players inventory.