Nexus and the Guild Shirts

General debates and discussion about the Guild of Writers and Age creation

Nexus and the Guild Shirts

Postby Nek'rahm » Sun Mar 09, 2008 9:50 am

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.
Nek'rahm
 
Posts: 461
Joined: Mon Nov 19, 2007 2:53 pm

Re: Nexus and the Guild Shirts

Postby D'Lanor » Sun Mar 09, 2008 11:09 am

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().
"It is in self-limitation that a master first shows himself." - Goethe
User avatar
D'Lanor
 
Posts: 1980
Joined: Sat Sep 29, 2007 4:24 am

Re: Nexus and the Guild Shirts

Postby Paradox » Sun Mar 09, 2008 11:39 am

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.
Paradox
 
Posts: 1295
Joined: Fri Sep 28, 2007 6:48 pm
Location: Canada

Re: Nexus and the Guild Shirts

Postby Nek'rahm » Sun Mar 09, 2008 12:55 pm

:O

Couldn't we technically add new Nexus Posts and Guild Shirts then? That'd be sweet :D
Nek'rahm
 
Posts: 461
Joined: Mon Nov 19, 2007 2:53 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 3 guests