User Tools

Site Tools


ded:altering_and_copying_definitions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
ded:altering_and_copying_definitions [2017-03-13 20:29]
skyjake ↷ Links adapted because of a move operation
ded:altering_and_copying_definitions [2017-03-13 20:31] (current)
skyjake
Line 1: Line 1:
-{{:stub}} +====== ​Altering and copying definitions ​======
- +
- +
-====== ​Copy ======+
  
 +===== Copy =====
  
 The definition should be based on the preceding definition. If this directive is used, all the properties of the previous definition are copied to this one. For the first definition in a file a "​Copy"​ has no effect. The definition should be based on the preceding definition. If this directive is used, all the properties of the previous definition are copied to this one. For the first definition in a file a "​Copy"​ has no effect.
Line 25: Line 23:
  
  
-====== Mods ======+===== Mods =====
  
  
Line 35: Line 33:
 </​code>​ </​code>​
  
-===== Conditions ​{{Veradd|1.15}} =====+==== Conditions ​(1.15 →) ==== 
 + 
 +Presently only [[map_info|Map Info]] definitions support conditions.
  
-{{:​note|Presently only [[map_info_ded_]] definitions support conditions.}} 
 An optional conditional expression can be used to instruct the DED parser to only apply the modification if the expression matches. The expression can be negated using the keyword '​not'​. An optional conditional expression can be used to instruct the DED parser to only apply the modification if the expression matches. The expression can be negated using the keyword '​not'​.
  
-^ Expression^ Description | +^ Expression ^ Description | 
-| custom| True if the definition has been previously modified by an add-on.(Whenever a definition is modified, Doomsday checks the source of the modification and will flag the definition as "​custom"​ if the source is a user-supplied add-on). |+| custom | True if the definition has been previously modified by an add-on.(Whenever a definition is modified, Doomsday checks the source of the modification and will flag the definition as "​custom"​ if the source is a user-supplied add-on). |
  
 +For example:
  
-For example: 
   Map Info mods "​E1M1"​ if not custom {   Map Info mods "​E1M1"​ if not custom {
        Music = "​mysong";​        Music = "​mysong";​
    }    }
- 
- 
- 
  
ded/altering_and_copying_definitions.txt · Last modified: 2017-03-13 20:31 by skyjake