project-navigation
Personal tools

Author Topic: Where is character create function?  (Read 3378 times)

Djadavin

  • Guest
Where is character create function?
« on: December 09, 2008, 10:50:55 am »
Hello. I want to change a maximum of soldiers HP, and also make their stronger, say please that i need to do.
I read source but its all type "chr->maxHP" and nothing says about how that maxHP calculate.
Give me a pointer on character create function.
Thank you.

Offline BTAxis

  • Administrator
  • PHALANX Commander
  • *******
  • Posts: 2607
    • View Profile
Re: Where is character create function?
« Reply #1 on: December 09, 2008, 01:36:38 pm »
Look in inv_shared.c, around line 1635. Health is randomly picked between two values given in the templates. Templates are randomly picked as well.