Talk:UnitId

From Warcraft Wiki
Jump to navigation Jump to search

What about "mouseover" as a Unit ID? Should that go here?

This question was posed on another talk page "talk:World of Warcraft API Unit IDs" by user:Jimmcq on 5 May 2005.


What does the phrase: "May be overriden in macros by unit specified as a value of respective Secure Button attribute." mean? I little clarification would help. The obstruse part is the second half of the sentence.

by user:cordelliia on 7 January 2008.
Perhaps it means that "myButton:SetAttribute("unit", "target")," in Lua, is the same as "[target=target]," in a Macro. Posted by: EGingell (T|C|F) on 05:05, 8 January 2008 (UTC)

Invalid UnitIDs

I have noticed that invalid UnitIDs no longer throw an invalid token error unless you have a hunter/warlock in your party and their pet is dismissed ("partypetn"). It's not a token error, though, it's an invalid parameter error. Posted by: EGingell (T|C|F) on 14:52, 17 June 2008 (UTC)


Question: How would you target the nearest target? taking the place of the tab command ingame? ~Arc --Arc (talk) 09:57, 15 January 2012 (UTC)

Invalid Command

It seems we can no longer use this command without getting the error: Message: [string "UnitId("player")"]:1: attempt to call global 'UnitId' (a nil value)

I realize this is a fairly old comment, but I cannot find any archival evidence that "UnitID()" ever existed as a function. I'm just putting this here so no one else goes hunting for it. So far as I know, this entire comment could be removed. I suspect the creator just made a mistake.Mltco78dhs (talk) 18:21, 13 August 2017 (UTC)

Player as Unit Name

This seems to be showing only the simplest case with zero discussion about any alternatives.

Picture a Raid with Cogwheel-MyRealm, Cogwheel-ForeignRealmA, and Cogwheel-ForeignRealmB in it.

If I want to target "Cogwheel-ForeignRealmB", how do I do that?

It's possible this was written before Raids could be shared across realms and just needs updating.

It's possible that "name" means "name, unless from a foreign realm and then 'name space hyphen space realm name'" (or some other format for representing name and realm together) and needs to be updated.

It's possible that there is something in Raid grouping functionality itself that prevents multiple "Cogwheel" toons from joining or renames them somehow.

I'm working on a replacement for Fitzcairn's Macro Explain-O-Matic and I need to know the details of how this works, the full details.

If anyone knows, please post back here and I'll update the language and use the information for myself. —The preceding unsigned comment was added by Mltco78dhs (talk · contr).

It was definitely written before raids could be shared across realms. --PcjWowpedia admin (TDrop me a line!C207,729 contributions and counting) 17:20, 13 August 2017 (UTC)
Does anyone have any idea how my scenario would be handled? Is there a mechanism for dealing with cross-realm names, cross-realm name conflicts, and if so, what is it?Mltco78dhs (talk) 18:20, 13 August 2017 (UTC)

I'm narrowing in on it. Three hours of LFR and I found the syntax for specifying Player-Realm.

For Cogwheel from Bladefist, it's this: /use [@Cogwheel-Bladefist-target{-target-target...},harm,nodead]Cobra Shot. The braces show hypothetical continuation of the target stacking. Without them, this assumes my Hunter wants to use Cogwheel from Bladefist as his shot-caller and doesn't want to use his focus to do it. What I wasn't able to test were two other conditions. First, how would Cogwheel from Kirin Tor be represented. I suspect it would be Cogwheel-KirinTor, but I have no proof of that as yet. Second, does the -Realmname actually do anything at all (I can't know unless I have both a Cogwheel (local realm) and a Cogwheel (specified foreign realm) in the same party, not for sure. The possibility exists that it is simply ignored. I don't believe it is, but I can't prove it until I have two toons in the same party with the same name but from different realms. I'm tempted to bribe a couple of guildies to set up toons on different servers with the same name, invite them to a party, and play around with this, but my guild is pretty small and not very active. I also want to know if any of the other realmname delimiters work. It's possible that anything in this string ("-@#*") could be used as a separator (very unlikely the hyphen would be for reasons related to the mechanics of the target stacking algorthm). See FrameXML\GlobalStrings.lua line 10623 for why.Mltco78dhs (talk) 21:10, 20 August 2017 (UTC)