16
Help / VCE - Item collection system, escape/generator win system
« on: October 29, 2017, 08:46:04 PM »
I've tried this before, but it always screws up in weird and occasionally hard to reproduce ways.
The basic outline is, I have a brick that, on minigame reset, gradually randomizes the locations of eight collectable items. These could be pages, gas cans, bepises, or what-have-you. The location randomization system I have works, but no matter how hard I try, the game can't seem to remember how many items were collected and refuses to act properly. For some reason, sometimes the game thinks that all have been collected and activates events pertaining to that on the very first item. I have no clue why.
Basically, these items are set to disappear onActivate and increment a variable related to the minigame, as well as tell some bricks to check how many items there are and
display them in either chat or centerprint. But it just doesn't work half the time, and this is strange because by every means I can see, it should work perfectly.
I'd provide a screenshot, but I haven't because I suspect my entire system is broken. But the VCE manual's no help, searching on the forums is no help, so I have to ask here.
Can someone just provide me with a system that...
The basic outline is, I have a brick that, on minigame reset, gradually randomizes the locations of eight collectable items. These could be pages, gas cans, bepises, or what-have-you. The location randomization system I have works, but no matter how hard I try, the game can't seem to remember how many items were collected and refuses to act properly. For some reason, sometimes the game thinks that all have been collected and activates events pertaining to that on the very first item. I have no clue why.
Basically, these items are set to disappear onActivate and increment a variable related to the minigame, as well as tell some bricks to check how many items there are and
display them in either chat or centerprint. But it just doesn't work half the time, and this is strange because by every means I can see, it should work perfectly.
I'd provide a screenshot, but I haven't because I suspect my entire system is broken. But the VCE manual's no help, searching on the forums is no help, so I have to ask here.
Can someone just provide me with a system that...
- Randomly unhides one of four bricks labeled item1a/b/c/d etc, and repeats this up to item8 every minigame reset
- Upon clicking one, hides it and adds one item to the minigame's item count, displaying to everyone how many have been collected
- Upon collecting all eight, enables events for either a generator that must be started to win the round or, ideally, enables an 'escape here' zonebrick that wins the round once all LIVING players enter the zone