Advertisement
henesua

aa_conv_branch1

Jan 2nd, 2012
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.71 KB | None | 0 0
  1. //::///////////////////////////////////////////////
  2. //:: aa_conv_branch1
  3. //:://////////////////////////////////////////////
  4. /*
  5.     intended for use in conversations
  6.     advances the conversation node, sets branch chosen at 1
  7. */
  8. //:://////////////////////////////////////////////
  9. //:: Created By: The Magus (2012 jan 1)
  10. //:: Modified:
  11. //:://////////////////////////////////////////////
  12.  
  13. void main()
  14. {
  15.     object oPC          = GetPCSpeaker();
  16.     object oNPC         = GetLastSpeaker();
  17.     string sNodeName    = "CONVNODE"+GetTag(oNPC);
  18.     int nNode           = GetLocalInt(oPC, sNodeName);
  19.  
  20.     if(nNode==0)
  21.         nNode=1;
  22.  
  23.     SetLocalInt(oPC,"nLastBranch",1);
  24.     SetLocalInt(oPC,sNodeName, nNode+1);
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement