0
0

mod_isample.qsrc 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # mod_isample
  2. !input mod entry point here. this will be checked on every location, please keep it clean and brief to avoid game lag
  3. !entry point 1: if player is on bed, create a new link to make her sleepy
  4. if $curloc = 'bed2' and $args[0] = '':
  5. if pcs_sleep > 80:
  6. '[mod]... But You can make yourself <a href="exec:pcs_sleep=0&gt $curloc">sleepy!</a>'
  7. else
  8. '[mod]... And you are already sleepy.'
  9. end
  10. end
  11. !entry point 2: goto school directly from room
  12. !Note that location name are case sensetive. you can use lcase() or ucase() to prevent bug
  13. if lcase($curloc) = 'bedrpar' or ucase($curloc) = 'KORRPAR':
  14. act '[mod]<font color = green><b>Go to school</b></font>': minut += 1 & gt 'gschool_grounds', 'main'
  15. end
  16. !entry point 3: replace exit room act in apartment
  17. if $curloc = 'bedrPar':
  18. delact 'Exit the room'
  19. act 'Exit the room':
  20. msg 'Now mod isample will send you to school directly'
  21. minut += 1 & gt 'gschool_grounds', 'main'
  22. end
  23. end
  24. !entry point 4: access in-mod location
  25. if $curloc = 'pavResidential':
  26. act '[mod]Chase the rabbit':
  27. gt 'mod_isample_pavResidential'
  28. end
  29. end
  30. if $curloc = 'street':
  31. act '[mod]Jump into rabit hole':
  32. *clr & cla
  33. '[mod]Suddenly, everything blank out'
  34. gs 'mod_isample_street'
  35. end
  36. end
  37. --- mod_isample ---------------------------------