Author Topic: Using VCE to spawn a random item.  (Read 2276 times)

I am trying to get a brick to spawn a random item when the minigame is reset. Why is it not working?



I also tried it with Ifvalue.

onMinigameReset-Self-VCE_modVariable-Brick-item-set-1
onMinigameReset-Self-VCE_modVariable-Brick-item-random-4
onMinigameReset-Self-VCE_IfVariable-item-[==]-[1]-[3 3]
onVariableTrue-Self-setItem-Pills Here
onMinigameReset-Self-VCE_IfVariable-item-[==]-[2]-[5 5]
onVariableTrue-Self-setItem-Molotov
onMinigameReset-Self-VCE_IfVariable-item-[==]-[3]-[7 7]
onVariableTrue-Self-setItem-Pipe Bomb
onMinigameReset-Self-VCE_IfVariable-item-[==]-[4]-[9 9]
onVariableTrue-Self-setItem-MedKit

The last boxes on events 3, 5, 7, and 9 are for a range of numbers, so if you want one event, type the same number twice.

The last boxes on events 3, 5, 7, and 9 are for a range of numbers, so if you want one event, type the same number twice.
He also messed up on the first 3 events to get a random number.