Sure, you can just combine all the scripts into one .lua file called godmode (or whatever you'd like to name it). Here it is for the lazy.
--elevate_physical.lua
--This script will elevate all the physical attributes of a unit to 2600/value
--While 2600 is not the maximum, it is rather high.
--by vjek, version 1, 20120523
--usage is: target a unit in DF, and execute this script in dfhack
--via ' lua /path/to/script value '
--all physical attributes will be set to whatever 'value' is.
--if a value is omitted, 2600 will be used.
--praise Armok!
function elevate_unit(demigod)
unit=dfhack.gui.getSelectedUnit()
if unit==nil then
print ("No unit under cursor! Aborting with extreme prejudice.")
return
end
local old_strength,old_agility,old_toughness,old_endurance,old_recuperation,old_disease_resistance
local new_strength,new_agility,new_toughness,new_endurance,new_recuperation,new_disease_resistance
old_strength=unit.body.physical_attrs.STRENGTH.unk1
old_agility=unit.body.physical_attrs.AGILITY.unk1
old_toughness=unit.body.physical_attrs.TOUGHNESS.unk1
old_endurance=unit.body.physical_attrs.ENDURANCE.unk1
old_recuperation=unit.body.physical_attrs.RECUPERATION.unk1
old_disease_resistance=unit.body.physical_attrs.DISEASE_RESISTANCE.unk1
print ("Old Physical Attributes for "..unit.name.first_name)
print ("Strength: "..old_strength.." | Agility: "..old_agility.." | Toughness: "..old_toughness.." | Endurance: "..old_endurance.." | Recuperation: "..old_recuperation.." | Disease Resistance: "..old_disease_resistance)
print ("Updating Physical Attributes for "..unit.name.first_name)
unit.body.physical_attrs.STRENGTH.unk1=demigod
unit.body.physical_attrs.AGILITY.unk1=demigod
unit.body.physical_attrs.TOUGHNESS.unk1=demigod
unit.body.physical_attrs.ENDURANCE.unk1=demigod
unit.body.physical_attrs.RECUPERATION.unk1=demigod
unit.body.physical_attrs.DISEASE_RESISTANCE.unk1=demigod
new_strength=unit.body.physical_attrs.STRENGTH.unk1
new_agility=unit.body.physical_attrs.AGILITY.unk1
new_toughness=unit.body.physical_attrs.TOUGHNESS.unk1
new_endurance=unit.body.physical_attrs.ENDURANCE.unk1
new_recuperation=unit.body.physical_attrs.RECUPERATION.unk1
new_disease_resistance=unit.body.physical_attrs.DISEASE_RESISTANCE.unk1
print ("New Physical Attributes for "..unit.name.first_name)
print ("Strength: "..new_strength.." | Agility: "..new_agility.." | Toughness: "..new_toughness.." | Endurance: "..new_endurance.." | Recuperation: "..new_recuperation.." | Disease Resistance: "..new_disease_resistance)
end
local opt = ...
local demigod = 2600
if opt then
demigod = opt
end
elevate_unit(demigod)
--elevate_mental.lua
--This script will elevate all the mental attributes of a unit to 2600/value
--While 2600 is not the maximum, it is rather high.
--by vjek, version 1, 20120523
--usage is: target a unit in DF, and execute this script in dfhack
--via ' lua /path/to/script value '
--all mental attributes will be set to whatever 'value' is.
--if a value is omitted, 2600 will be used.
--praise Armok!
function elevate_unit(demigod)
unit=dfhack.gui.getSelectedUnit()
if unit==nil then
print ("No unit under cursor! Aborting with extreme prejudice.")
return
end
local old_analytical_ability,old_focus,old_willpower,old_creativity,old_intuition,old_patience,old_memory,old_linguistic_ability,old_spatial_sense,old_musicality,old_kinesthetic_sense,old_empathy,old_social_awareness
local new_analytical_ability,new_focus,new_willpower,new_creativity,new_intuition,new_patience,new_memory,new_linguistic_ability,new_spatial_sense,new_musicality,new_kinesthetic_sense,new_empathy,new_social_awareness
old_analytical_ability=unit.status.current_soul.mental_attrs.ANALYTICAL_ABILITY.unk1
old_focus=unit.status.current_soul.mental_attrs.FOCUS.unk1
old_willpower=unit.status.current_soul.mental_attrs.WILLPOWER.unk1
old_creativity=unit.status.current_soul.mental_attrs.CREATIVITY.unk1
old_intuition=unit.status.current_soul.mental_attrs.INTUITION.unk1
old_patience=unit.status.current_soul.mental_attrs.PATIENCE.unk1
old_memory=unit.status.current_soul.mental_attrs.MEMORY.unk1
old_linguistic_ability=unit.status.current_soul.mental_attrs.LINGUISTIC_ABILITY.unk1
old_spatial_sense=unit.status.current_soul.mental_attrs.SPATIAL_SENSE.unk1
old_musicality=unit.status.current_soul.mental_attrs.MUSICALITY.unk1
old_kinesthetic_sense=unit.status.current_soul.mental_attrs.KINESTHETIC_SENSE.unk1
old_empathy=unit.status.current_soul.mental_attrs.EMPATHY.unk1
old_social_awareness=unit.status.current_soul.mental_attrs.SOCIAL_AWARENESS.unk1
print ("Old Mental Attributes for "..unit.name.first_name)
print ("Analytical_Ability: "..old_analytical_ability.." | Focus: "..old_focus.." | Willpower: "..old_willpower.." | Creativity: "..old_creativity.." | Intuition: "..old_intuition.." | Patience: "..old_patience.." | Memory: "..old_memory.." | Linguistic_Ability: "..old_linguistic_ability.." | Spatial_Sense: "..old_spatial_sense.." | Musicality: "..old_musicality.." | Kinesthetic_Sense: "..old_kinesthetic_sense.." | Empathy: "..old_empathy.." | Social_Awareness: "..old_social_awareness)
print ("Updating Mental Attributes for "..unit.name.first_name)
unit.status.current_soul.mental_attrs.ANALYTICAL_ABILITY.unk1=demigod
unit.status.current_soul.mental_attrs.FOCUS.unk1=demigod
unit.status.current_soul.mental_attrs.WILLPOWER.unk1=demigod
unit.status.current_soul.mental_attrs.CREATIVITY.unk1=demigod
unit.status.current_soul.mental_attrs.INTUITION.unk1=demigod
unit.status.current_soul.mental_attrs.PATIENCE.unk1=demigod
unit.status.current_soul.mental_attrs.MEMORY.unk1=demigod
unit.status.current_soul.mental_attrs.LINGUISTIC_ABILITY.unk1=demigod
unit.status.current_soul.mental_attrs.SPATIAL_SENSE.unk1=demigod
unit.status.current_soul.mental_attrs.MUSICALITY.unk1=demigod
unit.status.current_soul.mental_attrs.KINESTHETIC_SENSE.unk1=demigod
unit.status.current_soul.mental_attrs.EMPATHY.unk1=demigod
unit.status.current_soul.mental_attrs.SOCIAL_AWARENESS.unk1=demigod
new_analytical_ability=unit.status.current_soul.mental_attrs.ANALYTICAL_ABILITY.unk1
new_focus=unit.status.current_soul.mental_attrs.FOCUS.unk1
new_willpower=unit.status.current_soul.mental_attrs.WILLPOWER.unk1
new_creativity=unit.status.current_soul.mental_attrs.CREATIVITY.unk1
new_intuition=unit.status.current_soul.mental_attrs.INTUITION.unk1
new_patience=unit.status.current_soul.mental_attrs.PATIENCE.unk1
new_memory=unit.status.current_soul.mental_attrs.MEMORY.unk1
new_linguistic_ability=unit.status.current_soul.mental_attrs.LINGUISTIC_ABILITY.unk1
new_spatial_sense=unit.status.current_soul.mental_attrs.SPATIAL_SENSE.unk1
new_musicality=unit.status.current_soul.mental_attrs.MUSICALITY.unk1
new_kinesthetic_sense=unit.status.current_soul.mental_attrs.KINESTHETIC_SENSE.unk1
new_empathy=unit.status.current_soul.mental_attrs.EMPATHY.unk1
new_social_awareness=unit.status.current_soul.mental_attrs.SOCIAL_AWARENESS.unk1
print ("New Mental Attributes for "..unit.name.first_name)
print ("Analytical_Ability: "..new_analytical_ability.." | Focus: "..new_focus.." | Willpower: "..new_willpower.." | Creativity: "..new_creativity.." | Intuition: "..new_intuition.." | Patience: "..new_patience.." | Memory: "..new_memory.." | Linguistic_Ability: "..new_linguistic_ability.." | Spatial_Sense: "..new_spatial_sense.." | Musicality: "..new_musicality.." | Kinesthetic_Sense: "..new_kinesthetic_sense.." | Empathy: "..new_empathy.." | Social_Awareness: "..new_social_awareness)
end
local opt = ...
local demigod = 2600
if opt then
demigod = opt
end
elevate_unit(demigod)
--brainwash.lua
--This script will brainwash a dwarf
--by vjek, version 1, 20120523
--usage is: target a unit in DF, and execute this script in dfhack
--via ' lua /path/to/script '
--all personality traits will be set to an ideal
--praise Armok!
function brainwash_unit()
unit=dfhack.gui.getSelectedUnit()
if unit==nil then
print ("No unit under cursor! Aborting with extreme prejudice.")
return
end
print("Previous personality values for "..unit.name.first_name)
printall(unit.status.current_soul.traits)
unit.status.current_soul.traits.ANXIETY=1
unit.status.current_soul.traits.ANGER=1
unit.status.current_soul.traits.DEPRESSION=1
unit.status.current_soul.traits.SELF_CONSCIOUSNESS=1
unit.status.current_soul.traits.IMMODERATION=1
unit.status.current_soul.traits.VULNERABILITY=1
unit.status.current_soul.traits.FRIENDLINESS=99
unit.status.current_soul.traits.GREGARIOUSNESS=99
unit.status.current_soul.traits.ASSERTIVENESS=99
unit.status.current_soul.traits.ACTIVITY_LEVEL=99
unit.status.current_soul.traits.EXCITEMENT_SEEKING=99
unit.status.current_soul.traits.CHEERFULNESS=99
unit.status.current_soul.traits.IMAGINATION=99
unit.status.current_soul.traits.ARTISTIC_INTEREST=99
unit.status.current_soul.traits.EMOTIONALITY=99
unit.status.current_soul.traits.ADVENTUROUSNESS=99
unit.status.current_soul.traits.INTELLECTUAL_CURIOSITY=99
unit.status.current_soul.traits.LIBERALISM=1
unit.status.current_soul.traits.TRUST=99
unit.status.current_soul.traits.STRAIGHTFORWARDNESS=99
unit.status.current_soul.traits.ALTRUISM=99
unit.status.current_soul.traits.COOPERATION=99
unit.status.current_soul.traits.MODESTY=99
unit.status.current_soul.traits.SYMPATHY=99
unit.status.current_soul.traits.SELF_EFFICACY=99
unit.status.current_soul.traits.ORDERLINESS=99
unit.status.current_soul.traits.DUTIFULNESS=99
unit.status.current_soul.traits.ACHIEVEMENT_STRIVING=99
unit.status.current_soul.traits.SELF_DISCIPLINE=99
unit.status.current_soul.traits.CAUTIOUSNESS=99
print("New personality values for "..unit.name.first_name)
printall(unit.status.current_soul.traits)
print(unit.name.first_name.." has been brainwashed, happy happy, joy joy!")
end
brainwash_unit()