Do NPC use the scrolls in their inventory?

Post » Tue May 17, 2011 8:04 am

I tried giving an NPC a magic scroll to use but they never seem to use it.

Do the actors not use the magic scroll system in this game?

I can "equip" a potion on an actor and the actor will drink it, but equipping a scroll (target spell) seems to do nothing even while the actor is in combat.

Just plain adding the scroll to their inventory does not seem to do anything but "put one in their inventory".
User avatar
Naomi Lastname
 
Posts: 3390
Joined: Mon Sep 25, 2006 9:21 am

Post » Tue May 17, 2011 8:44 am

AFAIK, no. Scroll system is rather pointless on NPCs since they can essentially cast whatever they want at any time with the cast function.
User avatar
Tiffany Carter
 
Posts: 3454
Joined: Wed Jul 19, 2006 4:05 am

Post » Tue May 17, 2011 2:27 pm

Um, if you mean scripting the npc to cast then.... no, that is not true, casting a target spell will not work with NPC via scripting. Only touch spells and even that is flaky...

So, you know for a fact then that NPC do not use scrolls?

NPC that are scripted to cast at a target will often fire the spell down the negative y-axis rather than in the direction of the target...and also do other strange things.

From the wiki:
This function is unreliable when used to force an actor to cast a Target-range spell on a target which is not within Touch-range. Often the actor will attempt to walk into touch-range of the target and then cast the spell, but more frequently he will simply ignore the function.
User avatar
ijohnnny
 
Posts: 3412
Joined: Sun Oct 22, 2006 12:15 am

Post » Tue May 17, 2011 2:17 pm

If you want to make it a one time cast, give them an Ability type spell. They'll cast that.
User avatar
Laura Wilson
 
Posts: 3445
Joined: Thu Oct 05, 2006 3:57 pm

Post » Tue May 17, 2011 5:37 am

If you want to make it a one time cast, give them an Ability type spell. They'll cast that.

True indeed. I had the opposite problem of trying to prevent an NPC from using their racial ability spell and found the only solution to be silencing them, which prevents any spell being used..
User avatar
Paula Ramos
 
Posts: 3384
Joined: Sun Jul 16, 2006 5:43 am

Post » Tue May 17, 2011 10:51 am

Thanks, but unfortunately that will not work for target spells. You cannot set Abilities and Powers to Target only to Self.

Oh well in the end I forced a cast animation and used an activator, then changed the spell projectile source to the caster. to bad because it is a big chunk of code to get it done that way. Would have been much nicer just to write:

"MyNPC.cast MySpell target"

Such is life in the CS....


If you want to make it a one time cast, give them an Ability type spell. They'll cast that.

User avatar
Sharra Llenos
 
Posts: 3399
Joined: Wed Jan 17, 2007 1:09 pm

Post » Tue May 17, 2011 10:42 am

npcs DO use the scrolls in their inventory. Ever wonder how a necromancer or mage blasted you after you hit them with silence? They pack several scrolls. While most scroll use for magic casters will be less obvious, give a summon scroll to your companions. You'll clearly see {companion name}'s {summoned creature}. Npcs also use the vanilla game healing and magic potions (necromancers again), i.e., Strong Potion of...
User avatar
Roanne Bardsley
 
Posts: 3414
Joined: Wed Nov 08, 2006 9:57 am


Return to IV - Oblivion