Advertisement
Guest User

Date & Time Plugin Readme

a guest
Jan 13th, 2020
689
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.56 KB | None | 0 0
  1. ===========================================
  2. |Date & Time Plugin v.1.0 for RPG Maker 2003|
  3. |For DynRPG version 0.13 or higher |
  4. |By elvissteinjr |
  5. ===========================================
  6.  
  7. [SCROLL DOWN FOR ENGLISH INSTRUCTIONS!]
  8.  
  9. Deutsch
  10. -------
  11.  
  12. Das Date & Time Plugin ermöglicht Zugriff auf Datum und Uhrzeit des PCs.
  13. Es ist auch möglich mit Hilfe von Timestamps ein Datum zu berechnen.
  14. Alle Daten sind abhängig von den Einstellungen des PCs.
  15.  
  16. Ein Beispielprojekt ist im "demo" Ordner zu finden.
  17. Den Quellcode kann man im "src" Ordner finden. Es handelt sich dabei um ein Code::Blocks Projekt.
  18.  
  19. Installation
  20. ------------
  21.  
  22. 1) Stellt sicher dass der DynRPG-Patch bei eurem Spiel installiert ist: http://cherrytree.at/dynrpg
  23. 2) Kopiert die date_and_time.dll in den DynPlugins-Ordner eures Spiels.
  24.  
  25. Kommentarbefehle
  26. ----------------
  27.  
  28. Es gibt 16 Kommentarbefehle um Datum und Uhrzeit abzufragen oder umzuwandeln (benutzt sie in Event-Kommentaren):
  29. (HINWEIS: Ihr könnt auch das Prefix "V" für Parameter benutzen deren Wert aus einer Variable gelesen werden soll. Ihr könnt auch mehr als ein "V"-Präfix verwenden.)
  30.  
  31. @GetTimestamp VariableID
  32. ------------------------
  33. Schreibt den aktuellen Timestamp in die Variable mit der angegebenden ID.
  34.  
  35. @GetDate VariableID(Monat), VariableID(Tag), VariableID(Jahr)
  36. -------------------------------------------------------------
  37. Schreibt das aktuelle Datum in die Variablen mit den angegebenen IDs.
  38.  
  39. @GetMonth VariableID
  40. ---------------------------
  41. Schreibt den aktuellen Monat in die Variable mit der angegebenen ID.
  42.  
  43. @GetDay VariableID
  44. ------------------
  45. Schreibt den aktuellen Tag in die Variable mit der angegebenen ID.
  46.  
  47. @GetYear VariableID
  48. -------------------
  49. Schreibt das aktuelle Jahr in die Variable mit der angegebenen ID.
  50.  
  51. @GetWeekday VariableID
  52. ----------------------
  53. Schreibt den aktuellen Wochentag in die Variable mit der angegebenen ID.
  54. Der Wert fängt mit 0 an und endet mit 6. Erster Tag ist Sonntag.
  55.  
  56. @GetYearday VariableID
  57. ----------------------
  58. Schreibt den aktuellen Tag im Jahr in die Variable mit der angegebenen ID.
  59.  
  60. @GetTime VariableID(Stunde), VariableID(Minute), VariableID(Sekunde)
  61. --------------------------------------------------------------------
  62. Schreibt die aktuelle Zeit in die Variablen mit den angegebenen IDs.
  63.  
  64. @GetHour VariableID
  65. -------------------
  66. Schreibt die aktuelle Stunde in die Variable mit der angebenen ID.
  67.  
  68. @GetMinute VariableID
  69. ---------------------
  70. Schreibt die aktuelle Minute in die Variable mit der angegbenen ID.
  71.  
  72. @GetSecond VariableID
  73. ---------------------
  74. Schreibt die akutelle Sekunde in die Variable mit der angegebenen ID.
  75.  
  76. @GetDateFromTimestamp Timestamp, VariableID(Monat), VariableID(Tag), VariableID(Jahr)
  77. -------------------------------------------------------------------------------------
  78. Schreibt das Datum des angegebenen Timestamps in die Variablen mit den angegebenen IDs.
  79.  
  80. @GetTimeFromTimestamp Timestamp VariableID(Stunde), VariableID(Minute), VariableID(Sekunde)
  81. -------------------------------------------------------------------------------------------
  82. Schreibt die Zeit des angegebenen Timestamps in die Variablen mit der angebenen IDs.
  83.  
  84. @GetWeekdayFromTimestamp Timestamp, VariableID
  85. ----------------------------------------------
  86. Schreibt den Wochentag des angegebenen Timestamps in die Variable mit der angegebenen ID.
  87.  
  88. @GetYeardayFromTimestamp Timestamp, VariableID
  89. ----------------------------------------------
  90. Schreibt den Tag des Jahres des angegebenen Timestamps in die Variable mit der angegebenen ID.
  91.  
  92. @GetTimestampFromDate Monat, Tag, Jahr, VariableID(Timestamp)
  93. -------------------------------------------------------------
  94. Schreibt den Timestamp des angegebenen Datums in die Variable mit der angegebenen ID.
  95.  
  96. @GetTimestampFromDate Monat, Tag, Jahr, Stunde, Minute, Sekunde, VariableID(Timestamp)
  97. --------------------------------------------------------------------------------------
  98. Überladene Version von GetTimestampFromDate mit Angabe der Zeit.
  99.  
  100.  
  101. Hinweise
  102. --------
  103.  
  104. -Ein Timestamp ist der Zeitabstand zum 1. Januar 1970 00:00 Uhr UTC in Sekunden.
  105. -Das Plugin hebt das Limit des Change Variable Eventbefehls auf, damit man mit Timestamps rechnen kann.
  106. Während Addition und Substraktion problemlos möglich ist, ist Multiplikation oder Division mit übergroßen
  107. Zahlen nicht empfohlen.
  108.  
  109.  
  110. Falls du auf irgendwelche Problem stoßen solltest, oder Fragen hast, schreibe mir einfach eine Email:
  111. admin@elvissteinjr.de
  112.  
  113.  
  114.  
  115. English
  116. -------
  117.  
  118. The Date & Time plugin grants access to the date and time of the PC.
  119. It's also possible to calculate a date with timestamps.
  120. All data is dependent of the settings of the PC.
  121. In the 'demo' folder you can find a demo game.
  122. In the 'src' folder you can find the source code of this plugin. It's a Code::Blocks project.
  123.  
  124. Installation
  125. ------------
  126.  
  127. 1) Make sure the DynRPG patch is installed at your game: http://cherrytree.at/dynrpg
  128. 2) Copy date_and_time.dll into your game's DynPlugins folder.
  129.  
  130. Comment Commands
  131. ----------------
  132.  
  133. There are 15 comment commands which can be used to get date and time or convert it (use them in event comments):
  134. (NOTE: You may use the prefix "V" for parameters to have the value of the parameter read from a variable. You can also use more than one "V" prefix.)
  135.  
  136. @GetTimestamp VariableID
  137. ------------------------
  138. Writes the current timestamp into the variable with the given ID.
  139.  
  140. @GetDate VariableID(Month), VariableID(Day), VariableID(Year)
  141. -------------------------------------------------------------
  142. Writes the current date into the variables with the given IDs.
  143.  
  144. @GetMonth VariableID
  145. ---------------------------
  146. Writes the current month into the variable with the given ID.
  147.  
  148. @GetDay VariableID
  149. ------------------
  150. Writes the current day into the variable with the given ID.
  151.  
  152. @GetYear VariableID
  153. -------------------
  154. Write the current year into the variable with the given ID.
  155.  
  156. @GetWeekday VariableID
  157. ----------------------
  158. Write the current weekday into the variable with the given ID.
  159. The value starts with 0 and ends with 6. First day is Sunday.
  160.  
  161. @GetYearday VariableID
  162. ----------------------
  163. Writes the current day of the year into the variable with the given ID.
  164.  
  165. @GetTime VariableID(Hour), VariableID(Minute), VariableID(Second)
  166. --------------------------------------------------------------------
  167. Writes the current time into the variables with the given IDs.
  168.  
  169. @GetHour VariableID
  170. -------------------
  171. Writes the current hour into the variable with the given ID.
  172.  
  173. @GetMinute VariableID
  174. ---------------------
  175. Writes the current minute into the variable with the given ID.
  176.  
  177. @GetSecond VariableID
  178. ---------------------
  179. Writes the current second into the variable with the given ID.
  180.  
  181. @GetDateFromTimestamp Timestamp, VariableID(Month), VariableID(Day), VariableID(Year)
  182. -------------------------------------------------------------------------------------
  183. Writes the date of the given timestamp into the variables with the given IDs.
  184.  
  185. @GetTimeFromTimestamp Timestamp, VariableID(Hour), VariableID(Minute), VariableID(Second)
  186. -----------------------------------------------------------------------------------------
  187. Writes the date if the given timestamp into the variables with the given IDs.
  188.  
  189. @GetWeekdayFromTimestamp Timestamp, VariableID
  190. ----------------------------------------------
  191. Writes the weekday of the given timestamp into the variable with the given ID.
  192.  
  193. @GetYeardayFromTimestamp Timestamp, VariableID
  194. ----------------------------------------------
  195. Writes the day of the year of the given timestamp into the variable with the given ID.
  196.  
  197. @GetTimestampFromDate Month, Day, Year, VariableID(Timestamp)
  198. -------------------------------------------------------------
  199. Writes the timestamp of the given date into the variable with the given ID.
  200.  
  201. @GetTimestampFromDate Month, Day, Year, Hour, Minute, Second, VariableID(Timestamp)
  202. -----------------------------------------------------------------------------------
  203. Overloaded version of GetTimestampFromDate with time.
  204.  
  205.  
  206. Notes
  207. -----
  208.  
  209. -A timestamp is defined as the number of seconds elapsed since 00:00 UTC of January 1, 1970.
  210. -The plugin removes the the limit of the Change Variable event command to be able to calculate timestamps.
  211. While addition and substraction are no problems, multiplication and division of oversized numbers aren't
  212. recommended.
  213.  
  214.  
  215. If you encounter any problems, or have any questions, write an email to me:
  216. admin@elvissteinjr.de
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement