- Joined
- Nov 4, 2013
- Messages
- 28
- Reaction score
- 2
- First Language
- English
- Primarily Uses
- N/A
Ok so what I've done is I made a script which resets events by turning off their self-switches.
The script works perfectly so far, but now I am having an issue with a door I made.
The way the doors I made work is: Door 'A' initially rolls a variable. Then uses a conditional branch (A set of three to be exact) to choose a self switch based on this variable. The self-switches each have a tab which has it's own transfer player event. and this leads to the door being randomized.
And because it is a tab on it's own, it stays the selection until reset through a script.
Then an event with a script inside resets the event. So far it's working perfectly (The script and Door 'A' anyways), however the problem starts with door 'B'
Door 'B' is set to Auto-Run, and has a set of conditional branches (Which is decided by the previous variable) which each activates a self switch. The self-switch activates a tab which allows the player to return to the previous room (Which was randomly selected).
So what I do is go through door A, then door B and back out Door A. I run the script and Door A resets perfectly.
However upon trying to return through door B, it hasn't reset and returns to the room chosen the first time.
It isn't re-reading the variable for some reason? It is resetting when I turn off Auto-run, but it still re-reads the old variable...
I would like to try and have all the doors in the game be randomized by the same variable to reduce load on the system and make things easier to keep track of. So I am trying to avoid having to write out a brand new variable for each set of random doors if possible.
Any help would be appreciated.
And note: As far as I can tell the script is not the problem, so I didn't post it under scripts.
The script works perfectly so far, but now I am having an issue with a door I made.
The way the doors I made work is: Door 'A' initially rolls a variable. Then uses a conditional branch (A set of three to be exact) to choose a self switch based on this variable. The self-switches each have a tab which has it's own transfer player event. and this leads to the door being randomized.
And because it is a tab on it's own, it stays the selection until reset through a script.
Then an event with a script inside resets the event. So far it's working perfectly (The script and Door 'A' anyways), however the problem starts with door 'B'
Door 'B' is set to Auto-Run, and has a set of conditional branches (Which is decided by the previous variable) which each activates a self switch. The self-switch activates a tab which allows the player to return to the previous room (Which was randomly selected).
So what I do is go through door A, then door B and back out Door A. I run the script and Door A resets perfectly.
However upon trying to return through door B, it hasn't reset and returns to the room chosen the first time.
It isn't re-reading the variable for some reason? It is resetting when I turn off Auto-run, but it still re-reads the old variable...
I would like to try and have all the doors in the game be randomized by the same variable to reduce load on the system and make things easier to keep track of. So I am trying to avoid having to write out a brand new variable for each set of random doors if possible.
Any help would be appreciated.
And note: As far as I can tell the script is not the problem, so I didn't post it under scripts.


