• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

OkazakiYunkoo

Recruit
Sep 25, 2024
5
3


Summary​

mtth can't work correctly

Platform​

Steam

Operating System​

Windows 10

Game Version​

1.16.9

Enabled DLC​

  • All of the above

Do you have mods enabled?​

Yes

Description​

first,in any scripted_effects,set a temp variable A to any value,then in mtth,define a mtth and set a temp variable B to any value in modifier block and let modifier block return any value not 0,then set a temp variable C to the mtth.
Now if variable A and variable B's names are meet some condition,and name of variable C meet another condition,it will make the variable C became 0 but not the "add = " value in mtth. For example, A and B could be (name of A and B can be exchanged to make the bug.): paraMathLib_sThetaArg,cMathLib_sThetaArg,cMathLib_fThetaArg,tempMathLib_vThetaArg,maraMathLib_sThetaArg…… and so on. and name of C could be t_t,temp_t,tmp_t,etc. if the name of temp variables are selected from above,it will make variable C 0 instead of value defined in mtth.



Steps to Reproduce​

1.
define a scripted_effect in any file of scripted_effects with any name,and enter:
t_test = {
set_temp_variable = {
tMathLib_cThetaArg = 1
}
set_temp_variable = {
temp_t = mtth:MathLib_tester
}
log = "variable C:[?temp_t]"
}
2.
define a mtth in any fine in mtth with any name,and enter:

MathLib_tester = {
base = 0
modifier = {
set_temp_variable = {
paraMathLib_sThetaArg = 0
}
add = 30
}
}

3.
enter "e t_test" in console and now return 0 in log. change the variable name to those I listed above and see log return 0 still,change variable name to another random string and see log return 30 correctly.

Are you playing on a save from the previous/older version of the game​

No

Upload Attachment​