I am using Yanfly's Base Parameter Control and the formula for the MaxHP is this:
customMax || (user.isActor() ? 9999 : 8000)
What does the first and second number mean and do?
The question mark is short for an if-condition, with the condition formula being in front of the question mark and the two different sections behind the question mark being the results for condition true and false.
EDIT:
I strongly suggest that you learn javascript and/or programming if you want to change formulae there.
The example formula you gave can have three different results for example, and those are difficult to explain without understanding of programming.
Ok, changing the first number changes the HP cap, but what does the other do, cause I change it to 0 and I don't see what it is supposed to change.
the other number replaces the 9999 if the formula is not for an actor - no actor will ever use that number, but it will count for enemies.
please read my edit above, it just became more important with your additional question.
Ah, thanks, I changed it to 0 but that stat was still displaying as 9000 for the enemy in a plugin's encyclopedia, but in battle it does cap it, it is that how it works? Or it depends how different plugins display stats?
depends on pluigin and plugin order - yes, even the order in which plugins are installed is important because the later plugins may override the plugins installed above, and especially yanfly plugins can cause a lot of problems if installed in the wrong order.