Suiciding Monsters, HELP!!! [Archive] - ForumsHQ

Necrosaro420
Posts: 0
Joined: Mon Jan 22, 2001 6:00 am

Suiciding Monsters, HELP!!! [Archive] - ForumsHQ

Post by Necrosaro420 »

I have 6 NPC's I setup for quests. Each one lives for about 1 minute then they commit suicide. I do a sys stat, and it says the monster was last killed on blahblahblah. Heres 2 pics of how they are setup. I used other npc's in game to copy how they are setup. I also tryed them with index 0
Reckless

Re: Suiciding Monsters, HELP!!! [Archive] - ForumsHQ

Post by Reckless »

too many hp's? try setting them at 9999 hp's w/ the 9999 hp regen.
Necrosaro420
Posts: 0
Joined: Mon Jan 22, 2001 6:00 am

Re: Suiciding Monsters, HELP!!! [Archive] - ForumsHQ

Post by Necrosaro420 »

heres next. Its also setup in the place npc/monster room too.
Necrosaro420
Posts: 0
Joined: Mon Jan 22, 2001 6:00 am

Re: Suiciding Monsters, HELP!!! [Archive] - ForumsHQ

Post by Necrosaro420 »

That helped reckless, thanks!
iNViSiGOD
Posts: 0
Joined: Wed Jul 10, 2002 5:00 am

Re: Suiciding Monsters, HELP!!! [Archive] - ForumsHQ

Post by iNViSiGOD »

nice whiteout job :rolleyes:
Necrosaro420
Posts: 0
Joined: Mon Jan 22, 2001 6:00 am

Re: Suiciding Monsters, HELP!!! [Archive] - ForumsHQ

Post by Necrosaro420 »

I did it just for you!
Platinum
Posts: 0
Joined: Wed Oct 24, 2001 5:00 am

Re: Suiciding Monsters, HELP!!! [Archive] - ForumsHQ

Post by Platinum »

Also..if it's an NPC..who cares about HPs? Give em 1 hp and give him HitMagic 999.. ;)
Reckless

Re: Suiciding Monsters, HELP!!! [Archive] - ForumsHQ

Post by Reckless »

hp's over 10k get really screwy after a while, but if you want them to not die, plat has the right idea.
Locke Cole
Posts: 0
Joined: Fri Jun 21, 2002 5:00 am

Re: Suiciding Monsters, HELP!!! [Archive] - ForumsHQ

Post by Locke Cole »

Originally posted by Reckless

hp's over 10k get really screwy after a while, but if you want them to not die, plat has the right idea.

Well, he set them to 65535. HP are stored in the database as a 16-bit integer-- now I think everyone has always assumed that the HP were treated as an unsigned integer, meaning the valid range is 0 to 65535. But if the game internally treats them as signed 16-bit integers, then the real range is -32768 to 32767. A value of 65535 maps to -1 if it's treated as signed. That might explain the problem. So the moral would be, if I'm correct, not to set a monsters HP's beyond 32767. =)
Platinum
Posts: 0
Joined: Wed Oct 24, 2001 5:00 am

Re: Suiciding Monsters, HELP!!! [Archive] - ForumsHQ

Post by Platinum »

Originally posted by Locke Cole

Well, he set them to 65535. HP are stored in the database as a 16-bit integer-- now I think everyone has always assumed that the HP were treated as an unsigned integer, meaning the valid range is 0 to 65535. But if the game internally treats them as signed 16-bit integers, then the real range is -32768 to 32767. A value of 65535 maps to -1 if it's treated as signed. That might explain the problem. So the moral would be, if I'm correct, not to set a monsters HP's beyond 32767. =)



That's good to know ;)
Post Reply

Return to “Nightmare Redux”