|
@@ -1,5 +1,4 @@
|
|
|
# bed_events
|
|
|
-$sleep_loc = 'bed_events'
|
|
|
menu_off = 1
|
|
|
|
|
|
!! Bed events trigger after going to lie down on the bed, but before actually lying down in bed (and getting to choose to sleep, get out, read a book, etc)
|
|
@@ -37,7 +36,7 @@ end
|
|
|
|
|
|
if $ARGS[0] = 'mod_sleepevents':
|
|
|
!! This location is here to allow mods to hook into the system.
|
|
|
- !! Either check for: if $sleep_loc = 'bed_events' and $ARGS[0] = 'mod_sleepevents'
|
|
|
+ !! Either check for: if $ARGS[0] = 'bed_events' and $ARGS[1] = 'mod_sleepevents'
|
|
|
!!
|
|
|
!! You can add events as: $sleep_events[] = 'gs ''mod_loc'' ''mod_args0'' '
|
|
|
!! A random event will be chosen from amongst the added ones.
|
|
@@ -52,6 +51,7 @@ if $ARGS[0] = 'mod_sleepevents':
|
|
|
!! DO NOT DIRECTLY GOTO/GOSUB OUTOF THIS LOCATION. ALWAYS ADD IT TO THE QUEUEs!!!!
|
|
|
!! IT WILL ALMOST CERTIANLY END BADLY WHEN MORE THAN 1 MOD IS INVOLVED.
|
|
|
|
|
|
+ gs 'LOCA', 'bed_events', 'mod_sleepevents'
|
|
|
gt 'bed_events', 'event_handler'
|
|
|
end
|
|
|
|
|
@@ -100,7 +100,6 @@ end
|
|
|
|
|
|
if $ARGS[0] = 'exit':
|
|
|
sleepVars['events_done'] = 0
|
|
|
- killvar '$sleep_loc'
|
|
|
killvar '$sleep_events'
|
|
|
killvar '$sleep_events_priority'
|
|
|
killvar 'temp_slev_id'
|
|
@@ -109,7 +108,6 @@ end
|
|
|
|
|
|
if $ARGS[0] = 'continue':
|
|
|
sleepVars['events_done'] = 0
|
|
|
- killvar '$sleep_loc'
|
|
|
killvar '$sleep_events'
|
|
|
killvar '$sleep_events_priority'
|
|
|
killvar 'temp_slev_id'
|