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

From 4Dimensions
(Difference between pages)
Jump to: navigation, search
m
 
m
 
Line 1: Line 1:
'''MEDIT'''
+
'''EXPRESSIONS TRIGEDIT-EXPRESSIONS INCREMENTS MATHEMATICAL /= || \'''
 
[[Category:Help Files]]
 
[[Category:Help Files]]
 
[[Category:Building]]
 
[[Category:Building]]
  
1)  Set the sex of the mob. (male, female or neutral)
+
A false expression is any expression that evaluates to 0, or an empty string.
  
2)  Put the main name first in the name list.  Example: girl small
+
A true expression is any expression that evaluates to anything other than a
  
3)  No caps. No blank or period after the desc. Example: the girl
+
false expression. The following list are the recognized operators. The higher
  
4)  Must be a full sentence.        Example: A small girl sits here.
+
the operator is on the list, the higher the precedence. The expression is
  
5)  Remember to type /c before typing in the new description, and to format
+
evaluated from left to right. Parenthesis can be used to group.
  
the desc by typing /f when you are finished with it.
 
  
6)  Try to be logical when you choose level, and make it fit the zone level.
+
<pre>
 +
|Operator|        Name          | Examples  0=False 1=True  |
 +
--------------------------------------------------------------
  
7)   >350 is good, -350 - 350 is neutral, < 350 is evil align.
+
|  ||  | logical or            | 0 || ( ) = 0; 5 || 0 = 1  |
  
8-G) These stats are set automatically by the code with the level of the mob.
+
|  &&  | logical and          | 1 && 0 = 0; 5 && 3 = 1    |
  
H)   Defined by the mob race. Animals have no gold, Exotic gold must be set.
+
|   ==  | equivalence          | 5 == 3 = 0; dog == DoG = 1|
  
I-J) The position should be standing in most cases.
+
|  !=  | inequality            | 0 != Z = 0; dog != d = 1  |
  
K)   Choose an attack type suitable for the mob.
+
|   <    | less than            | 4 < 3 = 0; 4 < 5 = 1      |
  
L-M) Check the board to se what the different Flags do.
+
|  >    | greater than          | 4 > 3 = 1; 4 > 4 = 0      |
  
R)   Remember to set the race! It determines whether the mob has gold or not.
+
|   <=  | less than or equal    | 4 <= 3 = 0; 4 <= 5 = 1    |
  
N)   Add segments to a mob, mob segments move and die with the mob, can't be seen by mortals.
+
|   >=  | greater than or equal | 4 >= 3 = 1; 4 >= 4 = 1    |
  
V)   A mobs class defines how it attacks and the skills it knows.
+
|   /=  | substring            | "concatenate" /= "cat"    |
  
T)   The tier adds a dificulty modifier to the mob, the higher the tier the stronger it is.
+
|   -    | subtraction          | 15 - 10 = 5              |
  
O)   The mob will use the given subskill appropriately when needed.
+
|   +    | addition              | 10 + 15 = 25              |
  
U)   Charisma, the higher shopkeepers charisma is the more they sell items for.
+
|   *    | multiplication        | 10 * 20 = 400            |
  
S)   Used only if the mob has a script.
+
|   /    | division              | 100 / 20 = 5              |
  
Q   To quit the editor type q and y.
+
|  !   | negation              | !() = 1; !0 = 1; !dog = 0;|
  
Type medit save <zone#> or 'saveall' every time you quit redit.
+
--------------------------------------------------------------
 +
</pre>  
  
  
See also HELP [[REDIT]]  [[OEDIT]]  [[ZEDIT]]  [[RESET]]  [[SEDIT]]  [[DOORS]]  [[COLOURLIST]]  [[OLC]]
+
Example: {cRTSTAT 63{c0

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