I want to set a LocalInt in the same way as in conversations, but when a NPC dies instead. Is it possible? I haven´t been able to get it to work this far. Here´s what I´m using in case I´m doing something wrong.
Placed on the NPC´s OnDeath-event:
void main()
{
SetLocalInt(GetPCSpeaker(), "KILLEDHAROLD", 1);
}
And in the "Text appears when.."-script in a conversation with another NPC:
int StartingConditional()
{
int nKilledHarold = GetLocalInt(GetPCSpeaker(), "KILLEDHAROLD") == 1;
return nKilledHarold;
}
Thanks
SetLocalInt in OnDeath-script
Débuté par
Green_Dragon123
, mars 11 2011 02:38





Retour en haut






