Okay, this is a problem thats probably caused due to me being stupid. I tried to follow 420's directions on the new aoe and the scripts compile and yadyada, but how do I give a creature the ability to use the aoe?
void main()
{
object oPC;
oPC = GetItemActivator();
object oCoruscatus = GetLocalObject(oPC, "Coruscatus");
location locCorsucatus = GetLocation(oCoruscatus);
effect eVFX = EffectVisualEffect(VFX_FNF_STRIKE_HOLY);
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eVFX, locCorsucatus);
DestroyObject(oCoruscatus);
object oTarget;
object oSpawn;
location lTarget;
oPC = GetItemActivator();
oTarget = GetItemActivatedTarget();
SetLocalObject(oPC, "dmtooltarget", oTarget);
lTarget = GetLocation(oPC);
string sSpawn = "thecoruscatus";
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "thecoruscatus", lTarget, FALSE, sSpawn);
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eVFX, locCorsucatus);
//The PC will technically start a conversation with himself
//You should add some odd little sound to the first line in the
//conversation file, or the PC will give his normal voicegreeting.
object oSpawn2 = GetObjectByTag("thecoruscatus");
SetLocalObject(oPC, "Coruscatus", oSpawn2);
object oItem = GetItemActivated();
if(oTarget == oPC)
{
DelayCommand(1.5, AssignCommand(GetObjectByTag("thecoruscatus"), ActionStartConversation(oPC, "dmtoolself")));
}
else if(GetIsPC(oTarget))
{
DelayCommand(1.5, AssignCommand(GetObjectByTag("thecoruscatus"), ActionStartConversation(oPC, "dmtoolplayer")));
}
else
{
DelayCommand(1.5, AssignCommand(GetObjectByTag("thecoruscatus"), ActionStartConversation(oPC, "dmtoolobject")));
}
}
oPC = GetItemActivator();
object oCoruscatus = GetLocalObject(oPC, "Coruscatus");
Well...for one it would help if you stated a more detailed problem than "script isnt calling the conversation up properly" . What exactly is happening or not happening.what is happening is i use it. it summons the coruscatus, and then after the delay time is up, the coruscatus turns as if to go into conversation, but the conversation doesn't pop up.[snapback]20719[/snapback]
Second at first glance I'm confused withits a unique power script so yes it is allowed to be there
GetItemActivator() can only be used in the OnItemActivated module event.
What script does all this code belong to?[snapback]20719[/snapback]
Also I don't see where you SetLocalObject(oPC, "Coruscatus")...would help to know whats going on.this is located in this part of the script[snapback]20719[/snapback]
//The PC will technically start a conversation with himself
//You should add some odd little sound to the first line in the
//conversation file, or the PC will give his normal voicegreeting.
object oSpawn2 = GetObjectByTag("thecoruscatus");
SetLocalObject(oPC, "Coruscatus", oSpawn2);