Hello,
I created very simple friends and enemies tables.
To add friends, I made an alias "add friend *"
To remove them, it's "rem friend *"
and the it goes the same way for enemies.
Problem is, I can't seem to figure out how to remove them from the table.
Here's the function with the last way I tried..
Assuming it's trying to find a key called friendIS to nil.
I created very simple friends and enemies tables.
To add friends, I made an alias "add friend *"
To remove them, it's "rem friend *"
and the it goes the same way for enemies.
Problem is, I can't seem to figure out how to remove them from the table.
Here's the function with the last way I tried..
function who_remF (name, line, wildcards, styles)
friendIS = wildcards[1]
who_friends.friendIS = nil
print(friendIS .. " has been removed from Friends List")
who_win () -- redraws who list window with correct colors
end -- function who_remF
Assuming it's trying to find a key called friendIS to nil.