The ability to specify random stats/skills for NPCs

Archive of the older Feature Request Forum Posts
Locked
Yukiko
Distro Developer
Posts: 2826
Joined: Thu Feb 02, 2006 1:41 pm

The ability to specify random stats/skills for NPCs

Post 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.
Shinigami
Former Developer
Posts: 308
Joined: Mon Jan 30, 2006 9:28 am

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

Post 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
MuadDib
Former Developer
Posts: 1091
Joined: Sun Feb 12, 2006 9:50 pm

Post by MuadDib »

It already exists. Read up on the vital hooks in distro and so forth.
Yukiko
Distro Developer
Posts: 2826
Joined: Thu Feb 02, 2006 1:41 pm

Post 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.
Locked