This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
Our first step of the new Authors Portal is Live! Learn more or click here to check it out!
0
I prefer another way for better performance.
local _ , id = GetActionInfo(1);
That is better than select() or a selfwritten function with temporary tables.
Greetings Hizuro
This is true, but it is shorter than with select().
Sometimes you need all dirty tricks to get all necessary elements in a single macro. :)
Greetings Hizuro ^^
Quote from Forge_User_94148755 >> Hi, I am wondering if anyone know of one way of getting this code: local _,spellid,_ = GetActionInfo(1) print(spellid) -- returns 23242 to say print(GetActionInfo(1)[2]) -- should return 23242 The reason is, the first is just more clutter to my addons.. Thanks in advance! Forge_User_94148755
Hi,
I am wondering if anyone know of one way of getting this code:
local _,spellid,_ = GetActionInfo(1) print(spellid) -- returns 23242
local _,spellid,_ = GetActionInfo(1)
print(spellid) -- returns 23242
to say
print(GetActionInfo(1)[2]) -- should return 23242
The reason is, the first is just more clutter to my addons..
Thanks in advance!
Forge_User_94148755
Another way is:
print( ({ GetActionInfo(1) })[2] )
Greetings Hizuro :)
0
I prefer another way for better performance.
That is better than select() or a selfwritten function with temporary tables.
Greetings Hizuro
0
This is true, but it is shorter than with select().
Sometimes you need all dirty tricks to get all necessary elements in a single macro. :)
Greetings Hizuro ^^
0
Another way is:
Greetings Hizuro :)