Page 1 of 1

Nexus and the Guild Shirts

PostPosted: Sun Mar 09, 2008 9:50 am
by Nek'rahm
Okay, HOW does this work? I really don't understand what (if anything) in our Blender files explains how the Nexus adds links to the lattice.

On top of that, what controls when new books are added to your Relto Library?

EVEN FURTHER, how can it tell which Guild Shirt you are wearing so as to correctly bring you to, oh say, the Writer's Pub.

If anyone knows this, please tell me. It'd help to know how to add Links and stuff like this if we have to make our own Uru.

Re: Nexus and the Guild Shirts

PostPosted: Sun Mar 09, 2008 11:09 am
by D'Lanor
It is all done with Python code.

For example to check if an explorer wears a hardhat you could make a function like this:

Code: Select all
from Plasma import *
from PlasmaTypes import *
...

    def IWearHardHat(self):
        avatar = PtGetLocalAvatar()
        gender = avatar.avatar.getAvatarClothingGroup()
        clothingList = avatar.avatar.getAvatarClothingList()
        wornItems = []
        for items in clothingList:
            wornItems.append(items[0])
        if (gender == kFemaleClothingGroup):
            genderPrefix = 'FReward_'
        else:
            genderPrefix = 'MReward_'
        clothingName = (genderPrefix + 'HardHat')
        if (clothingName in wornItems):
            return 1
        return 0


And then call the function with:

Code: Select all
    ...
    if self.IWearHardHat():
        #do something here if explorer wears a hardhat


btw, the MOUL Nexus does not check which shirt you are wearing but which shirt is in your closet. That would be coded similarly but you would have to use getWardrobeClothingList() instead of getAvatarClothingList().

Re: Nexus and the Guild Shirts

PostPosted: Sun Mar 09, 2008 11:39 am
by Paradox
As far as I can tell, there is a variable in Relto that stores an id number for the shirt that you have in your closet. All future calculations are done based on the value of that id.

Re: Nexus and the Guild Shirts

PostPosted: Sun Mar 09, 2008 12:55 pm
by Nek'rahm
:O

Couldn't we technically add new Nexus Posts and Guild Shirts then? That'd be sweet :D