April 19, 2024, 05:03:48 pm
Username:

Password:

Topic: how do I change heath/ exp per level?  (Read 1389 times)

lordsaxx678

  • Posts: 3
    • View Profile
how do I change heath/ exp per level?
« on: October 13, 2020, 05:50:00 pm »
I downloaded the Source code and was wondering on how to change the base starting heath and exp needed per level.

Slowhand

  • Posts: 278
  • Go for the eye, Boo! Go for the eyes!
    • View Profile
Re: how do I change heath/ exp per level?
« Reply #1 on: October 13, 2020, 11:04:23 pm »
To change start max HP, find this line in 'parameters.fos' and change the value. (For example change 15 to 115 to add 100 extra starting HP)

Code: [Select]
_param_[ST_MAX_LIFE] += 15;


To change XP per level mess around with the following function, for example change 1000 to 10. (I did not test this answer, so if not correct, look for something similar in code.)

Code: [Select]
int NextLevelNeedExp(Critter& cr)   // Export
{
    int level = cr.Stat[ST_LEVEL];
    return NUMERICAL_NUMBER(level) * 1000;
}

You can also ask questions on discord #modding text channel, I don't always check forums.

lordsaxx678

  • Posts: 3
    • View Profile
Re: how do I change heath/ exp per level?
« Reply #2 on: October 16, 2020, 03:56:15 am »
Alright thank you  ill be sure to look into that discord server.