Groups and sims in them being unique

Home Forums Mods and POG Scripting Groups and sims in them being unique

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #15581
    Joco
    Participant

    I thought I would share this in case someone else gets bitten by it.

    In the POG help file on groups it says
    “Groups are primarily an unordered collection of unique hsims sequentially stored in an array structure …”

    I have highlighted the key phrase. The handles must be unique. So you might thing (as I did) that this means unique within a group. So therefore I can have a sim handle in multiple groups. WRONG!

    I have tested this and a sim handle must be unique across ALL groups.

    See the log from my little proof:
    SCRIPT: [unknown] <--------------- Proof 2 START --------------->
    SCRIPT: [unknown] t1 grp sim count = 0
    SCRIPT: [unknown] t2 grp sim count = 0
    SCRIPT: [unknown] <--------------- add sim to t1 --------------->
    SCRIPT: [unknown] t1 grp sim count = 1
    SCRIPT: [unknown] t2 grp sim count = 0
    SCRIPT: [unknown] <--------------- add same sim to t2 --------------->
    SCRIPT: [unknown] t1 grp sim count = 0
    SCRIPT: [unknown] t2 grp sim count = 1
    SCRIPT: [unknown] <--------------- Proof 2 END --------------->

    [url=”http://www.i-war2.com/epic/default.asp”%5D%5Bcenter%5D


    [url=”http://www.torn-stars.com”][center][img]http://www.torn-stars.com/images/jocosig.gif[/img][/center][/url]

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.