Code: Select all
$ InTeaching = "Skill1"
$ Skill1Value = 1
$ Skill1ValueOld = 0
$ MoodAngry = 4
$ MoodHappy = -2
$ MoodAffection = 0
$ TeachingMorning = 0
if InTeaching == "Skill1":
$ Skill1ValueOld = Skill1Value
$ MoodAffection = (MoodAngry + MoodHappy)
$ TeachingMorning = [(MoodAffection + 6)*1.66667]
$ Skill1Value = (Skill1ValueOld + TeachingMorning)
else:
passI get error on the "$ Skill1Value = (Skill1ValueOld + TeachingMorning)" line. TypeError: unsupported operand type(s) for +: 'int' and 'RevertableList'.
What I got from that is, either Skill1ValueOld or TeachingMorning is not an integer value, but when I remove their addition, run it and check developer menu, both of them integers are.
And that line is written the exactly same way as addition of MoodAngry and MoodHappy, and I don't get errors there! What the hell am I doing wrong?!
