dfhack/scripts/devel/all-bob.lua

16 lines
301 B
Lua

-- Changes the first name of all units to "Bob"
--author expwnent
2015-11-04 05:14:10 -07:00
--
--[[=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