Advertisement
fatboychummy

moduDynaStoreTest

Nov 4th, 2018
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. --[[
  2. {"test"}
  3. ]]
  4.  
  5. return function (input,chests,inventory,tell,dynaStore)
  6.   if input[2] == "print" then
  7.     tell("Current contents of dyna:")
  8.     for i = 1,#dynaStore do
  9.       tell(dynaStore[i])
  10.     end
  11.   elseif input[2] == "store" then
  12.     tell("Storing "..input[3])
  13.     dynaStore[#dynaStore+1] = input[3]
  14.   end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement