New devel scripts for testing interaction-trigger.
parent
779ac3fd50
commit
838bbd97f6
@ -0,0 +1,7 @@
|
||||
--all-bob.lua
|
||||
--author expwnent
|
||||
--names all units bob. Useful for testing interaction trigger events
|
||||
|
||||
for _,v in ipairs(df.global.world.units.all) do
|
||||
v.name.first_name = "Bob"
|
||||
end
|
@ -0,0 +1,10 @@
|
||||
--print-args2.lua
|
||||
--author expwnent
|
||||
--prints all the arguments on their own line with quotes around them. useful for debugging
|
||||
|
||||
local args = {...}
|
||||
print("print-args")
|
||||
for _,arg in ipairs(args) do
|
||||
print("'"..arg.."'")
|
||||
end
|
||||
|
Loading…
Reference in New Issue