Incase this wasnt answered on aim, or if anyone else is still confused after reading the other post...
NPC Code:
playerdarts = (playerdarts>=70 ? 99 : playerdarts+30);
1. 2. 3. 4.
the part before the ? is the conditional statement playerdarts>=70, so the NPC checks to see if the player has 70 or more arrows. If the player does, the NPC makes the dart count to 99, if not the dart count increases by 30.
another example could be this:
You want to say, if the player has 3 or less hearts, the NPC should make their current heart count 5 (assuming that is within their fullheart length), and if they have more than 3, make it so they have 1 more heart.
NPC Code:
playerhearts = (playerhearts>=3 ? 5 : playerhearts+1);
1. 2. 3. 4.
so....
1 : what you want to change
2 : what you are checking
3 : what you are checking is true, the variable gets that value (ie 1<2 would be true)
4 : what you are checking is false, the variable gets that value (ie 1>2 would be false)