This is a default object made for RPG Maker. It's not easy to explain what an object is exactly, but it's easier to imagine objects as being "variables".
This particular variable holds information relating to the party, such as current party members, inventory, money, and possibly even more.
This object is a "property" of the $gameParty object. "Property" is just a fancy way to describe an object that belongs to another object. You can easily tell that _actors is a property of $gameParty, because the two are separated by a dot (.)
The _actors object is an array (arrays are like a list of objects) that contains the IDs of the actors currently in your party.
To retrieve data from an array, you can write
which retrieves the first item in _actors. Keep in mind that this only works if _actors has a variable in the first place (otherwise you get an error). Also note that the first object of an array is numbered 0, the second object is numbered 1, and so on.
This is a function that belongs to arrays. Unlike objects, functions actually
do something. They require arguments which they put within round brackets (). If the function doesn't need any arguments, then the brackets may remain empty. If you don't use the brackets, the function will be treated like an object (in which case it won't do anything). This is useful if you want to save a function into a variable for later use.
Functions can also return a result. For instance "something.add(5)" probably adds 5 to whatever number is saved in "something" and returns the result of the addition. This can be used like this: "HP = HP.add(5)", which means we're adding 5 to our current HP, then overwriting our current HP with the new value. Not all functions return a result, but many do.
The "some" function is a standard function in JavaScript. Other programming languages may have something similar but named differently (for instance C# calls it "Any"), or they might not have an equivalent at all.
This particular function tells us if there are some/any objects in our array, that satisfy a given condition. The condition in this case is a function that returns true or false (condition met, or not).
Here we are about to define a new function. Our function will require an argument (we call it "item") and will return either true or false, depending on whether our condition is met or not.
The "some" function will call our function for each item in _actors (and provide our function with said item as argument) until our function returns true. If there is an item for which our function returns true, "some" will also return true. If there are no more items left and "some" still didn't receive true, it will return false instead.
As you probably remember, $gameParty._actors only contains the IDs of our actors, so each "item" will be an ID.
This is a JavaScript command that will return whatever is evaluated on its right. In our case, its right is going to be either true or false.
Code:
$gameActors._data[item].hp < 0.9 * $gameActors._data[item].mhp
And finally, here is our condition: HP must be smaller than 0.9 MHP (90% of maximum HP).
Let's break it down a little more.
Like with $gameParty, this is an RPG Maker object. It contains all actors defined in the Database.
Unlike $gameParty._actors, which only contains the ID of the actors in our party, $gameActors contains the actual actors.
Property of $gameActors. This array is where our actors are actually held. Conveniently, the IDs found in $gameParty._actors coincide with the index of $gameActors._data, which is why we can retrieve our actor with $gameActors._data[item].
Remember that "item" in our case holds the ID of one of our party member.
Property of actor, it represents the current HP of that actor.
Also a property of actor, it represents the maximum amount of HP that actor can have. Comparing this value to the current HP tells us if the actor is wounded or not.