dfhack/scripts/devel/all-bob.lua

16 lines
301 B
Lua

-- Changes the first name of all units to "Bob"
--author expwnent
--
--[[=begin
devel/all-bob
=============
Changes the first name of all units to "Bob".
Useful for testing `modtools/interaction-trigger` events.
=end]]
for _,v in ipairs(df.global.world.units.all) do
v.name.first_name = "Bob"
end