New devel scripts for testing interaction-trigger.

develop
expwnent 2014-11-09 18:37:11 -05:00
parent 779ac3fd50
commit 838bbd97f6
3 changed files with 19 additions and 4 deletions

@ -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

@ -1,10 +1,8 @@
--print-args.lua
--author expwnent
--prints all the arguments on their own line with quotes around them. useful for debugging
--prints all the arguments on their own line. useful for debugging
local args = {...}
print("print-args")
for _,arg in ipairs(args) do
print("'"..arg.."'")
print(arg)
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