I automatically receive a "Save Tutorial" gump as soon as I hit the F9 button or exit out and have been doing everything right, as far as I know.
The link to the other tutorial:
http://nwvault.ign.c...r.Detail&id=803
It isn't the official one as I was thinking.
Here is the script I'm running. When I enter the first area, I have the module set a LocalInt on my PC and this script checks for it. For something like, "Speak String" it works just fine but it just doesn't destroy the NPC speaker for some reason. Everything else in there works fine, though.
#include "nw_i0_tool"
void main()
{
object oPC = GetPCSpeaker();
AddJournalQuestEntry("GrimCompanions", 2, oPC, TRUE, FALSE, TRUE);
RewardPartyXP(1000, oPC, FALSE);
object oTarget;
oTarget=GetHenchman(oPC);
RemoveHenchman(oPC, oTarget);
if (GetLocalInt(oPC, "Vanish!")>= 3)
{
GuessWhatGoesHere
}
}
I've tried using these two:
oTarget = OBJECT_SELF;
DestroyObject(oTarget, 0.0);
ActionForceMoveToObject (GetObjectByTag ("APsychoticDruid"), TRUE, 0.2, 10.);
ActionDoCommand( DestroyObject( OBJECT_SELF ) );
SetCommandable( FALSE );
I'd like to point out that if I just talk to a placed NPC and have him do this in conversation, the latter of the two above works fine. This only seems to be a problem if the NPC I'm attempting to "vanish" is/was a henchman.
I'm also receiving a message "You cannot have more than 1 Henchman at a time" when I run the script to add the NPC speaker to my party. I don't see why I should receive this error since he's the only one I'm adding. It might very well be one of the "and then re-write it, the previously written script is what runs instead of the new one" issue or something just as odd. It's not preventing me from continuing, though, so it's not a big deal.
Modifié par Werthers Chewbackas, 17 novembre 2010 - 07:15 .