Page 1 of 1

Activators and Named Activators

PostPosted: Wed Dec 10, 2008 2:59 pm
by andylegate
Got a question here:

working on my doors along with the ALCscripting and the Python scripting here.

The scripting is going like Gahreesen's doors. In the Python file for Gahreesen we have:

Code: Select all
arrivePt = ptAttribSceneobject(1, 'arrive point')
triggerRgn1 = ptAttribActivator(2, 'door 1 region sensor')
triggerRgn2 = ptAttribNamedActivator(3, 'door 2 region sensor')


As you can see the 2nd trigger region is not just a AttribActivator, but it's a AttribNamedActivator

My question is, should that be reflected in my ALCscripting? Like this? (sorry about the indents.....)

Code: Select all
           pythonfile:
               file: InnPortalWarpEnter
               parameters:
               - type: sceneobject
                ref: scnobj:entrypoint
             - type: activator
              ref: logicmod:$EnterRgn
            - type: namedactivator
              ref: logicmod:$ExitRgn


or does it still just get referenced like this:

Code: Select all
           pythonfile:
               file: InnPortalWarpEnter
               parameters:
               - type: sceneobject
                ref: scnobj:entrypoint
             - type: activator
              ref: logicmod:$EnterRgn
            - type: activator
              ref: logicmod:$ExitRgn

Re: Activators and Named Activators

PostPosted: Wed Dec 10, 2008 8:01 pm
by GPNMilano
Andy, are you using the Training Center doorway idea? Or the Exterior Door idea, where it takes control over the avatar and moves him/her into the Training center?

Either way, just naming it "activator" is fine. There is an exit script for the latter type of doors, as well as an entry script though, figured I'd warn you about that.

When in doubt, just check the PythonFileMods though in PRPTool, PRPExplorer or PageEditor. Those will give you the answer you're looking for. Which is what i did, its activator.

Re: Activators and Named Activators

PostPosted: Thu Dec 11, 2008 7:14 am
by andylegate
Yah, I got it all figured out, with some help from D'Lanor with the Python.

I've now how what happens in Gahreesen working in my Age. I did it just like Cyan's stuff, with some variations. Why mess with a good thing?

How to do this is complex. But fortunately only Blender and PlasmaShop are needed. However the ties between ALC and Python are very important.

It's going to take me a week or two to get the tutorial written for this, but I WILL make one and post it. I just hope I can make it easier for other people to understand. For me, it took hours and hours, with a LOT of music I jammed to until I got it figured out, and working ;)