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 23a:Dipscript
Jump to navigation
Jump to search
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
You are editing a page for an older version of Dwarf Fortress ("Main" is the current version, not "23a"). Please make sure you intend to do this. If you are here by mistake, see the current page instead.
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 5: | Line 5: | ||
Only 5 different dipscripts are ever executed during gameplay, and they are defined in records 13-17 of the game's "index" file: ELVES_FIRSTCONTACT, HUMAN_STANDARD, DWARF_LIAISON, HUMAN_TRADE, and ELVES_STANDARD. The dipscript files themselves are compressed and scrambled, requiring [[User:Quietust/wtf23a.php|special tools]] in order to edit them (in later versions, they are only compressed). | Only 5 different dipscripts are ever executed during gameplay, and they are defined in records 13-17 of the game's "index" file: ELVES_FIRSTCONTACT, HUMAN_STANDARD, DWARF_LIAISON, HUMAN_TRADE, and ELVES_STANDARD. The dipscript files themselves are compressed and scrambled, requiring [[User:Quietust/wtf23a.php|special tools]] in order to edit them (in later versions, they are only compressed). | ||
− | + | The following tokens can be specified in a dipscript: | |
− | {| | + | {| |
− | |||
! Token | ! Token | ||
! Meaning | ! Meaning | ||
Line 61: | Line 60: | ||
===Readable variables=== | ===Readable variables=== | ||
− | {| | + | {| |
− | |||
! Class | ! Class | ||
! Name | ! Name | ||
Line 155: | Line 153: | ||
===Writable variables=== | ===Writable variables=== | ||
− | {| | + | {| |
− | |||
! Class | ! Class | ||
! Name | ! Name | ||
Line 205: | Line 202: | ||
===Displayable variables=== | ===Displayable variables=== | ||
Some of the above variables can be displayed in custom screens opened by the TEXTVIEWER command using the syntax [C:VAR:class:name] (to set the text color) and [VAR:format:class:name] to output the value in a particular format. Certain formats are only valid with specific types - trying to use it on the wrong type will likely result in a blank string. | Some of the above variables can be displayed in custom screens opened by the TEXTVIEWER command using the syntax [C:VAR:class:name] (to set the text color) and [VAR:format:class:name] to output the value in a particular format. Certain formats are only valid with specific types - trying to use it on the wrong type will likely result in a blank string. | ||
− | + | {| | |
− | {| | ||
− | |||
! Format | ! Format | ||
! Type | ! Type |