Difference between pages "DETACH" and "EXPRESSIONS TRIGEDIT-EXPRESSIONS INCREMENTS MATHEMATICAL /="

From 4Dimensions
(Difference between pages)
Jump to: navigation, search
(Bot: Automated import of articles)
 
m
 
Line 1: Line 1:
'''DETACH'''
+
'''EXPRESSIONS TRIGEDIT-EXPRESSIONS INCREMENTS MATHEMATICAL /= || \'''
 
[[Category:Help Files]]
 
[[Category:Help Files]]
 +
[[Category:Building]]
  
DETACH
+
A false expression is any expression that evaluates to 0, or an empty string.
  
DETACH
+
A true expression is any expression that evaluates to anything other than a
  
DETACH
+
false expression. The following list are the recognized operators. The higher
  
 +
the operator is on the list, the higher the precedence. The expression is
  
 +
evaluated from left to right. Parenthesis can be used to group.
  
Builder's working on their trial vnum do not need to learn this command, yet. 
 
  
 +
<pre>
 +
|Operator|        Name          | Examples  0=False 1=True  |
 +
--------------------------------------------------------------
  
 +
|  ||  | logical or            | 0 || ( ) = 0; 5 || 0 = 1  |
  
Usage: detach [mob | obj] {target name} {trigger name/vnum | 'all'}
+
|   &&  | logical and          | 1 && 0 = 0; 5 && 3 = 1    |
  
detach room {target vnum | '.'} {trigger name/vnum | 'all'}
+
|   ==  | equivalence          | 5 == 3 = 0; dog == DoG = 1|  
  
 +
|  !=  | inequality            | 0 != Z = 0; dog != d = 1  |
  
 +
|  <    | less than            | 4 < 3 = 0; 4 < 5 = 1      |
  
Detach removes a script to one instance of a mob/obj/room, for testing or
+
|  >    | greater than          | 4 > 3 = 1; 4 > 4 = 0      |
  
other purposes. The command only removes the trigger temporarily, until the
+
|  <=  | less than or equal    | 4 <= 3 = 0; 4 <= 5 = 1    |
  
room/obj/mob is reloaded via reboot, zreset, load.
+
|  >=  | greater than or equal | 4 >= 3 = 1; 4 >= 4 = 1    |
  
 +
|  /=  | substring            | "concatenate" /= "cat"    |
  
 +
|  -    | subtraction          | 15 - 10 = 5              |
  
Use the optional arguments 'mob' and 'obj' to differentiate if more entities
+
|  +    | addition              | 10 + 15 = 25              |
  
with the same alias are in the room.
+
|  *    | multiplication        | 10 * 20 = 400            |
  
 +
|  /    | division              | 100 / 20 = 5              |
  
 +
|  !    | negation              | !() = 1; !0 = 1; !dog = 0;|
  
Examples:
+
--------------------------------------------------------------
 +
</pre>
  
detach room 14500 14520 - remove trigger 14500 from room 14520.
 
  
detach room all        - removes all triggers from a room.
+
Example: {cRTSTAT 63{c0
 
 
detach santa 1332      - detach trigger 1332 from mob 1308 (santa).
 
 
 
detach mob santa all    - detach all triggers from Santa.
 
 
 
detach santa all        - Same as above.
 
 
 
detach sword 1300      - detach trigger 1300 from sword.
 
 
 
detach obj sword 1300  - You guessed it - same as above.
 
 
 
detach sword all        - detach all triggers from the sword.
 
 
 
 
 
 
 
See also: [[ATTACH]]  [[TRIG-DETACH]]  [[TRIG-ATTACH]]  [[OLC]]  [[TRIGEDIT]]  [[TSTAT]]  [[STAT]]  [[ROOMFLAGS]]
 

Latest revision as of 12:25, 14 July 2017

EXPRESSIONS TRIGEDIT-EXPRESSIONS INCREMENTS MATHEMATICAL /= || \

A false expression is any expression that evaluates to 0, or an empty string.

A true expression is any expression that evaluates to anything other than a

false expression. The following list are the recognized operators. The higher

the operator is on the list, the higher the precedence. The expression is

evaluated from left to right. Parenthesis can be used to group.


|Operator|         Name          | Examples  0=False 1=True  |
--------------------------------------------------------------

|   ||   | logical or            | 0 || ( ) = 0; 5 || 0 = 1  |

|   &&   | logical and           | 1 && 0 = 0; 5 && 3 = 1    |

|   ==   | equivalence           | 5 == 3 = 0; dog == DoG = 1| 

|   !=   | inequality            | 0 != Z = 0; dog != d = 1  | 

|   <    | less than             | 4 < 3 = 0; 4 < 5 = 1      |

|   >    | greater than          | 4 > 3 = 1; 4 > 4 = 0      |

|   <=   | less than or equal    | 4 <= 3 = 0; 4 <= 5 = 1    |

|   >=   | greater than or equal | 4 >= 3 = 1; 4 >= 4 = 1    |

|   /=   | substring             | "concatenate" /= "cat"    |

|   -    | subtraction           | 15 - 10 = 5               |

|   +    | addition              | 10 + 15 = 25              |

|   *    | multiplication        | 10 * 20 = 400             |

|   /    | division              | 100 / 20 = 5              |

|   !    | negation              | !() = 1; !0 = 1; !dog = 0;| 

--------------------------------------------------------------


Example: {cRTSTAT 63{c0