World of Gothic Archiv > NWN-Hilfe
Begleiter greift nicht an!!!
Seite 1 von 1  1 
14.08.2002, 15:41 #1
meinel
Beiträge: 7
Begleiter greift nicht an!!!
ich hab folgendes prob1!!!

ich habe einen begleiter gemacht das funzt auch alles !! er folgt mir zumindestens!!!

doch wenn es nun zum kampf kommt steht er da und tut einfach garnichts!!!

das script is aus dem forgotten book!

wer weiß weiter
14.08.2002, 16:04 #2
GuradonHellsing
Beiträge: 232

code\:

//::///////////////////////////////////////////////
//:: Associate: On Percieve
//:: NW_CH_AC2
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
//:://////////////////////////////////////////////
//:: Created By: Preston Watamaniuk
//:: Created On: Nov 19, 2001
//:://////////////////////////////////////////////

#include "NW_I0_GENERIC"

void main()
{
//This is the equivalent of a force conversation bubble, should only be used if you want an NPC
//to say something while he is already engaged in combat.
if(GetSpawnInCondition(NW_FLAG_SPECIAL_COMBAT_CONVERSATION))
{
ActionStartConversation(OBJECT_SELF);
}
if(!GetAssociateState(NW_ASC_MODE_STAND_GROUND))
{
//Do not bother checking the last target seen if already fighting
if(!GetIsObjectValid(GetAttemptedAttackTarget()) &&
!GetIsObjectValid(GetAttackTarget()) &&
!GetIsObjectValid(GetAttemptedSpellTarget()))
{
//Check if the last percieved creature was actually seen
if(GetLastPerceptionSeen())
{
if(GetIsEnemy(GetLastPerceived()))
{
SetFacingPoint(GetPosition(GetLastPerceived()));
ActionAttack(GetLastPerceived();
DetermineCombatRound();
}
//Linked up to the special conversation check to initiate a special one-off conversation
//to get the PCs attention
else if(GetSpawnInCondition(NW_FLAG_SPECIAL_CONVERSATION) && GetIsPC(GetLastPerceived()))
{
ActionStartConversation(OBJECT_SELF);
}
}
}
}
if(GetSpawnInCondition(NW_FLAG_PERCIEVE_EVENT))
{
SignalEvent(OBJECT_SELF, EventUserDefined(1002));
}
}




Meiner Ansicht nach müßte es wenn dan im OnPerception script liegen????
Wer mal 1. frage Welche faction hat der Sölli

2. evtl so die zeile ändern
///////////////
if(GetIsEnemy(GetLastPerceived()))
{
SetFacingPoint(GetPosition(GetLastPerceived()));
ActionAttack(GetLastPerceived());//HIER ?????
DetermineCombatRound();
}
///////////////////////////


___________________________

visite NWN Scripts
-------------------------------
http://nwvault.ign.com/
http://www.nwndev.de.vu/
http://nwn.lyoness.com/
http://www.reapers.org/nwn/reference/
-------------------------------
Forgotten Book
http://www.ribenschi.de/
--------------------------------
Mein Mod wo ich mitarbeite
http://talos.redclaw-network.de/
--------------------------------[/font]
14.08.2002, 16:28 #3
meinel
Beiträge: 7
danke
yo danke dein script funzt
Seite 1 von 1  1