mod_addedflavour_A29_Functions.qsrc 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. # mod_addedflavour_A29_Functions
  2. if $ARGS[0] = 'config':
  3. $npc_fontcolor['A29'] = 'Maroon'
  4. !Opening up Emotionally
  5. modVar_AF_EventGates['A29-MotherConfidence-1'] = 10
  6. !Getting deeper relationship
  7. modVar_AF_EventGates['A29-MotherConfidence-2'] = 19
  8. !Seeing Player in Sexual Light
  9. modVar_AF_EventGates['A29-MotherConfidence-3'] = 28
  10. !Touching
  11. modVar_AF_EventGates['A29-MotherConfidence-4'] = 37
  12. !Kissing
  13. modVar_AF_EventGates['A29-MotherConfidence-5'] = 46
  14. !Sex
  15. modVar_AF_EventGates['A29-MotherConfidence-6'] = 55
  16. end
  17. if $ARGS[0] = 'TalkEvents':
  18. if menu_off = 1 and $loc = 'kuhrPar':
  19. if modVar_AF_EventOpen['A29-WorkOutEv'] = 0:
  20. act 'Suggest working out together' : gt 'mod_addedflavour_A29_Events' , 'A29-WorkoutEv-X1'
  21. elseif modVar_AF_EventOpen['A29-WorkOutEv'] = 1 and modVar_AF_EventLock['A29-WorkOutEv'] ! daystart and (hour >= 6 and hour < 19) and $clothingworntype = 'exercise' and $shoeworntype = 'trainers' and npc_rel['A29'] >= 50:
  22. act 'Ask to go for a run (0:30)' : gt 'mod_addedflavour_A29_Events' , 'A29-PavWorkoutEv-1'
  23. end
  24. if modVar_AF_EventOpen['A29-NightOutEv'] = 0 and week < 6 and modVar_AF_EventOpen['A29-WorkOutEv'] = 1 and npc_rel['A29'] >= 90:
  25. act 'Ask about Night Out' : gt 'mod_addedflavour_A29_Events' , 'A29-NightOutEv-X1'
  26. end
  27. if dostupindorf = 0 and grandaQW['block'] = 0 and npc_rel['A28'] >= 75 and npc_rel['A29'] >= 75 and (week > 1 and week < 5):
  28. act 'Ask about visiting Grandparents again' : gt 'mod_addedflavour_A29_Events' , 'A29-VisitGrandparentsTalk'
  29. end
  30. if modVar_AF_SFLA_AptState['SpareRoomOccupied'] = 1 and modVar_AF_SFLA_AptState['GuestID'] = 34 and modVar_AF_SFLA_KolkaVisit['A29'] = 0:
  31. act 'Ask if Kolka can visit you' : gt 'mod_addedflavour_A29_Events' , 'SFLA-AptGuest-KolkaApproval'
  32. end
  33. end
  34. end
  35. if $ARGS[0] = 'AddProgress' and $ARGS[1] = 'A29-MotherConfidence':
  36. if modVar_AF_EventProgress['A29-MotherConfidence'] < ARGS[3]:
  37. modVar_AF_EventProgress['A29-MotherConfidence'] += ARGS[2]
  38. if modVar_AF_EventProgress['A29-MotherConfidence'] > ARGS[3] : modVar_AF_EventProgress['A29-MotherConfidence'] = ARGS[3]
  39. end
  40. end
  41. if $ARGS[0] = 'A29-NightOutEv-Config':
  42. CLOSE ALL
  43. modVar_AF_EventOpen['A29-NightOutEv-DancePartner'] = 0
  44. modVar_AF_EventProgress['A29-NightOutEv'] = 1
  45. KILLVAR '$modArr_AF_A29_NightOutConvChoices'
  46. KILLVAR '$modArr_AF_A29_NightOutWalkChoices'
  47. KILLVAR '$modArr_AF_A29_NightOutTrainChoices'
  48. KILLVAR '$modArr_AF_A29_NightOutMealChoices'
  49. if modVar_AF_EventProgress['A29-MotherConfidence'] > modVar_AF_EventGates['A29-MotherConfidence-2'] : $modArr_AF_A29_NightOutConvChoices[] = 'A29-NightOutEv-C1'
  50. $modArr_AF_A29_NightOutConvChoices[] = 'A29-NightOutEv-C2'
  51. $modArr_AF_A29_NightOutWalkChoices[] = 'A29-NightOutEv-W1'
  52. if modVar_AF_EventProgress['A29-MotherConfidence'] > modVar_AF_EventGates['A29-MotherConfidence-2'] : $modArr_AF_A29_NightOutWalkChoices[] = 'A29-NightOutEv-W2'
  53. if modVar_AF_EventProgress['A29-MotherConfidence'] > modVar_AF_EventGates['A29-MotherConfidence-3'] : $modArr_AF_A29_NightOutWalkChoices[] = 'A29-NightOutEv-W3'
  54. if modVar_AF_EventProgress['A29-MotherConfidence'] > modVar_AF_EventGates['A29-MotherConfidence-4'] : $modArr_AF_A29_NightOutWalkChoices[] = 'A29-NightOutEv-W4'
  55. if modVar_AF_EventProgress['A29-MotherConfidence'] > modVar_AF_EventGates['A29-MotherConfidence-5'] : $modArr_AF_A29_NightOutWalkChoices[] = 'A29-NightOutEv-W5'
  56. $modArr_AF_A29_NightOutWalkChoices[] = 'A29-NightOutEv-W6'
  57. $modArr_AF_A29_NightOutWalkChoices[] = 'A29-NightOutEv-W7'
  58. if modVar_AF_EventProgress['A29-MotherConfidence'] > modVar_AF_EventGates['A29-MotherConfidence-1'] : $modArr_AF_A29_NightOutWalkChoices[] = 'A29-NightOutEv-W8'
  59. if modVar_AF_EventProgress['A29-MotherConfidence'] > modVar_AF_EventGates['A29-MotherConfidence-2'] : $modArr_AF_A29_NightOutWalkChoices[] = 'A29-NightOutEv-W9'
  60. if modVar_AF_EventProgress['A29-MotherConfidence'] > modVar_AF_EventGates['A29-MotherConfidence-2'] : $modArr_AF_A29_NightOutWalkChoices[] = 'A29-NightOutEv-W10'
  61. if modVar_AF_EventProgress['A29-MotherConfidence'] > modVar_AF_EventGates['A29-MotherConfidence-4'] : $modArr_AF_A29_NightOutWalkChoices[] = 'A29-NightOutEv-W11'
  62. $modArr_AF_A29_NightOutTrainChoices[] = 'A29-NightOutEv-T1'
  63. if modVar_AF_EventProgress['A29-MotherConfidence'] > modVar_AF_EventGates['A29-MotherConfidence-2'] : $modArr_AF_A29_NightOutTrainChoices[] = 'A29-NightOutEv-T2'
  64. if modVar_AF_EventProgress['A29-MotherConfidence'] > modVar_AF_EventGates['A29-MotherConfidence-3'] : $modArr_AF_A29_NightOutTrainChoices[] = 'A29-NightOutEv-T3'
  65. $modArr_AF_A29_NightOutTrainChoices[] = 'A29-NightOutEv-T4'
  66. $modArr_AF_A29_NightOutTrainChoices[] = 'A29-NightOutEv-T5'
  67. if money > 1000 : $modArr_AF_A29_NightOutMealChoices[] = 'A29-NightOutEv-R1'
  68. $modArr_AF_A29_NightOutMealChoices[] = 'A29-NightOutEv-R2'
  69. $modArr_AF_A29_NightOutMealChoices[] = 'A29-NightOutEv-R3'
  70. if money > 10000 : $modArr_AF_A29_NightOutMealChoices[] = 'A29-NightOutEv-R4'
  71. modVar_AF_Rand = rand(1,ARRSIZE('$modArr_AF_A29_NightOutConvChoices')) - 1
  72. gt 'mod_addedflavour_A29_Events' , $modArr_AF_A29_NightOutConvChoices[modVar_AF_Rand]
  73. end
  74. if $ARGS[0] = 'A29-AptStayEv-Config':
  75. if $ARGS[1] = 'Stay':
  76. gs 'mod_addedflavour_charsche' , 'acttools' , 'actchars' , 'CityAptBedroom - Resting' , 'Add' , 29
  77. gs 'mod_addedflavour_charsche' , 'acttools' , 'actchars' , 'CityAptBalcony - Resting' , 'Add' , 29
  78. gs 'mod_addedflavour_charsche' , 'acttools' , 'actchars' , 'CityAptKitchen - Cleaning' , 'Add' , 29
  79. gs 'mod_addedflavour_charsche' , 'acttools' , 'actchars' , 'CityAptSittingRoom - Resting' , 'Add' , 29
  80. gs 'mod_addedflavour_charsche' , 'acttools' , 'actchars' , 'CityAptBathroom - Bathing' , 'Add' , 29
  81. modVar_AF_EventLock['A29-AptStayEv-Interacted'] = 0
  82. modVar_AF_EventLock['A29-AptStayEv-Clothed'] = 0
  83. modVar_AF_EventLock['A29-AptStayEv-Bathed'] = 0
  84. elseif $ARGS[1] = 'Leave':
  85. gs 'mod_addedflavour_charsche' , 'acttools' , 'actchars' , 'CityAptBedroom - Resting' , 'Remove' , 29
  86. gs 'mod_addedflavour_charsche' , 'acttools' , 'actchars' , 'CityAptBalcony - Resting' , 'Remove' , 29
  87. gs 'mod_addedflavour_charsche' , 'acttools' , 'actchars' , 'CityAptKitchen - Cleaning' , 'Remove' , 29
  88. gs 'mod_addedflavour_charsche' , 'acttools' , 'actchars' , 'CityAptSittingRoom - Resting' , 'Remove' , 29
  89. gs 'mod_addedflavour_charsche' , 'acttools' , 'actchars' , 'CityAptBathroom - Bathing' , 'Remove' , 29
  90. gs 'mod_addedflavour_charsche' , 'acttools' , 'forceact' , 29 , 'Void' , 'Idle' , 5
  91. modVar_AF_Temp = 6 - difficulty
  92. modVar_AF_EventOpen['A29-AptStayEv'] = 0
  93. npc_rel['A29'] += rand(8,12)
  94. gs 'mod_addedflavour_A29_Functions' , 'AddProgress' , 'A29-MotherConfidence' , modVar_AF_Temp , modVar_AF_EventGates['A29-MotherConfidence-2']
  95. end
  96. end
  97. --- mod_addedflavour_A29_Functions ---------------------------------