Dogwithswords
Member
For some unknown reason I am unable to create a script that can plug in different parameter names. I want to create a script that evaluates everything using the same equation. For some reason it's not evaluating whatsoever and I only get 0 back.
Just to keep this simple, I'll include a test example.
My create event initializes the value:
My step event utilizes the script:
And the testScript itself looks like this:
I kinda have a feeling that it's taking the value of testValue (which is 0) and evaluating like this:
0 = 2 + 2;
Assuming that is the case, I'll need a literal string value pushed into the script. Other than that, the code looks perfectly fine to me yet... it doesn't work! Can anyone tell me what am I doing wrong here? I appreciate it.
Just to keep this simple, I'll include a test example.
My create event initializes the value:
Code:
testValue = 0;
Code:
testScript(testValue, 2, 2);
Code:
argument0 = argument1 + argument2;
0 = 2 + 2;
Assuming that is the case, I'll need a literal string value pushed into the script. Other than that, the code looks perfectly fine to me yet... it doesn't work! Can anyone tell me what am I doing wrong here? I appreciate it.