[Crossfire-wiki] [Crossfire DokuWiki] page changed: dev:objects

no-reply_wiki at metalforge.org no-reply_wiki at metalforge.org
Fri Dec 8 05:52:51 CST 2006


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

Date        : 2006/12/08 05:52
User        : ryo
Edit Summary: format

@@ -1278,35 +1278,23 @@
  Note:  For all sacrifice types, the number to activate the altar must be in one object.  Thus, in the above money example, 100 sp and 10 gp would not work.  Likewise, if the needed sacrifice was 2 swords, 1 normal sword and 1
  +1 sword would not work, even though 2 of either one would.
  
  Quick summary of the different altars:
+ 
  
  ==== Triggers ====
  
- Triggers are slightly different than normal buttons/pedestals/whatever in
- that they reset after a short amount of time.  Thus, they can be used to
- open a door for a short amount of time.  Triggers use stats.wc as
- a temporary storage value to note activation.
- 
- stats.exp is used do determine when the trigger resets.  A smaller value
- means faster reset.
- 
- stats.ac is used to store the old value of the condition for TRIGGER_BUTTON
- and TRIGGER_PEDESTAL to trigger only when condition changes from false to true.
- 
- TRIGGER_BUTTON: if weight on the button is greater than the weight value
- for the trigger, push a trigger.
+ Triggers are slightly different than normal buttons/pedestals/whatever in that they reset after a short amount of time.  Thus, they can be used to open a door for a short amount of time.  Triggers use stats.wc as a temporary storage value to note activation.
  
- TRIGGER_PEDESTAL:  IF a matching object is on top of the pedestal, then trigger
- a trigger.
+ | exp | determines when the trigger resets.  A smaller value means faster reset |
+ | ac | old value of the condition for TRIGGER_BUTTON and TRIGGER_PEDESTAL to trigger only when condition changes from false to true |
  
- TRIGGER_ALTAR: Takes a sacrifice, then pushes a trigger.
- If "last_sp 0" is set, the altar will trigger the connected value TWO
- times per sacrifice: Once by dropping the sacrifice, second by altar reset.
- If "last_sp 1" is set, the altar won't trigger the connected value
- by reset - Hence, only ONE time per sacrifice.
+ The different triggers are:
+   * TRIGGER_BUTTON: if weight on the button is greater than the weight value for the trigger, push a trigger
+   * TRIGGER_PEDESTAL:  if a matching object is on top of the pedestal, then trigger a trigger
+   * TRIGGER_ALTAR: Takes a sacrifice, then pushes a trigger. If "last_sp 0" is set, the altar will trigger the connected value TWO times per sacrifice: Once by dropping the sacrifice, second by altar reset. If "last_sp 1" is set, the altar won't trigger the connected value by reset - Hence, only ONE time per sacrifice.
+   * TRIGGER (handle):  Pushes a trigger.
  
- TRIGGER (handle):  Pushes a trigger.
  Note:  At one time, there was a difference between triggers and buttons - they
  were considered different types for activation.  However, now they are all
  the same - a button can push a trigger, and vice versa.  And of course,
  triggers can activate other triggers, and the same for buttons.


IP-Address  : 213.174.127.3
Old Revision: http://wiki.metalforge.net/doku.php/dev:objects?rev=1165578640
New Revision: http://wiki.metalforge.net/doku.php/dev:objects

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




More information about the crossfire-wiki mailing list