Ok I am going to try to be really simple here. I would like to make a condition check where if a certain value is associated with a certain variable then something else happens. You may be thinking what an idiot as this is very basic stuff and I agree 100% apparently I am having trouble doing this, let me explain in code.
1@ = Memory address value that was read
1@ == 1
jf @script work
jump @Script check //Script will not work until value is not 1, it will loop
So if the memory address value is 1 then the script check will loop until 1@ NOT = 1, then it will work. This unfortunately doesn't work and I don't know why as it seems REALLY simple. I had another idea which was using opcode 0A92 (Create Custom thread) and that sorta works, but once the other script is working you can't end/stop it.
//Code to check if player is player, etc and if key pressed
Write memory Value to Not Work/OFF
0A92: create_custom_thread "Mod/Flame.cs"
//Code to do more checks
Write memory value to WORK/ON
0ABA: end_custom_thread_named 'Mod/Flame.cs'// This part never stopped the script
That was another idea but it failed as well. I hope this was not confusing for anyone as I was just telling my two ideas to try to get my goal achieved. If I need to explain more, I can. Any help is appreciated. Thanks
P.S. My goal is kinda simple. If Script A, which we'll call Hydro, is running then Script B, Which we'll call Flame, can't run and vice versa if Flame is running Hydro is not. Both can NEVER run at the same time. Hope that clears up any confusion.