Over at github there's a
wiki you can browse through where we have code examples and such...
The
natural attacks article has some good info:
You're looking at two fields - wRangeNorm and wRangeLong for ranged attacks.
When Joshua says to look at special abilities and make copies, he's often referring to the other non-attack things like Pounce, False Appearance or any of the "traits" that can appear either in the Traits area or in the Actions/Reactions/Legendary Actions areas of a statblock that aren't necessarily melee or ranged attacks. If you do a New (Copy) of one of these it becomes a stand-alone copy that you can change whatever you want about it. A lot of things like False Appearance are sometimes hard to give a "generic" version of, so it's just easy and quick to make a copy that has the right wording and attach it.