OK, If i have an item that casts a spell on use and I am in a shifted form that does not allow vocal spells w/o natural spell then the the spell fails. I can KIND of understand this.
But, I wanted an item i could use even when shifted. So i created my MK II trap finder and instead of on use cast spell find traps i have it call this THIS script <snip>
object me=GetItemActivated();
int sp=SPELL_FIND_TRAPS;
DelayCommand(1.0f,ActionCastSpellAtObject(sp,me, METAMAGIC_NONE,TRUE,PROJECTILE_PATH_TYPE_DEFAULT,0,TRUE));
Note that the object casting the spell is the item, NOT the player. And it has both flags set for allowing spell even if not known, and instant cast. Yet it STILL generates the message that spell can be cast because of the form I am in
Any ideas? Am I going to have to make a script that actually summons something that can talk and have THAT cast the spell? Would be kinda cute, but a little more work than I want.
Thanks in advance,
Cozmo
EDIT:I was kinda being sarcastic above about summoning in a NPC to cast the spell... it DOES work.. Still, this is NOT what I want to have to use:
object pc=GetFirstPC();
location loc=GetLocation(pc);
object foobar;
foobar=CreateObject(OBJECT_TYPE_CREATURE,"NW_HALFLING001",loc,FALSE,"");
int sp=SPELL_FIND_TRAPS;
AssignCommand(foobar,ActionCastSpellAtObject(sp,foobar, METAMAGIC_NONE,TRUE,PROJECTILE_PATH_TYPE_DEFAULT,0,TRUE));
DestroyObject(foobar,5.0f);