dfhack/scripts/devel/all-bob.lua

16 lines
267 B
Lua

--all-bob.lua
--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