zars15
|
  |
| Joined: 10 Nov 2008 |
| Total Posts: 9999 |
|
|
| 10 Jan 2013 12:43 PM |
| Okay, just give me some bits of code with metatables, so I can suck all of that information up. I'm not requesting you to make anything, I just want to master metatables by looking at them, since I kind of know how they work, but not enough. |
|
|
| Report Abuse |
|
|
BAUER102
|
  |
| Joined: 03 Apr 2010 |
| Total Posts: 5936 |
|
|
| 10 Jan 2013 01:54 PM |
| gutta find something nice for ya |
|
|
| Report Abuse |
|
|
zars15
|
  |
| Joined: 10 Nov 2008 |
| Total Posts: 9999 |
|
|
| 10 Jan 2013 02:00 PM |
| Kk, mean while I'll try to find fun uses and figure out what I'm doing out. |
|
|
| Report Abuse |
|
|
BAUER102
|
  |
| Joined: 03 Apr 2010 |
| Total Posts: 5936 |
|
|
| 10 Jan 2013 02:10 PM |
not the best examples, but everything I can publish at the moment
http://pastebin.com/dNL1qWxw http://pastebin.com/4uPKhuMi
srry, but I can't publish borderline code
used tons of metastuff there |
|
|
| Report Abuse |
|
|
zars15
|
  |
| Joined: 10 Nov 2008 |
| Total Posts: 9999 |
|
|
| 10 Jan 2013 02:12 PM |
Yaay, got first one working.
kk = {"Lold", "Test", "Okay"}
kk = setmetatable(kk,{ __unm = function (self) output = {} for num,obj in pairs(self) do if type(obj) == "string" then output[num] = string.reverse(obj) end end return output end })
n = -kk
print(n[1])
I'll go check what you haz there. |
|
|
| Report Abuse |
|
|
jobro13
|
  |
| Joined: 05 Aug 2009 |
| Total Posts: 2865 |
|
| |
|
zars15
|
  |
| Joined: 10 Nov 2008 |
| Total Posts: 9999 |
|
|
| 10 Jan 2013 02:16 PM |
| ..Wait what? I'm talking about roblox only since I just wanted to learn em quickly. |
|
|
| Report Abuse |
|
|
BAUER102
|
  |
| Joined: 03 Apr 2010 |
| Total Posts: 5936 |
|
|
| 10 Jan 2013 02:17 PM |
y u use pairs :(
use nexttt |
|
|
| Report Abuse |
|
|
zars15
|
  |
| Joined: 10 Nov 2008 |
| Total Posts: 9999 |
|
|
| 10 Jan 2013 02:24 PM |
| Waat, but wai? Can't really see nice way to use it. |
|
|
| Report Abuse |
|
|