[HELP]Using (f)value from one script in a 2nd script

Twistedself

Noobzor

This is going to be a simple question that most of you will laugh at me for asking but here it is. I made a script for a game that scans out the location of my needle position(timing/accuracy game). I used this to be able to hardcode a value into that address to give me any ending value I wanted. I did some reading and wrote me a random number generator using the 2*15 method, then ctvsiss the int generated between [top] and [bottom] range to generate me a float within my "perfect" range. I then stored this generated number in [finalWantedNumber].
Now on to my problem. How do I call the value stored in this second script in my first script with the needle position? I changed the value of my [wantedNumber] to point to my [finalWantedNumber] but I keep getting the error that it failed to parse.
Please any insight into how I am failing would be appreciated.

The main thing is create the label, place it, and register it with the user symbol list using registerSymbol.
https://wiki.cheatengine.org/index.php?title=Auto_Assembler:Commands
https://wiki.cheatengine.org/index.php?title=Auto_Assembler:registerSymbol

T

Twistedself

Noobzor

Wanted to say this. Script is a little sensitive or I would post it in it's entirety. I will share with anyone that can fix my CE problem. A little more info about the problem.
Made a simple script for accuracy like

Under this there is another entry that allows you to drop down and select the accuracy you want. All this is working fine. Then I went and created my random number gen using methods found online, mine looks like this.

When I try to call the value I generate into the Position script it tells me It is unable to parse. I assume I am fucking up the labels and registers but I am very new to ASM and I can't find my own answer. Thank you for your time.

TheyCallMeTim13

Enchanter

^^ You can register them anywhere after the label is created in the enable section; but make sure to unregister them in the disable section, I like it at the end as that just makes sense but I've seem working scripts with it at the top of the disable section. And run them in order, so the one the create the labels used elsewhere first then the script that uses them.

And it looks like you're missing the return (RET) for the code you're using with createThread.

Twistedself

Noobzor

You're awesome, Thanks! I just label them in the very beginning and it worked. I was able to quickly tweak and get a very nice working script going that randomly changes values within range every 1000 ms. Perfect. Now I went and copied the code in triplicate and numbered everything 1, and 2 respectively. Now I am generating numbers within all 3 perfect ranges! Only thing left to do is find a way to randomly select one of the 3 results of randomly generated "perfect" ranges. Thanks again.