mod_addedflavour_A130_Functions.qsrc 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. # mod_addedflavour_A130_Functions
  2. if $ARGS[0] = 'config':
  3. $npc_fontcolor['A130'] = 'Olive'
  4. modVar_AF_EventProgress['A130-CoercionRating'] = 0
  5. modVar_AF_EventProgress['A130-SubmissiveRating'] = 0
  6. modVar_AF_EventProgress['A130-DominatedRating'] = 0
  7. modVar_AF_EventTriggered['A130-DomSexEv'] = 0
  8. modVar_AF_EventTriggered['A130-SubSexEv'] = 0
  9. modVar_AF_EventTriggered['A130-CoeSexEv'] = 0
  10. $modVar_AF_EventOption['A130-Status'] = 'None'
  11. modVar_AF_EventLock['A130-RegistrationEv'] = daystart
  12. modVar_AF_EventOpen['A130-SubmissiveSexEv'] = 0
  13. modVar_AF_BlockEvents['A130'] = 0
  14. modVar_AF_EventGates['A130-TeacherSexEv-1'] = 5 + (5 * difficulty)
  15. modVar_AF_EventGates['A130-TeacherSexEv-2'] = modVar_AF_EventGates['A130-TeacherSexEv-1'] * 3
  16. end
  17. if $ARGS[0] = 'changestatus':
  18. if $modVar_AF_EventOption['A130-Status'] = 'None':
  19. if $ARGS[1] = 'Add':
  20. if $ARGS[2] = 'Coercion':
  21. modVar_AF_EventProgress['A130-CoercionRating'] += ARGS[3]
  22. else
  23. modVar_AF_EventProgress['A130-CoercionRating'] -= (ARGS[3] / 2)
  24. end
  25. if $ARGS[2] = 'Submissive':
  26. modVar_AF_EventProgress['A130-SubmissiveRating'] += ARGS[3]
  27. else
  28. modVar_AF_EventProgress['A130-SubmissiveRating'] -= (ARGS[3] / 2)
  29. end
  30. if $ARGS[2] = 'Dominated':
  31. modVar_AF_EventProgress['A130-DominatedRating'] += ARGS[3]
  32. else
  33. modVar_AF_EventProgress['A130-DominatedRating'] -= (ARGS[3] / 2)
  34. end
  35. elseif $ARGS[1] = 'Remove':
  36. if $ARGS[2] = 'Coercion' : modVar_AF_EventProgress['A130-CoercionRating'] -= ARGS[3]
  37. if $ARGS[2] = 'Submissive' : modVar_AF_EventProgress['A130-SubmissiveRating'] -= ARGS[3]
  38. if $ARGS[2] = 'Dominated' : modVar_AF_EventProgress['A130-DominatedRating'] -= ARGS[3]
  39. end
  40. if modVar_AF_EventProgress['A130-CoercionRating'] < 0 : modVar_AF_EventProgress['A130-CoercionRating'] = 0
  41. if modVar_AF_EventProgress['A130-CoercionRating'] > modVar_AF_EventGates['A130-TeacherSexEv-2'] : modVar_AF_EventProgress['A130-CoercionRating'] = modVar_AF_EventGates['A130-TeacherSexEv-2']
  42. if modVar_AF_EventProgress['A130-SubmissiveRating'] < 0 : modVar_AF_EventProgress['A130-SubmissiveRating'] = 0
  43. if modVar_AF_EventProgress['A130-SubmissiveRating'] > modVar_AF_EventGates['A130-TeacherSexEv-2'] : modVar_AF_EventProgress['A130-SubmissiveRating'] = modVar_AF_EventGates['A130-TeacherSexEv-2']
  44. if modVar_AF_EventProgress['A130-DominatedRating'] < 0 : modVar_AF_EventProgress['A130-DominatedRating'] = 0
  45. if modVar_AF_EventProgress['A130-DominatedRating'] > modVar_AF_EventGates['A130-TeacherSexEv-2'] : modVar_AF_EventProgress['A130-DominatedRating'] = modVar_AF_EventGates['A130-TeacherSexEv-2']
  46. if modVar_AF_EventProgress['A130-CoercionRating'] = modVar_AF_EventGates['A130-TeacherSexEv-2'] : $modVar_AF_EventOption['A130-Status'] = 'Coercion'
  47. if modVar_AF_EventProgress['A130-SubmissiveRating'] = modVar_AF_EventGates['A130-TeacherSexEv-2'] : $modVar_AF_EventOption['A130-Status'] = 'Submissive'
  48. if modVar_AF_EventProgress['A130-DominatedRating'] = modVar_AF_EventGates['A130-TeacherSexEv-2'] : $modVar_AF_EventOption['A130-Status'] = 'Dominated'
  49. end
  50. end
  51. if $ARGS[0] = 'LessonEvent':
  52. *nl
  53. 'During a lull in the lesson he takes the opportunity to remind everyone that he is running an <b>After-School Literature Club</b> on Mondays, Wednesdays and Fridays to spend some free time reading and talking about books. He does his best to make it sound appealing without being too insistent, obviously wanting to have students attend.'
  54. !---
  55. modVar_AF_Rand = rand(1,100)
  56. if modVar_AF_Rand <= 20 and ($modVar_AF_EventOption['A130-Status'] = 'Dominated' or $modVar_AF_EventOption['A130-Status'] = 'None'):
  57. *nl
  58. '<b>Your <a href="exec: gt ''mod_addedflavour_A130_Events'' , ''A130-LessonEv-1'' ">Teacher</a> also trying to organise a small group task while the rest of the class works on their Textbooks.</b> He is quite anxious to get this little optional thing going and is looking around for volunteers. You are not quite sure what it is specifically but you gather it will probably just be a small focused study of a small piece of Russian Literature.'
  59. elseif modVar_AF_Rand > 20 and modVar_AF_Rand <= 40 and ($modVar_AF_EventOption['A130-Status'] = 'Coercion' or $modVar_AF_EventOption['A130-Status'] = 'None'):
  60. *nl
  61. '<b>Your <a href="exec: gt ''mod_addedflavour_A130_Events'' , ''A130-LessonEv-2'' ">Teacher</a> also trying to organise a small group task while the rest of the class works on their Textbooks.</b> He is quite eager to get this little optional thing going and is looking around for volunteers. You are not quite sure what it is specifically but you gather it will probably just be a small focused study of a small piece of Russian Literature.'
  62. elseif modVar_AF_Rand > 40 and modVar_AF_Rand <= 60 and ($modVar_AF_EventOption['A130-Status'] = 'Submissive' or $modVar_AF_EventOption['A130-Status'] = 'None'):
  63. *nl
  64. '<b>Your <a href="exec: gt ''mod_addedflavour_A130_Events'' , ''A130-LessonEv-3'' ">Teacher</a> also trying to organise a small group task while the rest of the class works on their Textbooks.</b> He is quite enthusiastic to get this little optional thing going and is looking around for volunteers. You are not quite sure what it is specifically but you gather it will probably just be a small focused study of a small piece of Russian Literature.'
  65. end
  66. end
  67. if $ARGS[0] = 'RegistrationEvent':
  68. if CloStyle2 = 4 or Enable_sforma = 1:
  69. if minut <= 20 and modVar_AF_EventProgress['A130-CoercionRating'] >= modVar_AF_EventGates['A130-TeacherSexEv-1'] and ($modVar_AF_EventOption['A130-Status'] = 'Coercion' or $modVar_AF_EventOption['A130-Status'] = 'None'):
  70. act '<b>Go to Homeroom</b>' : gt 'mod_addedflavour_A130_Events' , 'A130-RegistrationEv-5'
  71. else
  72. act '<b>Go to Homeroom</b>' : gt 'mod_addedflavour_A130_Events' , 'A130-RegistrationEv-1'
  73. end
  74. end
  75. end
  76. if $ARGS[0] = 'HallEvent':
  77. if modVar_AF_EventLock['A130-TriggerEv'] ! daystart:
  78. modVar_AF_EventLock['A130-TriggerEv'] = daystart
  79. modVar_AF_Rand = rand(1,3)
  80. if (modVar_AF_EventLock['A130-RegistrationEv'] < (daystart - 2)) and modVar_AF_Rand = 1:
  81. if modVar_AF_EventProgress['A130-DominatedRating'] >= modVar_AF_EventGates['A130-TeacherSexEv-1'] and ($modVar_AF_EventOption['A130-Status'] = 'Dominated' or $modVar_AF_EventOption['A130-Status'] = 'None'):
  82. gt 'mod_addedflavour_A130_Events' , 'A130-HallPunishEv-2'
  83. elseif $modVar_AF_EventOption['A130-Status'] = 'None':
  84. gt 'mod_addedflavour_A130_Events' , 'A130-HallPunishEv-1'
  85. end
  86. end
  87. if $modVar_AF_EventOption['A130-Status'] = 'Dominated' and modVar_AF_Rand = 2 and (week = 1 or week = 3 or week = 5) and modVar_AF_EventLock['A130-DominatedSexEv'] < daystart:
  88. gt 'mod_addedflavour_A130_Events' , 'A130-LessonStayBackEv-1'
  89. end
  90. if $modVar_AF_EventOption['A130-Status'] = 'Coercion' and modVar_AF_Rand = 3 and modVar_AF_EventLock['A130-CoercionSexEv'] < daystart:
  91. gt 'mod_addedflavour_A130_Events' , 'A130-HallFlirtEvent-1'
  92. end
  93. end
  94. end
  95. if $ARGS[0] = 'ClubEvent':
  96. if modVar_AF_EventLock['A130-ClubEv'] ! daystart and (week = 1 or week = 3 or week = 5):
  97. act '<b>Go to Literature Club</b>' : gt 'mod_addedflavour_A130_Events' , 'A130-ClubEv-1'
  98. end
  99. end
  100. --- mod_addedflavour_A130_Functions ---------------------------------