Advertisement
Guest User

Generics.script

a guest
Jul 25th, 2014
393
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. funtion initGenerics()
  2. if(not TableSaveGenerics) then
  3. TableSaveGenerics = {};
  4. TableSaveGenerics["HatedPersons"] = {};
  5. TableSaveGenerics["FearedPersons"] = {};
  6. TableSaveGenerics["KnownPersons"] = {};
  7. end
  8. end
  9.  
  10.  
  11. function Start_Generic()
  12. player = Player.GetName();
  13.  
  14. if(LoveGet() < -1) then
  15. HatePlayer();
  16. end
  17.  
  18. if(LoveGet() < -500) then
  19. FearPlayer();
  20. end
  21.  
  22. if(TableSaveGenerics["HatedPersons"][player] != nil) or (TableSaveGenerics["FearedPersons"][player] != nil) then
  23. RefusingToTalk();
  24. else
  25. if(TableSaveGenerics["KnownPersons"][player] == nil) then
  26. FirstMet();
  27. else
  28. ScriptEnd();
  29. end
  30. end
  31. end
  32.  
  33. function HatePlayer()
  34. TableSaveGenerics["HatedPersons"][player] = true;
  35. end
  36.  
  37. function FearPlayer()
  38. TableSaveGenerics["FearedPersons"][player] = true;
  39. end
  40.  
  41.  
  42.  
  43. function LoveSet(num)
  44. DummyCallNumber(num);
  45. end
  46.  
  47. function LoveInc(num)
  48. DummyCallNumber(DummyCallNumber() + num);
  49. end
  50.  
  51. function LoveDec(num)
  52. DummyCallNumber(DummyCallNumber() - num);
  53. end
  54.  
  55. function LoveGet()
  56. return DummyCallNumber();
  57. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement