I too, do not entirely understand the situation. However, you mentioned
triggers and convos. From what I can make out of your situation you will
need more than just one script to pull it off.
Dumple wrote...
first one is when i walk on triiger the convo starts with npc in house...
This is two scripts: One for the trigger and one in the conversation. These were written OUTSIDE of the toolset, but should compile.
Trigger On Enter:
void main()
{
object oPC = GetEnteringObject();
if(!GetIsPC(oPC)) {return;}
//The NPC starts the convo....
object oNPC = GetNearestObjectByTag("NPC_TAG_HERE");
if(oNPC != OBJECT_INVALID)
{
AssignCommand(oNPC, ClearAllActions());
AssignCommand(oNPC, ActionStartConversation(oNPC, "CONVO_FILE", FALSE, FALSE ));
}
}
Dumple wrote...
.... sends me outside.
This one goes on the convo node under "Actions Taken" of when the PC gets sent outside....
void main()
{
object oPC = GetPCSpeaker();
if(!GetIsPC(oPC)) {return;}
//We are going to "force" the PC outside by
//sending them to a waypoint
object oWPOutside = GetWaypointByTag("WP_OUTSIDE");
if(oWPOutside != OBJECT_INVALID)
{
AssignCommand(oPC, ClearAllActions());
AssignCommand(oPC, JumpToObject(oWPOutside));
}
}
That should get you started. Again, I can't make out must else of your request or its just a simple modification of the code above. Just remember most actions that need to be done via a conversation are usually a separate script.
Hope this helps!
Modifié par Dark Defiance, 17 octobre 2010 - 02:00 .