12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- # mod_addedflavour_A28_Functions
- if $ARGS[0] = 'config':
- $npc_fontcolor['A28'] = 'Olive'
- $modArr_AF_A28_ThreesomePlaces[] = 'dachi'
- $modArr_AF_A28_ThreesomePlaces[] = 'gadukino'
- $modArr_AF_A28_ThreesomePlaces[] = 'motel'
- $modArr_AF_A28_ThreesomePlaces[] = 'OutofTown'
- $modVar_AF_NPCLastKnownLocation['A28'] = ''
- end
-
- if $ARGS[0] = 'A28-WorkEv-X1':
- if $loc = $charsche_character_CurActLoc[arrpos('charsche_charlist',28)] and $charsche_character_CurActDesc[arrpos('charsche_charlist',28)] = 'Working' and modVar_AF_EventLock['A28-WorkEv-SeenWorking'] ! hour:
- modVar_AF_EventLock['A28-WorkEv-SeenWorking'] = hour
- if rand(1,2) = 2:
- CLOSE ALL
- if sound = 0:
- PLAY 'mod/addedflavour/sound/VanHorn.mp3' , 20
- end
- *nl
- if (kanikuli = 0 and SchoolAtestat = 0) and hour < 14:
- if npc_sex['A28'] ! 0:
- '<b><font color="<<$npc_fontcolor[''A28'']>>"> ' + iif(rand(1,2) = 1,'<<$pcs_nickname>>','<<$pcs_firstname>>') + '! Caught you skipping school, you''ll owe me later!"</font> - Your Stepfather has driven past you in the Gazelle!</b>'
- else
- '<b><font color="<<$npc_fontcolor[''A28'']>>"> ' + iif(rand(1,2) = 1,'<<$pcs_nickname>>','<<$pcs_firstname>>') + '! Caught you skipping school, you wait ''til I tell your Mother!"</font> - Your Stepfather has driven past you in the Gazelle!</b>'
- if modVar_AF_EventLock['A28-WorkEv-Caught'] ! daystart:
- modVar_AF_EventLock['A28-WorkEv-Caught'] = daystart
- npc_rel['A28'] -= 3
- npc_rel['A29'] -= 10
- end
- end
- else
- '<b><font color="<<$npc_fontcolor[''A28'']>>">"' + iif(hour < 12,'Morning','Afternoon') + ' ' + iif(rand(1,2) = 1,'<<$pcs_nickname>>','<<$pcs_firstname>>') + '!"</font> - Your Stepfather has driven past you in the Gazelle!</b>'
- npc_rel['A28'] += 1
- end
- else
- *nl
- '<b>Your ' + iif(((kanikuli = 0 and SchoolAtestat = 0) and hour < 14)or(modVar_AF_EventLock['A28-WorkEv-Interact'] = daystart),'Stepfather','<a href="exec: menu_off = 1 & gt ''mod_addedflavour_A28_Events'' , ''A28-WorkEv-1'' ">Stepfather</a>') + ' is here delivery packages</b>'
- end
- end
- end
-
- if $ARGS[0] = 'TalkEvents':
- if npc_rel['A28'] >= 90 and modVar_AF_DeliveryJob['State'] = 0 : gt 'mod_addedflavour_A28_Events' , 'A28-DeliveryJobEv-X1'
- !---
- if modVar_AF_EventProgress['Football'] = 2 and week = 7 and modVar_AF_FBall_GameweekPlayed = modVar_AF_FBall_Gameweek - 1 and hour <= 13 and npc_rel['A28'] >= 50:
- gs 'mod_addedflavour_Football' , 'ChkMatch' , 'League 2'
- if $modVar_AF_TempStr = 'Away' and $modVar_AF_FBall_TravelMessage ! 'Leave with your Stepfather between 1pm and 2pm.':
- act 'Ask for a Lift to your Football Match' : gt 'mod_addedflavour_A28_Events' , 'A28-FootballEv-X1'
- elseif $modVar_AF_TempStr = 'Away' and hour = 13:
- act 'Go to your Football Match' : gt 'mod_addedflavour_Football' , 'MatchStart' , 'Stepfather'
- end
- end
- end
- --- mod_addedflavour_A28_Functions ---------------------------------
|