User Tools

Site Tools


modding:function:legend

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
modding:function:legend [2013/11/28 06:56] – put criteria back rpcmodding:function:legend [2017/09/19 04:26] rpc
Line 1: Line 1:
 +=====TIPS and TRICKS=====
 +
 +On Ministry, you can use Inactive + API Spec to see all the updates that George has done.
 +
  
 =====Function Legend===== =====Function Legend=====
Line 142: Line 146:
 ===== Parameter Notes ===== ===== Parameter Notes =====
  
-==== Font Sizes ====+==== Fonts ====
  
-When dealing with fonts in DockScreens there are several sizes that can be used:+When dealing with fonts in DockScreens there are several options. All of them use the Convection Font.
  
 <code> <code>
-Small +NAME FONT SIZE BOLD 
-Text +Small Convection 10 No 
-TextBold +Medium Convection 13 No 
-Medium +MediumBold Convection 13 Yes 
-MediumBold +MediumHeavyBold Convection 14 Yes 
-MediumHeavyBold +Large Convection 16 No 
-Large +LargeBold Convection 16 Yes 
-LargeBold +Header Convection 19 No 
-Header +HeaderBold Convection 19 Yes 
-SubTitle +SubTitle Convection 26 No 
-SubTitleBold +SubTitleBold Convection 26 Yes 
-Title+SubTitleHeavyBold Convection 28 Yes 
 +Title Convection 56 No 
 +LogoTitle Blue Island 60 No 
 +Console Lucida Console 14 No
 </code> </code>
 +===References=== 
 +https://github.com/kronosaur/Transcendence/blob/9bc026da2ce44ef2a2414f0ec65e9d1016136683/Transcendence/Transcendence.h#L50
 ====Object Criteria==== ====Object Criteria====
 =====Criteria===== =====Criteria=====
Line 180: Line 188:
 H         Only objects whose base = source H         Only objects whose base = source
 M         Manufactured objects only (i.e., no planets or asteroids) M         Manufactured objects only (i.e., no planets or asteroids)
-N         Return only the nearest object to the source+N         Return only the nearest object to the source (this returns a list in ascending distance order)
 N:nn;     Return only objects within nn light-seconds N:nn;     Return only objects within nn light-seconds
 NN:nn;    Return only nearest object if it's within nn light seconds (just combination of two above codes) NN:nn;    Return only nearest object if it's within nn light seconds (just combination of two above codes)
Line 186: Line 194:
 P         only objects visible to source P         only objects visible to source
 J         only objects from a given sovereign J         only objects from a given sovereign
 +J:&unid;  only objects of that sovereign
 K         only objects that cannot attack K         only objects that cannot attack
 R:nn;     Return only objects greater than nn light-seconds away R:nn;     Return only objects greater than nn light-seconds away
Line 209: Line 218:
  
 ==== TypFind Criteria ==== ==== TypFind Criteria ====
 +=====Criteria=====
 +
 +These are codes used to enumerate types with the [[modding:function:typFind]] function.
 +
 +<code>
 +* = all types
 +$ = currency UNID
 +a = an adventureDesc UNID
 +b = item table UNID
 +c = effect type UNID
 +d = dock screen UNID
 +e = space environment UNID
 +f = overlay UNID (apparently original name was 'energy field')
 +g = globals UNID (currently returns nothing?)
 +h = ship table UNID
 +i = item type UNID
 +m = image UNID
 +n = system node UNID (currently returns nothing?)
 +p = power UNID
 +q = system table UNID 
 +s = ship class UNID
 +t = station type UNID
 +u = sound UNID (currently returns nothing?)
 +v = sovereign UNID
 +w = name generator UNID (currently returns nothing?)
 +y = system type UNID
 +z = system map UNID 
 +_ = template type UNID // We don't support enumerating template types (TSE/CDesignType.cpp)
 +
 +V = Include Virtual types 
 +
 ++isPlayerClass:true/false = filters in/out ship classes with playersettings
 ++unid:[a unid] = returns the requested unid if extant, or nil
 +</code>
 +
 +  * There is currently no way to get a list of only vitual types except filtering one list against the other.
 +  * Use +attrib and -attrib to select attributes
 +  * Type codes are only additive, e.g., "$q" will return both currencies and system tables in one list.
 +  * There appears to be some way to use > >= < <= $ # and a number to do aditional filtering. (I haven't been able to make this do anything obvious -Weaver)
  
 Moved to [[modding:xml:designtype#criteria|DesignType subsection]]. Moved to [[modding:xml:designtype#criteria|DesignType subsection]].
Line 406: Line 454:
 0x8F00 -Drain again I'm guessing this would effect powered armor 0x8F00 -Drain again I'm guessing this would effect powered armor
 </code> </code>
 +Enhancements in string form are also supported
 +<code>
 +{number} Interpret as a mod code
 ++armor:{n} Add armor special damage, where n is an item level
 ++hpBonus:{n} Add hp bonus.
 ++immunity:{s} Immunity to special damage s.
 ++reflect:{s} Reflects damage type s.
 ++regen Regenerate
 ++resist:{s}:{n} DamageAdj for type s set to n
 ++resistDamageClass:{s}:{n} DamageAdj for type s (and its next-tier mate) set to n
 ++resistDamageTier:{s}:{n} DamageAdj for type s (and its tier mate) set to n
 ++resistEnergy:{n} DamageAdj for energy damage set to n
 ++resistMatter:{n} DamageAdj for matter damage set to n
 ++shield:{n} Add shield disrupt special damage, where n is an item level
 ++speed:{n} Faster. n is new delay value as a percent of normal
 +</code>
 +
 +
 +More enhancements can be [[https://forums.kronosaur.com/viewtopic.php?f=8&t=7505|found here.]]
 ====Categories==== ====Categories====
  
Line 669: Line 736:
   category              - data field on item for 'weapon' 'shield' etc   category              - data field on item for 'weapon' 'shield' etc
  
-Note: typGetDataField is deprecated. Use typGetData instead. 
-Use typGetData instead. 
 ====Sovereigns==== ====Sovereigns====
  
Line 714: Line 779:
  
 Also, you can use ''allHints'' to enable/disable all hints Also, you can use ''allHints'' to enable/disable all hints
 +
 +==== Shield and Level Adjustment curves ====
 +[[/modding/shield_and_level_damage_adjustment_curves1.01|Shield and Level adjustment curves]]
 +
 +
 ==== Random Notes ==== ==== Random Notes ====
-Dbglog has a limit of 931 characters.+Dbglog has a limit of 931 characters. \\  
 +Not in 1.2, dbglog can print past this limit. \\  
 +sysVectorPolarOffset starts with 0 to the right and rotates counterclockwise \\ 
 +[[http://transcendence.kronosaur.com/wiki/modding/xml/game_seconds|Ticks and real seconds]] \\
modding/function/legend.txt · Last modified: 2017/09/19 04:27 by rpc