There is. But it's going to take some work.


This is from BaseCreature.cs
Code:
        [CommandProperty(AccessLevel.GameMaster)]
        public override int HitsMax
        {
            get
            {
                if( m_HitsMax > 0 )
                {
                    int value = m_HitsMax + GetStatOffset(StatType.Str);

                    if( value < 1 )
                        value = 1;
                    else if( value > 65000 )
                        value = 65000;

                    return value;
                }

                return Str;
            }
        }

The standard equation for player strength as per osi:

(50 + (Strength / 2))
 
Yes, i found this earlier, but i still don't get how to change this, cause i thinked that "else if" value it is max hp :)
P.S Sorry for my bad eng)
P.P.S And if standart formula is (50+ (STR/2)) doesn't it mean what if creature has 1000str it's hp need to be 550?
 
Code:
        [CommandProperty(AccessLevel.GameMaster)]
        public override int HitsMax
        {
            get
            {
                return (int)(50 + (str / 2));
            }
        }
 
Yes, i noticed it, but for example, i trained dragon, through skillcheck.cs i changed max allowed stats, so he can train 1000+ str, but his max hp stays at 493, maybe this is fixed value located somewhere?
 
Now it says that name "str" doesn't exist in current context :)
 

Attachments

  • BaseCreature.cs
    160.9 KB · Views: 0

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back