Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Overview: I'm essentially trying to create an auto targeter for when I bash. This process is building a table off IH, comparing it to the areaMobs table, and then creating the roomMobs table which I will grab targets from. The roomMobs table will be a table of IDs.
- ----------------------------------------------
- Info Here Trigger:
- ^"(\w+?)(\d+)"
- ih_id[matches[3]] = matches[2]
- --------------------------
- propagate roomMobs table:
- ^You can see the following (\d+) objects
- ih_id = {}
- tempLineTrigger(matches[2], 1, Create_RoomMobs_Table())
- Note: The above tempLineTrigger does not work, however if I do the example posted below, it works.
- Example:
- tempLineTrigger(matches[2], 1, testingThis())
- where testingThis() is:
- function testingThis()
- send("think This is working!")
- end
- ---------------------
- roomMobs = {}
- function Create_RoomMobs_Table()
- for k, v in pairs(ih_id) do
- [[if table.contains(testTable, ih_id[k]) then --: When I get this loop working
- table.insert(roomMobs, v) --: will this method for constructing
- break --: the roomMobs table work?
- end]]
- display(ih_id[k])
- end
- end
- ============
- What I'm finding is this error:
- [ERROR:] object:<Clear's InfoHere list> function:<Trigger1563>
- <tempLineTrigger: wrong argument type>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement