View Single Post
Old 09-15-2012, 11:05 PM   #225
Fair Strides
@Fair Strides 2
Witty Programmer
Fair Strides 2's Avatar
Status: Moderator
Join Date: Jan 2012
Location: Oregon, United States
Posts: 718
Current Game: Master of Orion 2
Show spoiler

The very first 'if', along with the 'else if' and the 'else' checks how many people are in the party. The set of 'ifs' in the conditionals check to see if a person has less than their maximum health, and if so heals them for nHealcount. If their current and maximum health points are the same, nothing happens. I used this bit of code to heal the entire party with death field instead of just the PC, as part of a mod request I picked up.

Last edited by Fair Strides 2; 09-15-2012 at 11:12 PM. Reason: add-on
Fair Strides 2 is offline   you may: quote & reply,