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.

Difference between revisions of "User:Vjek"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
Line 15: Line 15:
 
[http://dl.dropbox.com/u/1339319/df_scripts/armoks_blessing.lua armoks_blessing]
 
[http://dl.dropbox.com/u/1339319/df_scripts/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 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!
 
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!
Line 25: Line 25:
 
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 call tell.<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 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.
 
===elevate_mental===
 
===elevate_mental===
 
===elevate_physical===
 
===elevate_physical===
Line 30: Line 31:
 
===rejuvenate===
 
===rejuvenate===
 
===armoks_blessing===
 
===armoks_blessing===
 +
 +
==How do I install and use the scripts?==
 +
===Installation===
 +
Happily, this is the easy part.  Install Dwarf Fortress.  Install DFHack.  Copy the scripts into the /hack/scripts/ directory.  That means you click on the link to the script, and save that file into that directory.<br>So, if you clicked on the rejuvenate link, for example, it would show you the rejuvenate.lua source code file.  In your browser, save that page as, browse to your df installation directory, browse to /hack/, browse to /scripts/ and save the file there.<br>
 +
If all went well, in the DFHack command line interface, if you use the 'ls' command, it will enumerate, near the bottom, all the scripts in the /hack/scripts/ directory.  If rejuvenate shows up there, you're set!
 +
===Use===

Revision as of 19:04, 28 June 2012

The Scripts

Scripts for Dwarf Fortress 34.10 with DFHack 34.10:
First, the links to the actual scripts...

brainwash

elevate_mental

elevate_physical

make_legendary

rejuvenate

armoks_blessing

So, how do these work? These .lua files linked above are scripts written in the Lua programming language. DFHack, as of at least 34.10, includes an interpreter that will parse and execute code written in Lua.
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!

Now what does each script do? A good starting point!

Information about each script

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.
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!
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.
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_physical

make_legendary

rejuvenate

armoks_blessing

How do I install and use the scripts?

Installation

Happily, this is the easy part. Install Dwarf Fortress. Install DFHack. Copy the scripts into the /hack/scripts/ directory. That means you click on the link to the script, and save that file into that directory.
So, if you clicked on the rejuvenate link, for example, it would show you the rejuvenate.lua source code file. In your browser, save that page as, browse to your df installation directory, browse to /hack/, browse to /scripts/ and save the file there.
If all went well, in the DFHack command line interface, if you use the 'ls' command, it will enumerate, near the bottom, all the scripts in the /hack/scripts/ directory. If rejuvenate shows up there, you're set!

Use