Hero6 http://hero6.org/forum/ |
|
Increasing character skills/ decreasing health http://hero6.org/forum/viewtopic.php?f=17&t=64 |
Page 1 of 1 |
Author: | bdimopoulos [ Mon, 25 Aug 2014 11:33 ] |
Post subject: | Increasing character skills/ decreasing health |
Hey guys I'm trying to wrap up the climbing script and I have a couple of questions (and I'm too tired to start digging in the code to find out). Do we have specific functions or particular manners of handling: a) Decreasing character health? b) Increasing a skill? Thanks |
Author: | ChamberOfFear [ Mon, 25 Aug 2014 12:52 ] |
Post subject: | Re: Increasing character skills/ decreasing health |
I just took a quick look through and found two functions which seems to match your needs. a) DecreaseHealth(short val) line 793 in Combat.asc b) All skill increases are found in Statistics.asc Remember that we are taking over code from a team that was in a rush to port the game from the MAD engine over to the AGS engine. So a part of the job is to clean up the messy code so we don't lose our hairs when the real work with the plot comes in. Just with a quick glance I noticed that both DecreaseStamina and DecreaseHealth functions were both in Combat.asc, which doesn't make much sense to me, they should be in Statistics.asc. If you could migrate any stray function with nonsensical placements over to a better place along as you work, it would be much appreciated. |
Author: | bdimopoulos [ Mon, 25 Aug 2014 19:24 ] |
Post subject: | Re: Increasing character skills/ decreasing health |
Will do, thanks |
Page 1 of 1 | All times are UTC - 8 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |