So, after spending three days trying to figure out what was wrong with the code that I outlined in Dev Log #8 (https://sldesignfmp.game.blog/2019/05/20/dev-log-8/), I finally figured out the error. It was a minor error. I was using an “Else” statement, rather than what I should have been using; an “Else If” statement. It’s a seriously simple syntax error, but thankfully it’s no fixed. So now the code reads:
- <Custom maxhp Formula>
- if (this.name() === ‘Jeanné’) {
- value = level * 3 + 8;
- } else if (this.name() === ‘Tommyn’) {
- value = level * 3 + 12;
- } else {
- value = level * 3 + 10;
- }
- </Custom maxhp Formula>
All of the others I listed in the previous Dev Log work in exactly the same way, except that the numbers are different. But yeah, total schoolboy error. Fixed now though.