Closed Darkcyde13 closed 3 months ago
Hah! It turns out that this issue is simpler (and more script specific) than I had thought.
The Mission faction state
script is overwriting our state
map because of this line:
{set state to mission.FactionState.invariantName}
Changing state
to factionState
in the Mission faction state
script fixes the problem we're seeing in the Mission accepted
script.
Oh! Something so simple? I didn't realise that we could actually overwrite EDDI's State() with a simple variable declaration using 'state'. I'm glad you found it, and that is was so simple! 😃
I'll give that a try, thank you!
What's Wrong (please be as specific as possible)
Expected
State variables to retain their value throughout the execution of a script.
Observed
Populated State variable is OK at the start of scripts, but becomes void in the middle, and then populated again at the end, even though no code interacts with it.
Steps to reproduce
{SetState('rescue_mission_data', "961292804-1-Claim,961293060-1-Complete,961293569-0-Active")}
Mission accepted
, with{dump(state.rescue_mission_data)}
, at the start, middle, and ends of the script.Configuration
My Investigation
Investigation Notes
As discussed with T'kael on the forum via DM. Reproduced below:
EDDI Logs
N/A
Player journals
N/A