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 User:Vjek
Jump to navigation
Jump to search
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
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 1: | Line 1: | ||
− | |||
− | |||
− | |||
==The Scripts== | ==The Scripts== | ||
Scripts for Dwarf Fortress 34.10 with DFHack 34.10:<br> | Scripts for Dwarf Fortress 34.10 with DFHack 34.10:<br> | ||
First, the links to the actual scripts... | First, the links to the actual scripts... | ||
− | [ | + | [http://dl.dropbox.com/u/1339319/df_scripts/34.10/brainwash.lua brainwash] |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | [http://dl.dropbox.com/u/1339319/df_scripts/34.10/elevate_mental.lua elevate_mental] | |
− | [ | + | [http://dl.dropbox.com/u/1339319/df_scripts/34.10/elevate_physical.lua elevate_physical] |
− | [ | + | [http://dl.dropbox.com/u/1339319/df_scripts/34.10/make_legendary.lua make_legendary] |
− | [ | + | [http://dl.dropbox.com/u/1339319/df_scripts/34.10/rejuvenate.lua rejuvenate] |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | [http://dl.dropbox.com/u/1339319/df_scripts/34.10/armoks_blessing.lua armoks_blessing] | ||
So, how do these work? These .lua files linked above are scripts written in the [http://en.wikipedia.org/wiki/Lua_%28programming_language%29 Lua] programming language. DFHack, as of at least 34.10, includes an interpreter that will parse and execute code written in [http://en.wikipedia.org/wiki/Lua_%28programming_language%29 Lua]. | So, how do these work? These .lua files linked above are scripts written in the [http://en.wikipedia.org/wiki/Lua_%28programming_language%29 Lua] programming language. DFHack, as of at least 34.10, includes an interpreter that will parse and execute code written in [http://en.wikipedia.org/wiki/Lua_%28programming_language%29 Lua]. | ||
<br> | <br> | ||
− | With each new release of DFHack, there are updated variables, functions and other changes to | + | With each new release of DFHack, there are updated variables, functions and other changes to interface. As such, there will be a delay between new releases and when some of these scripts will work. However, feel free to modify any and all of the scripts as much as you wish. Let the code be free! Fly code, fly! |
− | However, feel free to modify any and all of the scripts as much as you wish. Let the code be free! Fly code, fly! | ||
<br><br> | <br><br> | ||
Now what does each script do? A good starting point! | Now what does each script do? A good starting point! | ||
− | |||
==Information about each script== | ==Information about each script== | ||
===brainwash=== | ===brainwash=== | ||
The brainwash script modifies the personality traits of a single dwarf to match an ideal personality. What ideal means will doubtless vary from person to person, but I created my ideal based on the goal that the dwarf would be as stable and reliable as possible.<br> | The brainwash script modifies the personality traits of a single dwarf to match an ideal personality. What ideal means will doubtless vary from person to person, but I created my ideal based on the goal that the dwarf would be as stable and reliable as possible.<br> | ||
An interesting result of my ideal personality values is that dwarves without clothing are remarkably resistant to tantrums. In fact, I had an entirely naked fort for many months, and while all the dwarves were at zero happiness, there were no tantrums, no fights, no deaths. So, brainwashing works on dwarves!<br> | An interesting result of my ideal personality values is that dwarves without clothing are remarkably resistant to tantrums. In fact, I had an entirely naked fort for many months, and while all the dwarves were at zero happiness, there were no tantrums, no fights, no deaths. So, brainwashing works on dwarves!<br> | ||
− | Modifying the script is straightforward, just adjust the values you wish by each personality trait. Subsequent adjustments will overwrite any previous adjustments, and you can adjust a dwarf as many times or as often as you wish, as far as I | + | Modifying the script is straightforward, just adjust the values you wish by each personality trait. Subsequent adjustments will overwrite any previous adjustments, and you can adjust a dwarf as many times or as often as you wish, as far as I call tell.<br> |
You could also make a very "unstable" and "unreliable" dwarf by modifying the values in the script, which has all sorts of entertainment potential. | You could also make a very "unstable" and "unreliable" dwarf by modifying the values in the script, which has all sorts of entertainment potential. | ||
− | |||
===elevate_mental=== | ===elevate_mental=== | ||
This script will adjust all the mental attributes of a single dwarf from whatever they currently are to the value 2600. While 2600 is not the maximum, it's very high, and you'll find this is high enough for most common activities. To adjust this value, pass the new value to the script as an argument. For example: 'elevate_mental 2700' | This script will adjust all the mental attributes of a single dwarf from whatever they currently are to the value 2600. While 2600 is not the maximum, it's very high, and you'll find this is high enough for most common activities. To adjust this value, pass the new value to the script as an argument. For example: 'elevate_mental 2700' | ||
Line 195: | Line 140: | ||
To reiterate: the previous scripts work on single dwarves, this one works on all the dwarves currently on the map. | To reiterate: the previous scripts work on single dwarves, this one works on all the dwarves currently on the map. | ||
You should be REALLY REALLY sure you want to affect ALL YOUR DWARVES before you even copy this script into your /hack/scripts/ directory, and you should definitely have a backup/save ready in case you make changes you weren't expecting. | You should be REALLY REALLY sure you want to affect ALL YOUR DWARVES before you even copy this script into your /hack/scripts/ directory, and you should definitely have a backup/save ready in case you make changes you weren't expecting. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==How do I install and use the scripts?== | ==How do I install and use the scripts?== | ||
Line 317: | Line 154: | ||
For those using the scripts (or DFHack) for the first time, I highly recommend you save (or save & copy/backup) your game before you use the scripts. It is easy to make changes you may not have intended to make, and having a backup in this case is a good idea.<br> | For those using the scripts (or DFHack) for the first time, I highly recommend you save (or save & copy/backup) your game before you use the scripts. It is easy to make changes you may not have intended to make, and having a backup in this case is a good idea.<br> | ||
− | Most of the scripts require a dwarf to be a target within the main DF interface. This means you pause the game, press ' | + | Most of the scripts require a dwarf to be a target within the main DF interface. This means you pause the game, press 'k', and move the cursor so it is on top of the dwarf you want. If there are multiple dwarves on a single tile, whichever one is selected in the list is the target of the script. Once the target is selected, alt-tab to the DFHack command line interface, type in the name of the script (with any optional arguments) and press enter. If all goes well, your dwarf will be modified, you can unpause the game and continue. |
===Bugs?=== | ===Bugs?=== | ||
− | I've never seen these scripts crash DF, but if they do, please PM me on the forums, or e-mail via the wiki. Note, for the moment, these scripts are meant for use with DF & DFHack 34.10 | + | I've never seen these scripts crash DF, but if they do, please PM me on the forums, or e-mail via the wiki. Note, for the moment, these scripts are meant for use with DF & DFHack 34.10 '''''ONLY''''' |