Author Topic: /lib/sentient.c augmentation  (Read 1680 times)

Offline z993126

  • BFF
  • ***
  • Posts: 128
    • View Profile
/lib/sentient.c augmentation
« on: March 05, 2012, 12:50:43 PM »
In /lib/sentient.c, to enable NPCs to respond to emotes towards them using any available action, with checking so that if the action is the NPC acting on that NPC it doesn't feedback-loop.

added global variable private int i

in eventReceiveEmote() changed eventSpeak(who,TALK_LOCAL,val); to
Code: [Select]
if( who != this_object() ){ i = 0; }
if( who == this_object() && i > 0 ){ return 1; }  // prevent acting towards self
i++;
eventForce( val );