Author Topic: So why is it...  (Read 967 times)

Offline PetrusOctavianus

  • Sr. Member
  • ****
  • Posts: 394
So why is it...
« on: April 24, 2013, 02:18:18 AM »
...that an NPC Thief/Mage can cast spells while wearing armour if computer controled, but the same NPC can not cast spells if player controled?
And while I'm at it, is there any way to edit NPCs so that they are always player controled?

Offline ProphetSword

  • Mod Designer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2903
  • FRUA Lives!
    • Lands of Adventure
Re: So why is it...
« Reply #1 on: April 24, 2013, 10:32:01 AM »
I can't explain why an NPC thief/mage can't cast the spells in armor, since I believe a PC of the same class would be able to cast spells.  So, it's a mystery.

I'm pretty sure that the only way a player can control NPCs in their party is if they have a Paladin.  That grants them some kind of "leadership" skill, apparently.  As far as editing them so that they can be controlled in other ways, I have no idea, but that might be a clue toward making it happen.
LANDS OF ADVENTURE: An Old-School Style CRPG

More Information Here: http://landsadventure.blogspot.com/

Offline fly_by_night66

  • Full Member
  • ***
  • Posts: 124
Re: So why is it...
« Reply #2 on: April 24, 2013, 07:36:31 PM »
That is the very reason why I usually will have a Paladin in the group.  I also believe though that the Paladin has to be within a certian level of the NPC to control him/her.

FBN66 - Jeff

Offline nologgie

  • Non-resident Non-expert
  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 3465
Re: So why is it...
« Reply #3 on: April 25, 2013, 06:02:25 PM »
NPCs under player control follow PC rules, and NPCs under AI control follow monster rules. It normally shows up for type 2 attacks (monster only), but armor restrictions will show up during combat.  The AI cheats a bit.

Player control of NPCs is hard coded and requires a specified class in the party.

To set player control chance to 100%, add this line to the diff.tbl:
25625 1 0

To change the leadership class, add this line:
255c7 3 n (n = class as listed below)

0 Cleric
1 Knight (not used)
2 Fighter
3 Paladin
4 Ranger
5 Magic User
6 Thief

(Ref: CKITForm.txt, NPC Leadership)
Some days it just doesn't pay to gnaw through the straps.

Offline PetrusOctavianus

  • Sr. Member
  • ****
  • Posts: 394
Re: So why is it...
« Reply #4 on: April 25, 2013, 06:42:18 PM »
Thanks for the info, nologgie.

Offline GoldBoxFan

  • Hero Member
  • *****
  • Posts: 1708
  • "We need more cowbell."
Re: So why is it...
« Reply #5 on: April 26, 2013, 09:06:59 AM »
Are you sure the computer didn't unready the armor first? AI does things like that.

Offline PetrusOctavianus

  • Sr. Member
  • ****
  • Posts: 394
Re: So why is it...
« Reply #6 on: April 26, 2013, 12:03:41 PM »
Are you sure the computer didn't unready the armor first? AI does things like that.

You mean I've been outsmarted by one of the most moronic AIs in computer gamings history?  :o

Offline nologgie

  • Non-resident Non-expert
  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 3465
Re: So why is it...
« Reply #7 on: April 26, 2013, 01:49:12 PM »
Are you sure the computer didn't unready the armor first? AI does things like that.

It doesn't.  I checked.  ;)
Some days it just doesn't pay to gnaw through the straps.