Advanced Scene Switcher

Advanced Scene Switcher 1.28.1

Destroy666

Member
Hello guys,
Im trying to make a win lose variable that gets saved into a .txt file, is this possible? I am kind of lost with how variables work and need some help.
The thing I want to do exactly is that I have a score.txt which flaxuates from 0 to 1000. What I want is an initial variable to get that number from the score.txt file and save it (for example lets say its 150) and then compare it again (every 3s for instance) with the same score.txt file which lets say gets update to 175 later variable . If later variable<initial variable then add +1 to a win.txt file and update initial variable value to 175 else +1 to a lose.txt file and update initial variable value to (score.txt lower value). Does anyone have any idea how to achive that? Thank you in advance btw!
You can do exactly what you described. If you have trouble with something specific, it'd be great if you specified what. Variable actions/conditions help with var changes like setting, incrementing or checking if bigger, File condition + macro properties to get changes and lastly either Timer condition with every 3s comparison or changing macro settings to wait at least 3 seconds between runs.
 

Prestorec

New Member
You can do exactly what you described. If you have trouble with something specific, it'd be great if you specified what. Variable actions/conditions help with var changes like setting, incrementing or checking if bigger, File condition + macro properties to get changes and lastly either Timer condition with every 3s comparison or changing macro settings to wait at least 3 seconds between runs.
Where I face issues is I can't figure the next step after setting
If>File>score.txt
Local File>score.txt>has changed
then
Variable
...?

I've set a new variable as
Name>Initial Score
Current Value>0
Save / Load Behavior>Save Variable Value
1740663232492.png
Then which setting from the drop down menu i need in the set to condition value to set it in order to get score.txt value?
 

Destroy666

Member
`Set to macro property` is what you need. Then `File content`. `Set to condition value` with proper condition could also work, but this is much cleaner.
 

Prestorec

New Member
`Set to macro property` is what you need. Then `File content`. `Set to condition value` with proper condition could also work, but this is much cleaner.
Could you please be more specific with images or pseudo language for what i need to do. Im a bit lost on how to use macro property since it doesnt have anything that shows in the drop down menu and I dont find file content on then section unless you mean File as the above image i sent you.
1740671661145.png

Mind you Initial Score is not set to anything since I can't find how for it to fetch score.txt
 
Top