|
@@ -4,15 +4,18 @@
|
|
|
|
|
|
if $ARGS[0] = 'start':
|
|
|
|
|
|
- _initialized = FUNC('util_vars','get','school','initialized')
|
|
|
+
|
|
|
+
|
|
|
+ gs 'util_action','render_action','<b style="font-size: 150%;">Start Schoolday</b>','gt ''event_school_schoolday'',''execute'' '
|
|
|
|
|
|
- if _initialized = 0 : gs'event_school_schoolday','initialize'
|
|
|
|
|
|
$_hang_out_with = FUNC('util_vars','get','school','$socialgroup_hangoutwith')
|
|
|
if $_hang_out_with = '' or $_hang_out_with = 'nerds':
|
|
|
$_hang_out_with_text = 'During pauses you will hang out with the nerds in the computer lab.'
|
|
|
+ $_hang_out_with_picture = 'events/school/schoolday/nerds.png'
|
|
|
elseif $_hang_out_with = 'sports':
|
|
|
$_hang_out_with_text = 'During pauses you will hang out with sports team on the school grounds.'
|
|
|
+ $_hang_out_with_picture = 'events/school/schoolday/sports.jpg'
|
|
|
end
|
|
|
|
|
|
_performance = FUNC('util_vars','get','school','performance')
|
|
@@ -27,9 +30,10 @@ if $ARGS[0] = 'start':
|
|
|
elseif _performance = 4:
|
|
|
$_performance_text = 'You put no effort into your school work.'
|
|
|
end
|
|
|
+ $_performance_picture = 'events/school/schoolday/classes/participate_'+FUNC('pc','get','genderMedia')+'_<<_performance>>.jpg'
|
|
|
|
|
|
- gs 'util_action','render_action',$_hang_out_with_text,'gt ''event_school_schoolday'',''startSwitchHangout'' '
|
|
|
- gs 'util_action','render_action',$_performance_text,'gt ''event_school_schoolday'',''startSwitchPerformance'' '
|
|
|
+ gs 'util_action','render_action',$_hang_out_with_text,'gt ''event_school_schoolday'',''startSwitchHangout'' ',0,$_hang_out_with_picture
|
|
|
+ gs 'util_action','render_action',$_performance_text,'gt ''event_school_schoolday'',''startSwitchPerformance'' ',0,$_performance_picture
|
|
|
|
|
|
gs 'util_action','render_action','<b style="font-size: 150%;">Start Schoolday</b>','gt ''event_school_schoolday'',''execute'' '
|
|
|
|
|
@@ -56,7 +60,10 @@ elseif $ARGS[0] = 'initialize':
|
|
|
gs 'util_vars','set','school','performance',2
|
|
|
gs 'util_vars','set','school','performanceTotal',500
|
|
|
|
|
|
+
|
|
|
gs 'util_vars','set','school','time_end',140000
|
|
|
+ gs 'util_vars','set','school','time_start_earliest',73000
|
|
|
+ gs 'util_vars','set','school','time_start_begin',80000
|
|
|
|
|
|
gs 'util_vars','set','school','initialized',1
|
|
|
|
|
@@ -111,6 +118,15 @@ elseif $ARGS[0] = 'performance':
|
|
|
end
|
|
|
|
|
|
|
|
|
+ _time_at_school = FUNC('util_time','timeUntilTimeOfDay',FUNC('util_vars','get','school','time_end'))
|
|
|
+ _time_at_school_required = FUNC('util_time','timeOfDay2Seconds',FUNC('util_vars','get','school','time_end')) - FUNC('util_time','timeOfDay2Seconds',FUNC('util_vars','get','school','time_start_begin'))
|
|
|
+
|
|
|
+ if _time_at_school_required > _time_at_school:
|
|
|
+ _hours_missed = (_time_at_school_required - _time_at_school + 3599) / 3600
|
|
|
+ _p = rand(_hours_missed,_hours_missed * 2)
|
|
|
+ $_performance_text[] = 'You missed <<_hours_missed>> hours of school and your grades therefore dropped by <<_p>>.'
|
|
|
+ end
|
|
|
+
|
|
|
!foreach($_performance_text as key => $value){
|
|
|
*PL $value
|
|
|
}
|
|
@@ -173,6 +189,7 @@ elseif $ARGS[0] = 'social':
|
|
|
end
|
|
|
|
|
|
*PL '<div class="npcGrid"><<$content_sidebarL>></div>'
|
|
|
+ $content_sidebarL = ''
|
|
|
|
|
|
gs 'util_vars','set','school','socialgroup_interactionCounter_'+$_hang_out_with,_interaction_counter + 1
|
|
|
|