[Crossfire-wiki] [Crossfire DokuWiki] page changed: dev_todo:time_of_day_based_events

no-reply_wiki at metalforge.org no-reply_wiki at metalforge.org
Sun Dec 16 07:05:36 CST 2007


A page in your DokuWiki was added or changed. Here are the details:

Date        : 2007/12/16 07:05
User        : tchize
Edit Summary: 

@@ -25,15 +25,16 @@
      * Can we (is it copyrighted?) have monsters turn to stone based on the time?
    * <del>Items being affected by the time of day</del> -> Demo weapons in test/tod that attack only at night / during day
    * <del>Perhaps connected values alter/default, so scorn gates are open during the day, closed at night.</del> -> predefined python filters can be used on event, object can bythemself trigger some connected value at specific time
    * Add Gridarta UI to easily use prebuild python scripts -> asked to gridarta team, they are thinking about script UI
+ 
  
  ==== current stage ====
- Approximatively 80% work done on this. Still need to build a few script, like one to alter the destination of a map depending on hour and another to freeze/make alive all monster in map at a certain time.
+ Approximatively 90% work done on this. Still need to build a few script, like one to alter the destination of a map depending on hour and another to freeze/make alive all monster in map at a certain time.
  Note: some things below may only be working currently on developper's computer and may not yet have been commited
  === C code ===
-   * Transfert of Month/weekday/season names to plugins
-   * Add notions for periods of the day? (night, dawn, morning, noon, evening, dusk/sunset)
+   * Transfert of Month/weekday/season names to plugins.
+   * Add notions for periods of the day. (night, dawn, morning, noon, evening, dusk/sunset)
    * provide a name->index hastable for periods of day/year
  === python ===
  Example (verbose) python code using time based informations
  <code python>
@@ -60,16 +61,5 @@
  if (set(parameters) & set(current)):
  	Crossfire.SetReturnValue(0)
  </code>
  === filter event ===
- First stage plans to give possibility for event fitlering using ad hoc python library. example trigger that works only during New Year and/or the Day of the Moon:
- <code>
- arch button_trigger
- x 2
- y 5
- connected 10
- arch event_apply
- name The Season of New Year,the Day of the Moon
- title Python
- slaying /python/tod/moment_only.py
- end
- </code>
+ Prebuild scripts are available in /python/tod/sleep.py.


IP-Address  : 87.67.125.144
Old Revision: http://wiki.metalforge.net/doku.php/dev_todo:time_of_day_based_events?rev=1197810144
New Revision: http://wiki.metalforge.net/doku.php/dev_todo:time_of_day_based_events

-- 
This mail was generated by DokuWiki at
http://wiki.metalforge.net/




More information about the crossfire-wiki mailing list