123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- # mod_addedflavour_A29_Functions
- if $ARGS[0] = 'config':
- $npc_fontcolor['A29'] = 'Maroon'
- !Opening up Emotionally
- modVar_AF_EventGates['A29-MotherConfidence-1'] = 10
- !Getting deeper relationship
- modVar_AF_EventGates['A29-MotherConfidence-2'] = 19
- !Seeing Player in Sexual Light
- modVar_AF_EventGates['A29-MotherConfidence-3'] = 28
- !Touching
- modVar_AF_EventGates['A29-MotherConfidence-4'] = 37
- !Kissing
- modVar_AF_EventGates['A29-MotherConfidence-5'] = 46
- !Sex
- modVar_AF_EventGates['A29-MotherConfidence-6'] = 55
- end
-
- if $ARGS[0] = 'TalkEvents':
- if menu_off = 1 and $loc = 'kuhrPar':
- if modVar_AF_EventOpen['A29-WorkOutEv'] = 0:
- act 'Suggest working out together' : gt 'mod_addedflavour_A29_Events' , 'A29-WorkoutEv-X1'
- 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:
- act 'Ask to go for a run (0:30)' : gt 'mod_addedflavour_A29_Events' , 'A29-PavWorkoutEv-1'
- end
- if modVar_AF_EventOpen['A29-NightOutEv'] = 0 and week < 6 and modVar_AF_EventOpen['A29-WorkOutEv'] = 1 and npc_rel['A29'] >= 90:
- act 'Ask about Night Out' : gt 'mod_addedflavour_A29_Events' , 'A29-NightOutEv-X1'
- end
- if dostupindorf = 0 and grandaQW['block'] = 0 and npc_rel['A28'] >= 75 and npc_rel['A29'] >= 75 and (week > 1 and week < 5):
- act 'Ask about visiting Grandparents again' : gt 'mod_addedflavour_A29_Events' , 'A29-VisitGrandparentsTalk'
- end
- if modVar_AF_SFLA_AptState['SpareRoomOccupied'] = 1 and modVar_AF_SFLA_AptState['GuestID'] = 34 and modVar_AF_SFLA_KolkaVisit['A29'] = 0:
- act 'Ask if Kolka can visit you' : gt 'mod_addedflavour_A29_Events' , 'SFLA-AptGuest-KolkaApproval'
- end
- end
- end
-
- if $ARGS[0] = 'AddProgress' and $ARGS[1] = 'A29-MotherConfidence':
- if modVar_AF_EventProgress['A29-MotherConfidence'] < ARGS[3]:
- modVar_AF_EventProgress['A29-MotherConfidence'] += ARGS[2]
- if modVar_AF_EventProgress['A29-MotherConfidence'] > ARGS[3] : modVar_AF_EventProgress['A29-MotherConfidence'] = ARGS[3]
- end
- end
-
- if $ARGS[0] = 'A29-NightOutEv-Config':
- CLOSE ALL
- modVar_AF_EventOpen['A29-NightOutEv-DancePartner'] = 0
- modVar_AF_EventProgress['A29-NightOutEv'] = 1
- KILLVAR '$modArr_AF_A29_NightOutConvChoices'
- KILLVAR '$modArr_AF_A29_NightOutWalkChoices'
- KILLVAR '$modArr_AF_A29_NightOutTrainChoices'
- KILLVAR '$modArr_AF_A29_NightOutMealChoices'
- if modVar_AF_EventProgress['A29-MotherConfidence'] > modVar_AF_EventGates['A29-MotherConfidence-2'] : $modArr_AF_A29_NightOutConvChoices[] = 'A29-NightOutEv-C1'
- $modArr_AF_A29_NightOutConvChoices[] = 'A29-NightOutEv-C2'
- $modArr_AF_A29_NightOutWalkChoices[] = 'A29-NightOutEv-W1'
- if modVar_AF_EventProgress['A29-MotherConfidence'] > modVar_AF_EventGates['A29-MotherConfidence-2'] : $modArr_AF_A29_NightOutWalkChoices[] = 'A29-NightOutEv-W2'
- if modVar_AF_EventProgress['A29-MotherConfidence'] > modVar_AF_EventGates['A29-MotherConfidence-3'] : $modArr_AF_A29_NightOutWalkChoices[] = 'A29-NightOutEv-W3'
- if modVar_AF_EventProgress['A29-MotherConfidence'] > modVar_AF_EventGates['A29-MotherConfidence-4'] : $modArr_AF_A29_NightOutWalkChoices[] = 'A29-NightOutEv-W4'
- if modVar_AF_EventProgress['A29-MotherConfidence'] > modVar_AF_EventGates['A29-MotherConfidence-5'] : $modArr_AF_A29_NightOutWalkChoices[] = 'A29-NightOutEv-W5'
- $modArr_AF_A29_NightOutWalkChoices[] = 'A29-NightOutEv-W6'
- $modArr_AF_A29_NightOutWalkChoices[] = 'A29-NightOutEv-W7'
- if modVar_AF_EventProgress['A29-MotherConfidence'] > modVar_AF_EventGates['A29-MotherConfidence-1'] : $modArr_AF_A29_NightOutWalkChoices[] = 'A29-NightOutEv-W8'
- if modVar_AF_EventProgress['A29-MotherConfidence'] > modVar_AF_EventGates['A29-MotherConfidence-2'] : $modArr_AF_A29_NightOutWalkChoices[] = 'A29-NightOutEv-W9'
- if modVar_AF_EventProgress['A29-MotherConfidence'] > modVar_AF_EventGates['A29-MotherConfidence-2'] : $modArr_AF_A29_NightOutWalkChoices[] = 'A29-NightOutEv-W10'
- if modVar_AF_EventProgress['A29-MotherConfidence'] > modVar_AF_EventGates['A29-MotherConfidence-4'] : $modArr_AF_A29_NightOutWalkChoices[] = 'A29-NightOutEv-W11'
- $modArr_AF_A29_NightOutTrainChoices[] = 'A29-NightOutEv-T1'
- if modVar_AF_EventProgress['A29-MotherConfidence'] > modVar_AF_EventGates['A29-MotherConfidence-2'] : $modArr_AF_A29_NightOutTrainChoices[] = 'A29-NightOutEv-T2'
- if modVar_AF_EventProgress['A29-MotherConfidence'] > modVar_AF_EventGates['A29-MotherConfidence-3'] : $modArr_AF_A29_NightOutTrainChoices[] = 'A29-NightOutEv-T3'
- $modArr_AF_A29_NightOutTrainChoices[] = 'A29-NightOutEv-T4'
- $modArr_AF_A29_NightOutTrainChoices[] = 'A29-NightOutEv-T5'
- if money > 1000 : $modArr_AF_A29_NightOutMealChoices[] = 'A29-NightOutEv-R1'
- $modArr_AF_A29_NightOutMealChoices[] = 'A29-NightOutEv-R2'
- $modArr_AF_A29_NightOutMealChoices[] = 'A29-NightOutEv-R3'
- if money > 10000 : $modArr_AF_A29_NightOutMealChoices[] = 'A29-NightOutEv-R4'
- modVar_AF_Rand = rand(1,ARRSIZE('$modArr_AF_A29_NightOutConvChoices')) - 1
- gt 'mod_addedflavour_A29_Events' , $modArr_AF_A29_NightOutConvChoices[modVar_AF_Rand]
- end
-
- if $ARGS[0] = 'A29-AptStayEv-Config':
- if $ARGS[1] = 'Stay':
- gs 'mod_addedflavour_charsche' , 'acttools' , 'actchars' , 'CityAptBedroom - Resting' , 'Add' , 29
- gs 'mod_addedflavour_charsche' , 'acttools' , 'actchars' , 'CityAptBalcony - Resting' , 'Add' , 29
- gs 'mod_addedflavour_charsche' , 'acttools' , 'actchars' , 'CityAptKitchen - Cleaning' , 'Add' , 29
- gs 'mod_addedflavour_charsche' , 'acttools' , 'actchars' , 'CityAptSittingRoom - Resting' , 'Add' , 29
- gs 'mod_addedflavour_charsche' , 'acttools' , 'actchars' , 'CityAptBathroom - Bathing' , 'Add' , 29
- modVar_AF_EventLock['A29-AptStayEv-Interacted'] = 0
- modVar_AF_EventLock['A29-AptStayEv-Clothed'] = 0
- modVar_AF_EventLock['A29-AptStayEv-Bathed'] = 0
- elseif $ARGS[1] = 'Leave':
- gs 'mod_addedflavour_charsche' , 'acttools' , 'actchars' , 'CityAptBedroom - Resting' , 'Remove' , 29
- gs 'mod_addedflavour_charsche' , 'acttools' , 'actchars' , 'CityAptBalcony - Resting' , 'Remove' , 29
- gs 'mod_addedflavour_charsche' , 'acttools' , 'actchars' , 'CityAptKitchen - Cleaning' , 'Remove' , 29
- gs 'mod_addedflavour_charsche' , 'acttools' , 'actchars' , 'CityAptSittingRoom - Resting' , 'Remove' , 29
- gs 'mod_addedflavour_charsche' , 'acttools' , 'actchars' , 'CityAptBathroom - Bathing' , 'Remove' , 29
- gs 'mod_addedflavour_charsche' , 'acttools' , 'forceact' , 29 , 'Void' , 'Idle' , 5
- modVar_AF_Temp = 6 - difficulty
- modVar_AF_EventOpen['A29-AptStayEv'] = 0
- npc_rel['A29'] += rand(8,12)
- gs 'mod_addedflavour_A29_Functions' , 'AddProgress' , 'A29-MotherConfidence' , modVar_AF_Temp , modVar_AF_EventGates['A29-MotherConfidence-2']
- end
- end
- --- mod_addedflavour_A29_Functions ---------------------------------
|