Vendily

pbIsDate

Jan 31st, 2017
196
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def pbIsDate(dateVariable,*arg)
  2. timenow=pbGetTimeNow
  3. thisdate=timenow.mday
  4. ret=false
  5. for wd in arg
  6. ret=true if wd==thisdate
  7. end
  8. if dateVariable>0
  9. $game_variables[dateVariable]=thisdate
  10. $game_map.need_refresh = true if $game_map
  11. end
  12. return ret
  13. end
RAW Paste Data