Page 1 of 1

The ability to specify random stats/skills for NPCs

Posted: Wed Nov 08, 2006 10:10 pm
by Yukiko
I tried setting STR to 10d12 on an NPC and the server produced an NPC with STR at 120. So I assume it cannot handle random ranges ATM.

Is it possible to add the ability to specify random ranges for stats and skills in future versions of POL?

For example:

Code: Select all

NpcTemplate savageridgeback
{
    Name                   a savage ridgeback
    script                 animal
    ObjType                0x85
    Graphic                188
    Color                  0
    TrueColor              0
    Gender                 0
    STR                    2d50
    INT                    10d3 + 10
    DEX                    3d25
    HITS                   54
    MANA                   0
    STAM                   75
    MagicResistance        4d12
    Tactics                4d10+8
....
This came to mind as I was reading UO Stratics and found that NPCs on OSI do have random ranges. Atleast the Treefellow does. I believe this will allow a bit more realism to be incorporated into the system.

Re: The ability to specify random stats/skills for NPCs

Posted: Sun Nov 19, 2006 12:06 pm
by Shinigami
Yukiko wrote:Is it possible to add the ability to specify random ranges for stats and skills in future versions of POL?
if it's a critical wish, you can add it by yourself... just read value on npc-init (in ai-script) and modify values as needed.

Shinigami

Posted: Sun Nov 19, 2006 9:00 pm
by MuadDib
It already exists. Read up on the vital hooks in distro and so forth.

Posted: Mon Nov 20, 2006 9:17 pm
by Yukiko
OK.

I did see in the poldocs CreateNPCFromTemplate that we can change specific attributes upon creation. That was a few days after making my post BTW.

I'll take a look in the vital hooks stuff.