v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Editing Gait

Jump to navigation Jump to search

Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.

If you are creating a redirect to the current version's page, do not use any namespace. For example: use #REDIRECT [[Cat]], not #REDIRECT [[Main:Cat]] or #REDIRECT [[cv:Cat]]. See DF:Versions for more information.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 300: Line 300:
 
In the vanilla game, gait templates are specified as [[creature variation token|creature variations]] in  the c_variation_default.txt raw file. These standard templates, each pertaining to a specific [[#Gait_Types|gait type]], contain 6 individual gaits which detail the different movement speeds available for that gait type.
 
In the vanilla game, gait templates are specified as [[creature variation token|creature variations]] in  the c_variation_default.txt raw file. These standard templates, each pertaining to a specific [[#Gait_Types|gait type]], contain 6 individual gaits which detail the different movement speeds available for that gait type.
  
To specify one of these predefined gaits, the token {{token|APPLY_CREATURE_VARIATION|c}} should be used. Within this token, specify the desired gait template, and include maximum [[#speed|speed]] values (which will be inserted into the template in place of its !ARG1, !ARG2, etc. tokens, where the first value specified replaces !ARG1) in this order:<br>
+
To specify one of these predefined gaits, the token {{token|APPLY_CREATURE_VARIATION|c}} should be used. Within this token, specify the desired gait template, and include maximum [[#speed|speed]] values (which will be inserted into the template in place of its !ARG1, !ARG2, etc tokens, where the first value specified replaces !ARG1) in this order:<br>
 
normal:fast:faster:fastest:slow:slower
 
normal:fast:faster:fastest:slow:slower
  
 
Example, taken from the dwarf: <code>[APPLY_CREATURE_VARIATION:STANDARD_BIPED_GAITS:900:711:521:293:1900:2900]</code> where the speeds are: "walk:jog:run:sprint:stroll:creep". Sprint and run start at jog's max speed and gradually build up to their own, whereas the rest start off at max immediately.
 
Example, taken from the dwarf: <code>[APPLY_CREATURE_VARIATION:STANDARD_BIPED_GAITS:900:711:521:293:1900:2900]</code> where the speeds are: "walk:jog:run:sprint:stroll:creep". Sprint and run start at jog's max speed and gradually build up to their own, whereas the rest start off at max immediately.
  
Of course, it's entirely possible to write your own custom gait templates. Note that it isn't necessary to strictly mimic the predefined gaits; your templates can contain any number and mixture of individual gaits (including those of different gait types), and you can place argument tags (!ARG1, !ARG2, etc.) wherever you want to. It's also possible to do away with templates altogether and build up gaits from scratch within an individual creature's raw definition, if you're so inclined. See {{token|GAIT|c}} for more information.
+
Of course, it's entirely possible to write your own custom gait templates. Note that it isn't necessary to strictly mimic the predefined gaits; your templates can contain any number and mixture of individual gaits (including those of different gait types), and you can place argument tags (!ARG1, !ARG2, etc) wherever you want to. It's also possible to do away with templates altogether and build up gaits from scratch within an individual creature's raw definition, if you're so inclined. See {{token|GAIT|c}} for more information.
  
 
{{Category|Game mechanics}}
 
{{Category|Game mechanics}}
 
{{Category|Modding}}
 
{{Category|Modding}}
 
[[ru:Gait]]
 
[[ru:Gait]]

Please note that all contributions to Dwarf Fortress Wiki are considered to be released under the GFDL & MIT (see Dwarf Fortress Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)

This page is a member of 2 hidden categories: