Module:GetRandomCreature: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
 
Line 8: Line 8:
   local tables = 'Characters=C, GeneralData=GD'
   local tables = 'Characters=C, GeneralData=GD'
   local fields = 'GD.PlainName=Name, GD._pageName=Page'
   local fields = 'GD.PlainName=Name, GD._pageName=Page'
   local args ={join='C._pageName=GD._pageName', where='GD._pageNamespace="0" AND (NOT GD.ParentObject WITHIN "Wall" AND NOT GD.ParentObject WITHIN "Door")', offset=offsetin,limit = 1}
   local args ={join='C._pageName=GD._pageName', where='GD._pageNamespace="0" AND (NOT GD.ParentObject WITHIN "Wall" AND NOT GD.PlainName LIKE "* door")', offset=offsetin,limit = 1}
   local result = cargo.query(tables, fields, args)
   local result = cargo.query(tables, fields, args)
   if not next(result) then
   if not next(result) then