Aller au contenu

Photo

NPC attack script - compile error


  • Veuillez vous connecter pour répondre
4 réponses à ce sujet

#1
Green_Dragon123

Green_Dragon123
  • Members
  • 11 messages
I have this one:

void main()
{
    // Change NPC faction to -100 Hatred
    AdjustReputation(GetPCSpeaker(), OBJECT_SELF, -100);
    DetermineCombatRound(GetPCSpeaker());
}

The NPC will the attack the PC when a certain line in the conversation is chosen. However when compiling I get this error:

2010-09-03 14:57:35: Error. 'assassin2' did not compile.
assassin2.nss(5): ERROR: UNDEFINED IDENTIFIER (DetermineCombatRound)

Am I missing something here?

EDIT: Found another one that worked better here: nwn.bioware.com/forums/viewcodepost.html

Modifié par Green_Dragon123, 03 septembre 2010 - 01:16 .


#2
Fester Pot

Fester Pot
  • Members
  • 1 393 messages
Your script does not compile because it requires the following before the void main()

#include "NW_I0_GENERIC"


FP!

Modifié par Fester Pot, 03 septembre 2010 - 01:18 .


#3
TSMDude

TSMDude
  • Members
  • 865 messages
On a totally unrelated note, FP your beard freaks me out....

#4
Green_Dragon123

Green_Dragon123
  • Members
  • 11 messages

Your script does not compile because it requires the following before the void main()


#include "NW_I0_GENERIC"


FP!


Yes, I figured.

Modifié par Green_Dragon123, 03 septembre 2010 - 02:35 .


#5
ffbj

ffbj
  • Members
  • 593 messages
And how can this be? Because he is the Kwitzach Hadderach!