[Crossfire-wiki] [Crossfire DokuWiki] page changed: cfpython:tod

no-reply_wiki at metalforge.org no-reply_wiki at metalforge.org
Sat Nov 17 15:05:16 CST 2007


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

Date        : 2007/11/17 15:05
User        : tchize
Edit Summary: 

@@ -36,4 +36,26 @@
  |Morning| Between 8:00 am and 13:00am |
  |Noon| Between 13:00 am and 1:00 pm |
  |Evening| Between 1:00 pm and 6:00 pm |
  |Dusk| Between 6:00 pm and 9:00 pm |
+ 
+ ===== Script /python/tod/filter_one_period.py =====
+ This script will stop the event from propagating if the current time of the server matches **any** of the times defined as script parameters. Typical use:
+ 
+   arch event_apply
+   title Python
+   slaying /python/tod/filter_one_period.py
+   name The Season of New Year,The Season of the Blizzard,Morning
+   end
+ 
+ If any of the period of day/year mentionned in parameter match the current server time, the event will be propagated. Otherwise it will be stopped. In this example, the object this event is attached too will be usable on ly during New Year, blizzard or Morning.
+ 
+ ===== Script /python/tod/filter_all_periods.py =====
+ This script will stop the event from propagating if the current time of the server matches **all** of the times defined as script parameters. Typical use:
+   arch event_apply
+   title Python
+   slaying /python/tod/filter_all_periods.py
+   name the Day of the Moon,The Season of the Blizzard,Morning
+   end
+ 
+ If all of the period of day/year mentionned in parameter match the current server time, the event will be propagated. Otherwise it will be stopped. In this example, the object this event is attached too will be usable only during Mornings of days of the moon during the season of Blizzard.
+ 


IP-Address  : 87.67.125.37
Old Revision: http://wiki.metalforge.net/doku.php/cfpython:tod?rev=1195324865
New Revision: http://wiki.metalforge.net/doku.php/cfpython:tod

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




More information about the crossfire-wiki mailing list