mod_addedflavour_A28_Functions.qsrc 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # mod_addedflavour_A28_Functions
  2. if $ARGS[0] = 'config':
  3. $npc_fontcolor['A28'] = 'Olive'
  4. $modArr_AF_A28_ThreesomePlaces[] = 'dachi'
  5. $modArr_AF_A28_ThreesomePlaces[] = 'gadukino'
  6. $modArr_AF_A28_ThreesomePlaces[] = 'motel'
  7. $modArr_AF_A28_ThreesomePlaces[] = 'OutofTown'
  8. $modVar_AF_NPCLastKnownLocation['A28'] = ''
  9. end
  10. if $ARGS[0] = 'A28-WorkEv-X1':
  11. 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:
  12. modVar_AF_EventLock['A28-WorkEv-SeenWorking'] = hour
  13. if rand(1,2) = 2:
  14. CLOSE ALL
  15. if sound = 0:
  16. PLAY 'mod/addedflavour/sound/VanHorn.mp3' , 20
  17. end
  18. *nl
  19. if (kanikuli = 0 and SchoolAtestat = 0) and hour < 14:
  20. if npc_sex['A28'] ! 0:
  21. '<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>'
  22. else
  23. '<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>'
  24. if modVar_AF_EventLock['A28-WorkEv-Caught'] ! daystart:
  25. modVar_AF_EventLock['A28-WorkEv-Caught'] = daystart
  26. npc_rel['A28'] -= 3
  27. npc_rel['A29'] -= 10
  28. end
  29. end
  30. else
  31. '<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>'
  32. npc_rel['A28'] += 1
  33. end
  34. else
  35. *nl
  36. '<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>'
  37. end
  38. end
  39. end
  40. if $ARGS[0] = 'TalkEvents':
  41. if npc_rel['A28'] >= 90 and modVar_AF_DeliveryJob['State'] = 0 : gt 'mod_addedflavour_A28_Events' , 'A28-DeliveryJobEv-X1'
  42. !---
  43. 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:
  44. gs 'mod_addedflavour_Football' , 'ChkMatch' , 'League 2'
  45. if $modVar_AF_TempStr = 'Away' and $modVar_AF_FBall_TravelMessage ! 'Leave with your Stepfather between 1pm and 2pm.':
  46. act 'Ask for a Lift to your Football Match' : gt 'mod_addedflavour_A28_Events' , 'A28-FootballEv-X1'
  47. elseif $modVar_AF_TempStr = 'Away' and hour = 13:
  48. act 'Go to your Football Match' : gt 'mod_addedflavour_Football' , 'MatchStart' , 'Stepfather'
  49. end
  50. end
  51. end
  52. --- mod_addedflavour_A28_Functions ---------------------------------