Parameter inconsistent

I have a problem with one of the parameters and I am not sure if the script I am using to check it is accurate
Code:
◆If:Script:($gameActors.actor(1).param[2] = 1)
  ◆Common Event:Str_check
  ◆Control Variables:#0200 V200 = Attack of \N[1]
  ◆Change Parameter:\N[1], Attack + 5
  ◆Control Variables:#0200 V200 += STR+-
  ◆Script:$gameVariables.setValue(200, ($gameVariables.value(200) + $gameActors.actor(1).param[2]) / 2) - 10;
  ◆Change Parameter:\N[1], Attack + {V200}
  ◆
:Else
  ◆
:End
I did this because when I started the game it seemed to ignore the parameters I had set for the character and moved his attack to 1 but with this, it just keeps skyrocketing up.
why do you use script at all? everything in that sequence can be done with control variable, absolutely no need for any script.
especially the if branch is much easier with using control variable and then checking the variable value.
Two reasons why it's not working.

1. The if condition is using the assignment operator instead of the equals comparison operator
2. param is a function, not an array

That being said, replacing the script calls with normal event commands as Andar suggested would be better.
That did help fix the problem but I have now found the source of my characters attack getting lowered to 1.
The dagger?
No other weapon seems to have the same effect of just lowering my attack to 1.
Edit: is it the attack *5%? i just saw that and wanted it to increase attack instead
you gave the dagger the trait "attack * 5%"
That means "multipy my current attack value with 5%" - that trait reduces the actor attack to one twentieth of its total value, so if the attack value is below 30 or so then of course only 1 (rounded) will remain.
To increase attack you need to multiply with a value above 100%

I think you should take the time to go through the tutorials and learn what the options in the engine do before using them - not everything is obvious, and here you even missed the fact that the trait tells you exactly what it does (multiplication sign).
There are other options more hidden...
you gave the dagger the trait "attack * 5%"
That means "multipy my current attack value with 5%" - that trait reduces the actor attack to one twentieth of its total value, so if the attack value is below 30 or so then of course only 1 (rounded) will remain.
To increase attack you need to multiply with a value above 100%

I think you should take the time to go through the tutorials and learn what the options in the engine do before using them - not everything is obvious, and here you even missed the fact that the trait tells you exactly what it does (multiplication sign).
There are other options more hidden...
I misread it thinking the *5 added that on to the assigned total. Then I forgot I had that added.

I also have learned a lot more since I done that as it was quite early in the development that was added. I overlooked it.
Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/parameter-inconsistent.104984/