I have an item that has a tag of "jw_mush_golden" and a script with the same name (see below). The item has a property of Cast Spell: Unique Item Self Unlimited uses. Nothing happens however when used.
void main()
{
object oPC;
if (!GetIsPC(GetItemActivatedTarget())
){
SendMessageToPC(GetItemActivator(), "Improper use of item!");
return;}
oPC = GetItemActivator();
//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 oTarget;
oTarget = oPC;
AssignCommand(oTarget, ActionStartConversation(oPC, "jw_mush_travel"));
}
I should also note that this module takes place across several modules via a campaign, so the above script and the conversation file are campaign resources.
Any help would be appreciated.





Retour en haut







