Hello all,
Me again. This time I am trying to make a general event, which gives resources, repeat without giving it an individual on/off-switch; in this example, a tree.
Setup (Which I already have and is working):
1. Event "tree" is empty until random variable "resource spawn" = 1.
2. Once "resource spawn" = 1, the tree appears and can be interacted with.
3. Hitting the tree with an axe activates self-switch B, which looks like a tree stump.
4. Hitting the stump with an axe gives item "wood" and activates self-switch C, which has a blank sprite.
5. On the self-switch B page, whenever the variable "resource spawn" is next =1, it will deactivate all self switches and repeat the process.
The problem here is probably evident: If the variable = 1, the tree appears, but by the time it is felled, the variable might still be =1, causing it to instantly reappear rather than with a delay of e.g. a day (in the evented time system I am using).
My issue is that I want to be able to create dozens, if not more, of these events, to scatter around maps for random chances to get wood. However, I want to do this without having to create an individual on/off switch for every single one of them, and rather make it a simple copy-paste-event.
Is this possible, or am I doomed to use a final individual off-switch per tree?
Many thanks for your help. I hope this makes sense, but please let me know if you require further explanation.
SBB
Me again. This time I am trying to make a general event, which gives resources, repeat without giving it an individual on/off-switch; in this example, a tree.
Setup (Which I already have and is working):
1. Event "tree" is empty until random variable "resource spawn" = 1.
2. Once "resource spawn" = 1, the tree appears and can be interacted with.
3. Hitting the tree with an axe activates self-switch B, which looks like a tree stump.
4. Hitting the stump with an axe gives item "wood" and activates self-switch C, which has a blank sprite.
5. On the self-switch B page, whenever the variable "resource spawn" is next =1, it will deactivate all self switches and repeat the process.
The problem here is probably evident: If the variable = 1, the tree appears, but by the time it is felled, the variable might still be =1, causing it to instantly reappear rather than with a delay of e.g. a day (in the evented time system I am using).
My issue is that I want to be able to create dozens, if not more, of these events, to scatter around maps for random chances to get wood. However, I want to do this without having to create an individual on/off switch for every single one of them, and rather make it a simple copy-paste-event.
Is this possible, or am I doomed to use a final individual off-switch per tree?
Many thanks for your help. I hope this makes sense, but please let me know if you require further explanation.
SBB