Group List question

Discussion in 'General Modification' started by Shiningted, Feb 15, 2013.

Remove all ads!
  1. Shiningted

    Shiningted I changed this damn title, finally! Administrator

    Joined:
    Oct 23, 2004
    Messages:
    12,743
    Likes Received:
    374
    Does anyone know how to identify individual elements of the pc.group_list()? Like individual elements of the game.party are game.party[0], game.party[1] etc - what about the group_list()?

    Li'l help! :tired:
     
  2. Gaear

    Gaear Bastard Maestro Administrator

    Joined:
    Apr 27, 2004
    Messages:
    11,038
    Likes Received:
    42
    What is the group.list as opposed to the game.party? Everything including charms and animal companions and whatnot? If so, I have no idea.

    ed. Yeah - that would explain why Wilfrick gives Verbobonc badges to pet toads and whatnot. ;)
     
  3. Shiningted

    Shiningted I changed this damn title, finally! Administrator

    Joined:
    Oct 23, 2004
    Messages:
    12,743
    Likes Received:
    374
    "We don't need no stinking badges! Our badgers, though..."

    Blue identified that difference a while back, gosh bless 'im. Trying to do a spell but I assume people will want to cast it on the whole party and not just the main folks. I swear I can't get a single script to work atm.
     
  4. Gaear

    Gaear Bastard Maestro Administrator

    Joined:
    Apr 27, 2004
    Messages:
    11,038
    Likes Received:
    42
    Heh-heh ... the other day I had if (game.global_vars[xxx] == 1): fail. Seriously.

    There seem to be very limited references to pc.group_list() in scr btw.
     
  5. Sitra Achara

    Sitra Achara Senior Member

    Joined:
    Sep 1, 2003
    Messages:
    3,622
    Likes Received:
    538
    You can access it just the same:
    Code:
    game.leader.group_list()[0]
    game.leader.group_list()[1] 
    etc

    If you want to be more careful:
    Code:
    a=game.leader.group_list()
    a[0]
    
     
  6. Shiningted

    Shiningted I changed this damn title, finally! Administrator

    Joined:
    Oct 23, 2004
    Messages:
    12,743
    Likes Received:
    374
    Thanks Sitra - I thought about trying that but decided it looked too silly :p

    On another silly note, I've had 'game.leader' fail for no reason and had to replace with 'game.party[0]' to make things work. Intermittently. Inconsistently. For no apparent reason.
     
  7. Gaear

    Gaear Bastard Maestro Administrator

    Joined:
    Apr 27, 2004
    Messages:
    11,038
    Likes Received:
    42
    And this is odd how? ;)
     
Our Host!