+ Reply to Thread
Results 1 to 10 of 10

  Click here to go to the first Rift Team post in this thread.   Thread: Inspect Achievement

  1. #1
    Ascendant Credo's Avatar
    Join Date
    Jan 2011
    Posts
    4,172

    Default Inspect Achievement

    Using the following code:
    category = Inspect.Achievement.Category.List()
    list = Inspect.Achievement.List()
    detail = Inspect.Achievement.Category.Detail({next(category ,nil)})
    a = Inspect.Achievement.Detail({next(list,nil)})

    dump(list)
    dump(category)
    dump(detail)

    print(detail.category)
    print(a.complete)

    gives me empty tables for "detail" and "a" and nil of course for "detail.category" and "a.complete"
    I've also tried entering the code given by the dump commands directly, but the result is the same.
    Any ideas?
    Last edited by Credo; 01-19-2012 at 06:32 PM.
    Even free cost too much now

  2. #2
    Shield of Telara Adelea's Avatar
    Join Date
    Mar 2011
    Posts
    734

    Default

    Next() returns a pair of values, which I suspect the Inspect functions dont like.

    category = Inspect.Achievement.Category.List()
    k,_ = next(category,nil)
    dump(Inspect.Achievement.Category.Detail(k))

    Probably easier to iterate w/ pairs() :

    category = Inspect.Achievement.Category.List()
    for k,_ in pairs(category) do
    dump(Inspect.Achievement.Category.Detail(k))
    end

    list = Inspect.Achievement.List()
    for k,_ in pairs(list) do
    dump(Inspect.Achievement.Detail(k))
    end
    http://forums.riftgame.com/image.php?type=sigpic&userid=125779&dateline=13553  38065

  3. #3
    Ascendant Credo's Avatar
    Join Date
    Jan 2011
    Posts
    4,172

    Default

    Thanks! I'll give that a try!
    Even free cost too much now

  4.   Click here to go to the next Rift Team post in this thread.   #4
    Rift Team
    Join Date
    Oct 2010
    Posts
    927

    Default

    Quote Originally Posted by Adelea View Post
    Next() returns a pair of values, which I suspect the Inspect functions dont like.

    category = Inspect.Achievement.Category.List()
    k,_ = next(category,nil)
    dump(Inspect.Achievement.Category.Detail(k))

    Probably easier to iterate w/ pairs() :

    category = Inspect.Achievement.Category.List()
    for k,_ in pairs(category) do
    dump(Inspect.Achievement.Category.Detail(k))
    end

    list = Inspect.Achievement.List()
    for k,_ in pairs(list) do
    dump(Inspect.Achievement.Detail(k))
    end
    Keep in mind that, like all Detail functions, Inspect.Achievement.Detail() will happily take a table as a parameter. For example:

    dump(Inspect.Achievement.Detail(Inspect.Achievemen t.List()))

    If you really want detail for *all* achievements, this is by far the most efficient way to retrieve it.

  5. #5
    Ascendant Credo's Avatar
    Join Date
    Jan 2011
    Posts
    4,172

    Default

    Quote Originally Posted by ZorbaTHut View Post
    Keep in mind that, like all Detail functions, Inspect.Achievement.Detail() will happily take a table as a parameter. For example:

    dump(Inspect.Achievement.Detail(Inspect.Achievemen t.List()))

    If you really want detail for *all* achievements, this is by far the most efficient way to retrieve it.
    Thanks as well Zorba! Hopefully this will get me on the right track.
    Even free cost too much now

  6. #6
    Ascendant Pixel Monkey's Avatar
    Join Date
    Feb 2011
    Posts
    3,231

    Default

    dataflow up
    fps down
    who took my names!

  7. #7
    Ascendant Credo's Avatar
    Join Date
    Jan 2011
    Posts
    4,172

    Default

    What is the procedure for inspecting individual categories'/achievements' details

    I've tried:
    dump(Inspect.Achievement.Category.Detail({name = "Zones"}))
    dump(Inspect.Achievement.Category.Detail({"C000000 020F85612B"}))
    dump(Inspect.Achievement.Category.Detail({id="C000 000020F85612B"}))
    dump(Inspect.Achievement.Category.Detail({"Zones"} ))
    Last edited by Credo; 01-20-2012 at 01:54 PM.
    Even free cost too much now

  8. #8
    Shield of Telara Adelea's Avatar
    Join Date
    Mar 2011
    Posts
    734

    Default

    I dont think you can do that.

    If you iterate through the Categories you can build a hierarchy of the categories, and one of the elements of the achievement is which category it belongs to, but I dont think there is any way of going the other way.
    http://forums.riftgame.com/image.php?type=sigpic&userid=125779&dateline=13553  38065

  9.   This is the last Rift Team post in this thread.   #9
    Rift Team
    Join Date
    Oct 2010
    Posts
    927

    Default

    Quote Originally Posted by Credo View Post
    What is the procedure for inspecting individual categories'/achievements' details

    I've tried:
    dump(Inspect.Achievement.Category.Detail({name = "Zones"}))
    dump(Inspect.Achievement.Category.Detail({"C000000 020F85612B"}))
    dump(Inspect.Achievement.Category.Detail({id="C000 000020F85612B"}))
    dump(Inspect.Achievement.Category.Detail({"Zones"} ))
    Preferably:

    dump(Inspect.Achievement.Category.Detail("C0000000 20F85612B"))

    Or:

    dump(Inspect.Achievement.Category.Detail({["C000000020F85612B"] = true}))

    In 1.7, these will also work:

    dump(Inspect.Achievement.Category.Detail({"C000000 020F85612B"}))
    dump(Inspect.Achievement.Category.Detail({id="C000 000020F85612B"}))

  10. #10
    Ascendant Credo's Avatar
    Join Date
    Jan 2011
    Posts
    4,172

    Default

    Thanks again!
    Even free cost too much now

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts